tdf#124163: Don't display the View > Full screen menu entry in mobile apps
diff --git a/loleaflet/src/control/Control.Menubar.js b/loleaflet/src/control/Control.Menubar.js
index f8011f8..abd75b0 100644
--- a/loleaflet/src/control/Control.Menubar.js
+++ b/loleaflet/src/control/Control.Menubar.js
@@ -56,8 +56,8 @@
{uno: '.uno:EditStyle'}
]},
{name: _UNO('.uno:ViewMenu', 'text'), id: 'view', type: 'menu', menu: [
{name: _UNO('.uno:FullScreen', 'text'), id: 'fullscreen', type: 'action'},
{type: 'separator'},
{name: _UNO('.uno:FullScreen', 'text'), id: 'fullscreen', type: 'action', mobileapp: false},
{type: 'separator', mobileapp: false},
{name: _UNO('.uno:ZoomPlus', 'text'), id: 'zoomin', type: 'action'},
{name: _UNO('.uno:ZoomMinus', 'text'), id: 'zoomout', type: 'action'},
{name: _('Reset zoom'), id: 'zoomreset', type: 'action'},
@@ -259,8 +259,8 @@
{uno: '.uno:SearchDialog'}
]},
{name: _UNO('.uno:ViewMenu', 'presentation'), id: 'view', type: 'menu', menu: [
{name: _UNO('.uno:FullScreen', 'presentation'), id: 'fullscreen', type: 'action'},
{type: 'separator'},
{name: _UNO('.uno:FullScreen', 'presentation'), id: 'fullscreen', type: 'action', mobileapp: false},
{type: 'separator', mobileapp: false},
{name: _UNO('.uno:ZoomPlus', 'presentation'), id: 'zoomin', type: 'action'},
{name: _UNO('.uno:ZoomMinus', 'presentation'), id: 'zoomout', type: 'action'},
{name: _('Reset zoom'), id: 'zoomreset', type: 'action'}]
@@ -346,7 +346,7 @@
{type: 'separator'},
{uno: '.uno:SearchDialog'}
]},
{name: _UNO('.uno:ViewMenu', 'spreadsheet'), id: 'view', type: 'menu', menu: [
{name: _UNO('.uno:ViewMenu', 'spreadsheet'), id: 'view', type: 'menu', mobileapp: false, menu: [
{name: _UNO('.uno:FullScreen', 'spreadsheet'), id: 'fullscreen', type: 'action'}
]},
{name: _UNO('.uno:InsertMenu', 'spreadsheet'), type: 'menu', menu: [
@@ -941,6 +941,9 @@
}
if (menu[i].type === 'menu') {
if (menu[i].mobileapp == false && window.ThisIsAMobileApp) {
continue;
}
var ulItem = L.DomUtil.create('ul', '', liItem);
var subitemList = this._createMenu(menu[i].menu);
if (!subitemList.length) {