diff --git a/apps/documenteditor/mobile/src/store/appOptions.js b/apps/documenteditor/mobile/src/store/appOptions.js index 29fba4077..a156c6560 100644 --- a/apps/documenteditor/mobile/src/store/appOptions.js +++ b/apps/documenteditor/mobile/src/store/appOptions.js @@ -86,6 +86,7 @@ export class storeAppOptions { && (!!(config.customization.goback.url) || config.customization.goback.requestClose && this.canRequestClose); this.canBack = this.canBackToFolder === true; this.canPlugins = false; + this.canFeatureForms = !!Common.EditorApi.get().asc_isSupportFeature("forms"); AscCommon.UserInfoParser.setParser(true); AscCommon.UserInfoParser.setCurrentName(this.user.fullname); diff --git a/apps/documenteditor/mobile/src/view/settings/Download.jsx b/apps/documenteditor/mobile/src/view/settings/Download.jsx index 4e822fd2e..f2e82d717 100644 --- a/apps/documenteditor/mobile/src/view/settings/Download.jsx +++ b/apps/documenteditor/mobile/src/view/settings/Download.jsx @@ -8,6 +8,7 @@ const Download = props => { const _t = t("Settings", { returnObjects: true }); const storeDocumentInfo = props.storeDocumentInfo; const dataDoc = storeDocumentInfo.dataDoc; + const canFeatureForms = props.storeAppOptions.canFeatureForms; return ( @@ -17,7 +18,7 @@ const Download = props => { props.onSaveFormat(Asc.c_oAscFileType.DOCX)}> - {dataDoc.fileType === 'docxf' || dataDoc.fileType === 'docx' ? [ + {canFeatureForms && (dataDoc.fileType === 'docxf' || dataDoc.fileType === 'docx') ? [ props.onSaveFormat(Asc.c_oAscFileType.DOCXF)}> , @@ -58,4 +59,4 @@ const Download = props => { ) } -export default inject('storeDocumentInfo')(observer(Download)); \ No newline at end of file +export default inject('storeDocumentInfo', 'storeAppOptions')(observer(Download)); \ No newline at end of file diff --git a/apps/presentationeditor/main/locale/ru.json b/apps/presentationeditor/main/locale/ru.json index c87e6efdf..9803e1757 100644 --- a/apps/presentationeditor/main/locale/ru.json +++ b/apps/presentationeditor/main/locale/ru.json @@ -114,7 +114,7 @@ "Common.define.effectData.textFloatIn": "Плавное приближение", "Common.define.effectData.textFloatOut": "Плавное удаление", "Common.define.effectData.textFloatUp": "Плавное перемещение вверх", - "Common.define.effectData.textFlyIn": "Влет", + "Common.define.effectData.textFlyIn": "Вылет", "Common.define.effectData.textFlyOut": "Вылет за край листа", "Common.define.effectData.textFontColor": "Цвет шрифта", "Common.define.effectData.textFootball": "Овал", diff --git a/apps/spreadsheeteditor/main/app/controller/Main.js b/apps/spreadsheeteditor/main/app/controller/Main.js index ff03322fe..2d970bec7 100644 --- a/apps/spreadsheeteditor/main/app/controller/Main.js +++ b/apps/spreadsheeteditor/main/app/controller/Main.js @@ -1387,7 +1387,7 @@ define([ this.api.asc_registerCallback('asc_onDocumentModifiedChanged', _.bind(this.onDocumentModifiedChanged, this)); var printController = app.getController('Print'); - printController && this.api && printController.setApi(this.api); + printController && this.api && printController.setApi(this.api).setMode(this.appOptions); } diff --git a/apps/spreadsheeteditor/main/app/controller/Print.js b/apps/spreadsheeteditor/main/app/controller/Print.js index 4bbaaedf4..d2a21bd82 100644 --- a/apps/spreadsheeteditor/main/app/controller/Print.js +++ b/apps/spreadsheeteditor/main/app/controller/Print.js @@ -119,12 +119,19 @@ define([ this.printSettings.$previewBox.on(eventname, _.bind(this.onPreviewWheel, this)); }, + setMode: function (mode) { + this.mode = mode; + this.printSettings && this.printSettings.setMode(mode); + }, + setApi: function(o) { this.api = o; this.api.asc_registerCallback('asc_onSheetsChanged', _.bind(this.updateSheetsInfo, this)); this.api.asc_registerCallback('asc_onPrintPreviewSheetChanged', _.bind(this.onApiChangePreviewSheet, this)); this.api.asc_registerCallback('asc_onPrintPreviewPageChanged', _.bind(this.onApiChangePreviewPage, this)); this.api.asc_registerCallback('asc_onPrintPreviewSheetDataChanged', _.bind(this.onApiPreviewSheetDataChanged, this)); + + return this; }, updateSheetsInfo: function() { diff --git a/apps/spreadsheeteditor/main/app/view/FileMenuPanels.js b/apps/spreadsheeteditor/main/app/view/FileMenuPanels.js index 67626ca3f..d3c755a61 100644 --- a/apps/spreadsheeteditor/main/app/view/FileMenuPanels.js +++ b/apps/spreadsheeteditor/main/app/view/FileMenuPanels.js @@ -2317,7 +2317,7 @@ define([ '', '', '', - '', + '', //'', '', '