mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-24 09:47:17 +08:00
SSE: add item "Export to PDF"
This commit is contained in:
@ -266,6 +266,7 @@ define([
|
||||
case 'back': break;
|
||||
case 'save': this.api.asc_Save(); break;
|
||||
case 'save-desktop': this.api.asc_DownloadAs(); break;
|
||||
case 'export-pdf': this.clickSaveAsFormat(menu, Asc.c_oAscFileType.PDF); break;
|
||||
case 'print': Common.NotificationCenter.trigger('print', this.leftMenu); break;
|
||||
case 'exit': Common.NotificationCenter.trigger('goback'); break;
|
||||
case 'edit':
|
||||
|
||||
@ -7,6 +7,7 @@
|
||||
<li id="fm-btn-download" class="fm-btn"></li>
|
||||
<li id="fm-btn-save-copy" class="fm-btn"></li>
|
||||
<li id="fm-btn-save-desktop" class="fm-btn"></li>
|
||||
<li id="fm-btn-export-pdf" class="fm-btn"></li>
|
||||
<li id="fm-btn-print-with-preview" class="fm-btn"></li>
|
||||
<li id="fm-btn-rename" class="fm-btn"></li>
|
||||
<li id="fm-btn-protect" class="fm-btn"></li>
|
||||
|
||||
@ -147,6 +147,16 @@ define([
|
||||
dataHintOffset: [2, 14]
|
||||
});
|
||||
|
||||
this.miExportToPDF = new Common.UI.MenuItem({
|
||||
el : $markup.elementById('#fm-btn-export-pdf'),
|
||||
action : 'export-pdf',
|
||||
caption : this.btnExportToPDFCaption,
|
||||
canFocused: false,
|
||||
dataHint: 1,
|
||||
dataHintDirection: 'left-top',
|
||||
dataHintOffset: [2, 14]
|
||||
});
|
||||
|
||||
this.miPrintWithPreview = new Common.UI.MenuItem({
|
||||
el : $markup.elementById('#fm-btn-print-with-preview'),
|
||||
action : 'printpreview',
|
||||
@ -274,6 +284,7 @@ define([
|
||||
this.miDownload,
|
||||
this.miSaveCopyAs,
|
||||
this.miSaveAs,
|
||||
this.miExportToPDF,
|
||||
this.miPrintWithPreview,
|
||||
this.miRename,
|
||||
this.miProtect,
|
||||
@ -363,6 +374,7 @@ define([
|
||||
var isBCSupport = window["AscDesktopEditor"] ? window["AscDesktopEditor"]["isBlockchainSupport"]() : false;
|
||||
this.miSaveCopyAs[(this.mode.canDownload && (!this.mode.isDesktopApp || !this.mode.isOffline)) && (this.mode.canRequestSaveAs || this.mode.saveAsUrl) && !isBCSupport ?'show':'hide']();
|
||||
this.miSaveAs[(this.mode.canDownload && this.mode.isDesktopApp && this.mode.isOffline)?'show':'hide']();
|
||||
this.miExportToPDF[(this.mode.canDownload && this.mode.isDesktopApp && this.mode.isOffline)?'show':'hide']();
|
||||
this.miSave[this.mode.isEdit && Common.UI.LayoutManager.isElementVisible('toolbar-file-save') ?'show':'hide']();
|
||||
this.miEdit[!this.mode.isEdit && this.mode.canEdit && this.mode.canRequestEditRights ?'show':'hide']();
|
||||
this.miPrintWithPreview[this.mode.canPrint?'show':'hide']();
|
||||
@ -614,10 +626,11 @@ define([
|
||||
btnSaveAsCaption : 'Save as',
|
||||
btnRenameCaption : 'Rename...',
|
||||
btnCloseMenuCaption : 'Close Menu',
|
||||
btnProtectCaption: 'Protect',
|
||||
btnProtectCaption : 'Protect',
|
||||
btnSaveCopyAsCaption : 'Save Copy as...',
|
||||
btnHistoryCaption : 'Versions History',
|
||||
btnExitCaption : 'Exit',
|
||||
btnFileOpenCaption : 'Open...'
|
||||
btnFileOpenCaption : 'Open...',
|
||||
btnExportToPDFCaption : 'Export to PDF'
|
||||
}, SSE.Views.FileMenu || {}));
|
||||
});
|
||||
|
||||
@ -2438,6 +2438,7 @@
|
||||
"SSE.Views.FileMenu.btnCreateNewCaption": "Create New",
|
||||
"SSE.Views.FileMenu.btnDownloadCaption": "Download as",
|
||||
"SSE.Views.FileMenu.btnExitCaption": "Close",
|
||||
"SSE.Views.FileMenu.btnExportToPDFCaption": "Export to PDF",
|
||||
"SSE.Views.FileMenu.btnFileOpenCaption": "Open",
|
||||
"SSE.Views.FileMenu.btnHelpCaption": "Help",
|
||||
"SSE.Views.FileMenu.btnHistoryCaption": "Version History",
|
||||
|
||||
Reference in New Issue
Block a user