tdf#113142 added insert sheet to the sheet list
Change-Id: I7ec6a45bf7bc4e2daf545ab4f234c3a0c9fcbded Reviewed-on: https://gerrit.libreoffice.org/49070 Reviewed-by: pranavk <pranavk@collabora.co.uk> Tested-by: pranavk <pranavk@collabora.co.uk>
This commit is contained in:
parent
f269a9321c
commit
1c8d8107b2
2 changed files with 9 additions and 4 deletions
2
loleaflet/dist/spreadsheet.css
vendored
2
loleaflet/dist/spreadsheet.css
vendored
|
@ -12,7 +12,7 @@
|
|||
.spreadsheet-tabs-container {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
left: 132px;
|
||||
left: 162px;
|
||||
right: 0;
|
||||
bottom: 33px;
|
||||
position: absolute;
|
||||
|
|
11
loleaflet/dist/toolbar/toolbar.js
vendored
11
loleaflet/dist/toolbar/toolbar.js
vendored
|
@ -283,9 +283,12 @@ function onClick(id, item, subItem) {
|
|||
$('#spreadsheet-tab-scroll').scrollLeft($('#spreadsheet-tab-scroll').scrollLeft() + 60);
|
||||
}
|
||||
else if (id === 'prevrecord') {
|
||||
$('#spreadsheet-tab-scroll').scrollLeft($('#spreadsheet-tab-scroll').scrollLeft() - 60);
|
||||
$('#spreadsheet-tab-scroll').scrollLeft($('#spreadsheet-tab-scroll').scrollLeft() - 30);
|
||||
}
|
||||
else if (id === 'lastrecord') {
|
||||
$('#spreadsheet-tab-scroll').scrollLeft($('#spreadsheet-tab-scroll').scrollLeft() + 120);
|
||||
}
|
||||
else if (id === 'insertpage') {
|
||||
$('#spreadsheet-tab-scroll').scrollLeft($('#spreadsheet-tab-scroll').prop('scrollWidth'));
|
||||
}
|
||||
else if (id.startsWith('menu:wrap:wrap-'))
|
||||
|
@ -638,7 +641,8 @@ $(function () {
|
|||
{type: 'button', id: 'firstrecord', img: 'firstrecord', hidden: true, hint: _('First sheet')},
|
||||
{type: 'button', id: 'prevrecord', img: 'prevrecord', hidden: true, hint: _('Previous sheet')},
|
||||
{type: 'button', id: 'nextrecord', img: 'nextrecord', hidden: true, hint: _('Next sheet')},
|
||||
{type: 'button', id: 'lastrecord', img: 'lastrecord', hidden: true, hint: _('Last sheet')}
|
||||
{type: 'button', id: 'lastrecord', img: 'lastrecord', hidden: true, hint: _('Last sheet')},
|
||||
{type: 'button', id: 'insertpage', img: 'insertpage', hidden:true, hint: _('Insert sheet')}
|
||||
],
|
||||
onClick: function (e) {
|
||||
onClick(e.target);
|
||||
|
@ -1537,6 +1541,7 @@ map.on('updateparts pagenumberchanged', function (e) {
|
|||
toolbar.show('nextrecord');
|
||||
toolbar.show('prevrecord');
|
||||
toolbar.show('lastrecord');
|
||||
toolbar.show('insertpage');
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -1609,7 +1614,7 @@ map.on('updatepermission', function (e) {
|
|||
}
|
||||
}
|
||||
|
||||
var spreadsheetButtons = ['firstrecord', 'prevrecord', 'nextrecord', 'lastrecord'];
|
||||
var spreadsheetButtons = ['firstrecord', 'prevrecord', 'nextrecord', 'lastrecord', 'insertpage'];
|
||||
var formulaBarButtons = ['sum', 'function'];
|
||||
var presentationButtons = ['insertpage', 'duplicatepage', 'deletepage'];
|
||||
var toolbarDownButtons = ['next', 'prev'];
|
||||
|
|
Loading…
Reference in a new issue