[SSE PE] for bug 53723

This commit is contained in:
Maxim Kadushkin 2021-11-30 20:13:56 +03:00
parent e3e0b19b69
commit 6bd108dd3a
4 changed files with 64 additions and 2 deletions

View file

@ -417,6 +417,33 @@ define([
}
this.miHistory[this.mode.canUseHistory&&!this.mode.isDisconnected?'show':'hide']();
if ( Common.Controllers.Desktop.isActive() ) {
$('<li id="fm-btn-local-open" class="fm-btn"/>').insertAfter($('#fm-btn-recent', this.$el));
this.items.push(
new Common.UI.MenuItem({
el : $('#fm-btn-local-open', this.$el),
action : 'file:open',
caption : this.btnFileOpenCaption,
canFocused: false,
dataHint: 1,
dataHintDirection: 'left-top',
dataHintOffset: [2, 14]
}));
$('<li class="devider" />' +
'<li id="fm-btn-exit" class="fm-btn"/>').insertAfter($('#fm-btn-back', this.$el));
this.items.push(
new Common.UI.MenuItem({
el : $('#fm-btn-exit', this.$el),
action : 'file:exit',
caption : this.btnExitCaption,
canFocused: false,
dataHint: 1,
dataHintDirection: 'left-top',
dataHintOffset: [2, 14]
}));
}
},
setMode: function(mode, delay) {
@ -563,6 +590,8 @@ define([
btnCloseMenuCaption : 'Close Menu',
btnProtectCaption: 'Protect',
btnSaveCopyAsCaption : 'Save Copy as...',
btnHistoryCaption : 'Versions History'
btnHistoryCaption : 'Versions History',
btnExitCaption : 'Exit',
btnFileOpenCaption : 'Open...'
}, PE.Views.FileMenu || {}));
});

View file

@ -1314,6 +1314,8 @@
"PE.Views.FileMenu.btnSaveCopyAsCaption": "Save Copy as...",
"PE.Views.FileMenu.btnSettingsCaption": "Advanced Settings...",
"PE.Views.FileMenu.btnToEditCaption": "Edit Presentation",
"PE.Views.FileMenu.btnExitCaption": "Exit",
"PE.Views.FileMenu.btnFileOpenCaption": "Open...",
"PE.Views.FileMenuPanels.CreateNew.txtBlank": "Blank Presentation",
"PE.Views.FileMenuPanels.CreateNew.txtCreateNew": "Create New",
"PE.Views.FileMenuPanels.DocumentInfo.okButtonText": "Apply",

View file

@ -408,6 +408,33 @@ define([
this.panels['opts'].SetDisabled(this.mode.disableEditing);
delete this.mode.disableEditing;
}
if ( Common.Controllers.Desktop.isActive() ) {
$('<li id="fm-btn-local-open" class="fm-btn"/>').insertAfter($('#fm-btn-recent', this.$el));
this.items.push(
new Common.UI.MenuItem({
el : $('#fm-btn-local-open', this.$el),
action : 'file:open',
caption : this.btnFileOpenCaption,
canFocused: false,
dataHint: 1,
dataHintDirection: 'left-top',
dataHintOffset: [2, 14]
}));
$('<li class="devider" />' +
'<li id="fm-btn-exit" class="fm-btn"/>').insertAfter($('#fm-btn-back', this.$el));
this.items.push(
new Common.UI.MenuItem({
el : $('#fm-btn-exit', this.$el),
action : 'file:exit',
caption : this.btnExitCaption,
canFocused: false,
dataHint: 1,
dataHintDirection: 'left-top',
dataHintOffset: [2, 14]
}));
}
},
setMode: function(mode, delay) {
@ -539,6 +566,8 @@ define([
btnCloseMenuCaption : 'Close Menu',
btnProtectCaption: 'Protect',
btnSaveCopyAsCaption : 'Save Copy as...',
btnHistoryCaption : 'Versions History'
btnHistoryCaption : 'Versions History',
btnExitCaption : 'Exit',
btnFileOpenCaption : 'Open...'
}, SSE.Views.FileMenu || {}));
});

View file

@ -2009,6 +2009,8 @@
"SSE.Views.FileMenu.btnSaveCopyAsCaption": "Save Copy as...",
"SSE.Views.FileMenu.btnSettingsCaption": "Advanced Settings...",
"SSE.Views.FileMenu.btnToEditCaption": "Edit Spreadsheet",
"SSE.Views.FileMenu.btnExitCaption": "Exit",
"SSE.Views.FileMenu.btnFileOpenCaption": "Open...",
"SSE.Views.FileMenuPanels.CreateNew.txtBlank": "Blank Spreadsheet",
"SSE.Views.FileMenuPanels.CreateNew.txtCreateNew": "Create New",
"SSE.Views.FileMenuPanels.DocumentInfo.okButtonText": "Apply",