diff options
author | Pranam Lashkari <lpranam@collabora.com> | 2020-08-21 07:44:11 +0530 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2020-09-17 15:03:54 +0200 |
commit | fb0deb2a13c00f8792370b309b68bf0343246231 (patch) | |
tree | 9b511a0d2c84af5d7d0d041f3fe738cbb7aaa2e5 /loleaflet | |
parent | 4eab08e62b506e69ce30b850b105a8246419fd54 (diff) |
leaflet: added freeze pan buttons to view menu
Change-Id: I9ba7a0982b15d097e21d93a6e18289455f0f8139
Diffstat (limited to 'loleaflet')
-rw-r--r-- | loleaflet/src/control/Control.Menubar.js | 6 | ||||
-rw-r--r-- | loleaflet/src/unocommands.js | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/loleaflet/src/control/Control.Menubar.js b/loleaflet/src/control/Control.Menubar.js index be8312573..e53958f14 100644 --- a/loleaflet/src/control/Control.Menubar.js +++ b/loleaflet/src/control/Control.Menubar.js @@ -404,6 +404,12 @@ L.Control.Menubar = L.Control.extend({ {name: _UNO('.uno:ViewMenu', 'spreadsheet'), id: 'view', type: 'menu', menu: [ {name: _UNO('.uno:FullScreen', 'spreadsheet'), id: 'fullscreen', type: 'action'}, {type: 'separator'}, + {name: _UNO('.uno:FreezePanes', 'spreadsheet', true), id: 'FreezePanes', type: 'action', uno: '.uno:FreezePanes'}, + {name: _UNO('.uno:FreezeCellsMenu', 'spreadsheet', true), id: 'FreezeCellsMenu', type: 'menu', uno: '.uno:FreezeCellsMenu', menu: [ + {name: _UNO('.uno:FreezePanesColumn', 'spreadsheet', true), id: 'FreezePanesColumn', type: 'action', uno: '.uno:FreezePanesColumn'}, + {name: _UNO('.uno:FreezePanesRow', 'spreadsheet', true), id: 'FreezePanesRow', type: 'action', uno: '.uno:FreezePanesRow'} + ]}, + {type: 'separator'}, {uno: '.uno:Sidebar'}, ]}, {name: _UNO('.uno:InsertMenu', 'spreadsheet'), id: 'insert', type: 'menu', menu: [ diff --git a/loleaflet/src/unocommands.js b/loleaflet/src/unocommands.js index 1c28a39d4..cfbd2d114 100644 --- a/loleaflet/src/unocommands.js +++ b/loleaflet/src/unocommands.js @@ -122,6 +122,7 @@ var unoCommandsArray = { FormatXErrorBars:{global:{menu:_('Format X Error Bars...'),},}, FormatYErrorBars:{global:{menu:_('Format Y Error Bars...'),},}, FormattingMarkMenu:{global:{menu:_('Formatting Mark'),},}, + FreezeCellsMenu:{spreadsheet:{menu:_('Freeze ~Cells'),},}, FreezePanes:{spreadsheet:{menu:_('Freeze ~Rows and Columns'),},}, FreezePanesColumn:{spreadsheet:{menu:_('Freeze First Column'),},}, FreezePanesRow:{spreadsheet:{menu:_('Freeze First Row'),},}, |