summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMuhammet Kara <muhammet.kara@collabora.com>2020-01-25 04:18:50 +0300
committerAron Budea <aron.budea@collabora.com>2020-01-27 13:45:53 +0100
commitc0252cc2814a0201d79ee16102f603ea0181edfd (patch)
treec905cecbe04032329802ee54bbca57f1ca1ad459
parentAdd some more core source files for breakpointing convenience (diff)
downloadonline-c0252cc2814a0201d79ee16102f603ea0181edfd.tar.gz
online-c0252cc2814a0201d79ee16102f603ea0181edfd.zip
Remove uno:ToggleOrientation from toolbars
Since the Orientation commands (Portrait and Landscape) can now be accessed from the hamburger menu. Change-Id: I5d07a6ac8df3e5f4e28dbd5a71d58bde5613251a Reviewed-on: https://gerrit.libreoffice.org/c/online/+/87371 Reviewed-by: Aron Budea <aron.budea@collabora.com> Tested-by: Aron Budea <aron.budea@collabora.com>
-rw-r--r--loleaflet/src/control/Control.Toolbar.js3
-rw-r--r--loleaflet/src/layer/tile/WriterTileLayer.js2
2 files changed, 1 insertions, 4 deletions
diff --git a/loleaflet/src/control/Control.Toolbar.js b/loleaflet/src/control/Control.Toolbar.js
index 3519cf4472..c9bd08a6e2 100644
--- a/loleaflet/src/control/Control.Toolbar.js
+++ b/loleaflet/src/control/Control.Toolbar.js
@@ -958,7 +958,6 @@ function initNormalToolbar() {
html: '<div id="insertshape-wrapper"><div id="insertshape-popup" class="insertshape-pop ui-widget ui-corner-all"><div class="insertshape-grid"></div></div></div>'},
{type: 'button', id: 'link', img: 'link', hint: _UNO('.uno:HyperlinkDialog', '', true), disabled: true},
{type: 'button', id: 'insertsymbol', img: 'insertsymbol', hint: _UNO('.uno:InsertSymbol', '', true), uno: 'InsertSymbol'},
- {type: 'button', id: 'toggleorientation', img: 'orientation', hint: _('Toggle Page Orientation'), uno: 'ToggleOrientation', hidden: true},
{type: 'spacer'},
{type: 'button', id: 'edit', img: 'edit'},
{type: 'button', id: 'sidebar', img: 'sidebar_modify_page', hint: _UNO('.uno:Sidebar', '', true), uno: '.uno:Sidebar', hidden: true},
@@ -1605,7 +1604,7 @@ function onDocLayerInit() {
if (toolbarUp)
toolbarUp.show('leftpara', 'centerpara', 'rightpara', 'justifypara', 'breakpara', 'linespacing',
'breakspacing', 'defaultbullet', 'defaultnumbering', 'breakbullet', 'incrementindent', 'decrementindent',
- 'breakindent', 'inserttable', 'insertannotation', 'backcolor', 'breaksidebar', 'sidebar', 'toggleorientation');
+ 'breakindent', 'inserttable', 'insertannotation', 'backcolor', 'breaksidebar', 'sidebar');
if (!_inMobileMode()) {
statusbar.insert('left', [
diff --git a/loleaflet/src/layer/tile/WriterTileLayer.js b/loleaflet/src/layer/tile/WriterTileLayer.js
index c90f8512ee..8b4ec90ed1 100644
--- a/loleaflet/src/layer/tile/WriterTileLayer.js
+++ b/loleaflet/src/layer/tile/WriterTileLayer.js
@@ -72,8 +72,6 @@ L.WriterTileLayer = L.TileLayer.extend({
{type: 'break', id: 'breakbullet', hidden: true},
{type: 'button', id: 'incrementindent', img: 'incrementindent', hint: _UNO('.uno:IncrementIndent', '', true), uno: 'IncrementIndent', disabled: true},
{type: 'button', id: 'decrementindent', img: 'decrementindent', hint: _UNO('.uno:DecrementIndent', '', true), uno: 'DecrementIndent', disabled: true},
- {type: 'break'},
- {type: 'button', id: 'toggleorientation', img: 'orientation', hint: _('Toggle Page Orientation'), uno: 'ToggleOrientation'},
];
var toolbar = $('#toolbar-up');