diff --git a/apps/common/main/lib/controller/Desktop.js b/apps/common/main/lib/controller/Desktop.js index 9d4ec992f..6cd2fb9f5 100644 --- a/apps/common/main/lib/controller/Desktop.js +++ b/apps/common/main/lib/controller/Desktop.js @@ -194,7 +194,21 @@ define([ }; var _onHintsShow = function (visible, level) { - native.execCommand('althints:show', JSON.stringify(visible && !(level > 0))); + let info = { + visible: visible && !(level > 0), + }; + + if ( !!titlebuttons ) { + info.hints = { + 'print': titlebuttons['print'].btn.btnEl.attr('data-hint-title'), + // 'home': Common.UI.HintManager.getStaticHint('btnhome'), + 'undo': titlebuttons['undo'].btn.btnEl.attr('data-hint-title'), + 'redo': titlebuttons['redo'].btn.btnEl.attr('data-hint-title'), + 'save': titlebuttons['save'].btn.btnEl.attr('data-hint-title'), + }; + } + + native.execCommand('althints:show', JSON.stringify(info)); } var _onKeyDown = function (e) { diff --git a/apps/common/main/lib/controller/Plugins.js b/apps/common/main/lib/controller/Plugins.js index 9632e386e..05775c87a 100644 --- a/apps/common/main/lib/controller/Plugins.js +++ b/apps/common/main/lib/controller/Plugins.js @@ -204,17 +204,7 @@ define([ arr = []; storePlugins.each(function(item){ var plugin = new Asc.CPlugin(); - plugin.deserialize(item.attributes); - - var variations = item.get('variations'), - variationsArr = []; - variations.forEach(function(itemVar){ - var variation = new Asc.CPluginVariation(); - variation.deserialize(itemVar.attributes); - variationsArr.push(variation); - }); - - plugin.set_Variations(variationsArr); + plugin.deserialize(item.get('original')); item.set('pluginObj', plugin); arr.push(plugin); }); @@ -562,7 +552,8 @@ define([ visible: pluginVisible, groupName: (item.group) ? item.group.name : '', groupRank: (item.group) ? item.group.rank : 0, - minVersion: item.minVersion + minVersion: item.minVersion, + original: item })); } }); diff --git a/apps/documenteditor/forms/app/controller/Plugins.js b/apps/documenteditor/forms/app/controller/Plugins.js index 4e3fbdbe9..8178f6674 100644 --- a/apps/documenteditor/forms/app/controller/Plugins.js +++ b/apps/documenteditor/forms/app/controller/Plugins.js @@ -133,17 +133,7 @@ define([ arr = []; storePlugins.each(function(item){ var plugin = new Asc.CPlugin(); - plugin.deserialize(item.attributes); - - var variations = item.get('variations'), - variationsArr = []; - variations.forEach(function(itemVar){ - var variation = new Asc.CPluginVariation(); - variation.deserialize(itemVar.attributes); - variationsArr.push(variation); - }); - - plugin.set_Variations(variationsArr); + plugin.deserialize(item.get('original')); item.set('pluginObj', plugin); arr.push(plugin); }); @@ -332,7 +322,8 @@ define([ visible: pluginVisible, groupName: (item.group) ? item.group.name : '', groupRank: (item.group) ? item.group.rank : 0, - minVersion: item.minVersion + minVersion: item.minVersion, + original: item })); } }); diff --git a/apps/documenteditor/main/app/view/Navigation.js b/apps/documenteditor/main/app/view/Navigation.js index 83b41c226..3fec05e5f 100644 --- a/apps/documenteditor/main/app/view/Navigation.js +++ b/apps/documenteditor/main/app/view/Navigation.js @@ -87,6 +87,7 @@ define([ menu: new Common.UI.Menu({ menuAlign: 'tr-br', style: 'min-width: auto;', + cls: 'shifted-right', items: [ { caption: this.txtExpand, diff --git a/apps/documenteditor/main/locale/en.json b/apps/documenteditor/main/locale/en.json index a369f3531..4bd80d822 100644 --- a/apps/documenteditor/main/locale/en.json +++ b/apps/documenteditor/main/locale/en.json @@ -9,6 +9,10 @@ "Common.Controllers.ExternalMergeEditor.textClose": "Close", "Common.Controllers.ExternalMergeEditor.warningText": "The object is disabled because it is being edited by another user.", "Common.Controllers.ExternalMergeEditor.warningTitle": "Warning", + "Common.Controllers.ExternalOleEditor.textAnonymous": "Anonymous", + "Common.Controllers.ExternalOleEditor.textClose": "Close", + "Common.Controllers.ExternalOleEditor.warningText": "The object is disabled because it is being edited by another user.", + "Common.Controllers.ExternalOleEditor.warningTitle": "Warning", "Common.Controllers.History.notcriticalErrorTitle": "Warning", "Common.Controllers.ReviewChanges.textAcceptBeforeCompare": "In order to compare documents all the tracked changes in them will be considered to have been accepted. Do you want to continue?", "Common.Controllers.ReviewChanges.textAtLeast": "at least", @@ -287,6 +291,8 @@ "del_Common.Views.ExternalMergeEditor.textClose": "Close", "del_Common.Views.ExternalMergeEditor.textSave": "Save & Exit", "Common.Views.ExternalMergeEditor.textTitle": "Mail Merge Recipients", + "del_Common.Views.ExternalOleEditor.textClose": "Close", + "del_Common.Views.ExternalOleEditor.textSave": "Save & Exit", "Common.Views.ExternalOleEditor.textTitle": "Spreadsheet Editor", "Common.Views.Header.labelCoUsersDescr": "Users who are editing the file:", "Common.Views.Header.textAddFavorite": "Mark as favorite", diff --git a/apps/documenteditor/mobile/src/controller/settings/Settings.jsx b/apps/documenteditor/mobile/src/controller/settings/Settings.jsx index c4ac25db7..c55c73d67 100644 --- a/apps/documenteditor/mobile/src/controller/settings/Settings.jsx +++ b/apps/documenteditor/mobile/src/controller/settings/Settings.jsx @@ -76,7 +76,7 @@ const Settings = props => { setTimeout(() => { if(config && !!config.feedback && !!config.feedback.url) { window.open(config.feedback.url, "_blank"); - } else window.open('{{__SUPPORT_URL__}}', "_blank"); + } else window.open(__SUPPORT_URL__, "_blank"); }, 400); } diff --git a/apps/presentationeditor/main/locale/en.json b/apps/presentationeditor/main/locale/en.json index abaa89cfa..f10ff9343 100644 --- a/apps/presentationeditor/main/locale/en.json +++ b/apps/presentationeditor/main/locale/en.json @@ -5,6 +5,10 @@ "Common.Controllers.ExternalDiagramEditor.textClose": "Close", "Common.Controllers.ExternalDiagramEditor.warningText": "The object is disabled because it is being edited by another user.", "Common.Controllers.ExternalDiagramEditor.warningTitle": "Warning", + "Common.Controllers.ExternalOleEditor.textAnonymous": "Anonymous", + "Common.Controllers.ExternalOleEditor.textClose": "Close", + "Common.Controllers.ExternalOleEditor.warningText": "The object is disabled because it is being edited by another user.", + "Common.Controllers.ExternalOleEditor.warningTitle": "Warning", "Common.define.chartData.textArea": "Area", "Common.define.chartData.textAreaStacked": "Stacked area", "Common.define.chartData.textAreaStackedPer": "100% Stacked area", @@ -371,6 +375,8 @@ "del_Common.Views.ExternalDiagramEditor.textClose": "Close", "del_Common.Views.ExternalDiagramEditor.textSave": "Save & Exit", "Common.Views.ExternalDiagramEditor.textTitle": "Chart Editor", + "del_Common.Views.ExternalOleEditor.textClose": "Close", + "del_Common.Views.ExternalOleEditor.textSave": "Save & Exit", "Common.Views.ExternalOleEditor.textTitle": "Spreadsheet Editor", "Common.Views.Header.labelCoUsersDescr": "Users who are editing the file:", "Common.Views.Header.textAddFavorite": "Mark as favorite", diff --git a/apps/presentationeditor/mobile/src/view/settings/Settings.jsx b/apps/presentationeditor/mobile/src/view/settings/Settings.jsx index dc83664a6..d0fe47f00 100644 --- a/apps/presentationeditor/mobile/src/view/settings/Settings.jsx +++ b/apps/presentationeditor/mobile/src/view/settings/Settings.jsx @@ -120,7 +120,7 @@ const SettingsList = inject("storeAppOptions", "storeToolbarSettings")(observer( closeModal(); if(config && !!config.feedback && !!config.feedback.url) { window.open(config.feedback.url, "_blank"); - } else window.open('{{__SUPPORT_URL__}}', "_blank"); + } else window.open(__SUPPORT_URL__, "_blank"); }; const appOptions = props.storeAppOptions; diff --git a/apps/spreadsheeteditor/main/app/controller/FormulaDialog.js b/apps/spreadsheeteditor/main/app/controller/FormulaDialog.js index 98a7285a3..29cf784bc 100644 --- a/apps/spreadsheeteditor/main/app/controller/FormulaDialog.js +++ b/apps/spreadsheeteditor/main/app/controller/FormulaDialog.js @@ -69,8 +69,6 @@ define([ this.addListeners({ 'FileMenu': { 'settings:apply': function() { - if (!me.mode || !me.mode.isEdit) return; - me.needUpdateFormula = true; var lang = Common.localStorage.getItem("sse-settings-func-locale"); @@ -116,13 +114,13 @@ define([ setApi: function (api) { this.api = api; - this.api.asc_registerCallback('asc_onSendFunctionWizardInfo', _.bind(this.onSendFunctionWizardInfo, this)); - if (this.formulasGroups && this.api) { + if (this.formulasGroups) { Common.Utils.InternalSettings.set("sse-settings-func-last", Common.localStorage.getItem("sse-settings-func-last")); - this.reloadTranslations(Common.localStorage.getItem("sse-settings-func-locale") || this.appOptions.lang, true); + if (!this.mode.isEdit) return; + var me = this; this.formulas = new SSE.Views.FormulaDialog({ @@ -140,6 +138,7 @@ define([ } this.formulaTab && this.formulaTab.setApi(this.api); + this.api.asc_registerCallback('asc_onSendFunctionWizardInfo', _.bind(this.onSendFunctionWizardInfo, this)); return this; }, @@ -193,6 +192,8 @@ define([ }); } + if (!this.mode.isEdit) return; + if (me.langDescJson[lang]) me.loadingFormulas(me.langDescJson[lang], suppressEvent); else { diff --git a/apps/spreadsheeteditor/main/app/controller/Main.js b/apps/spreadsheeteditor/main/app/controller/Main.js index 12a0d8a95..c7afb469b 100644 --- a/apps/spreadsheeteditor/main/app/controller/Main.js +++ b/apps/spreadsheeteditor/main/app/controller/Main.js @@ -1006,6 +1006,8 @@ define([ } }, 50); } else { + var formulasDlgController = application.getController('FormulaDialog'); + formulasDlgController && formulasDlgController.setMode(me.appOptions).setApi(me.api); documentHolderView.createDelayedElementsViewer(); Common.NotificationCenter.trigger('document:ready', 'main'); me.applyLicense(); diff --git a/apps/spreadsheeteditor/main/app/view/FileMenuPanels.js b/apps/spreadsheeteditor/main/app/view/FileMenuPanels.js index c24d16580..8550c804b 100644 --- a/apps/spreadsheeteditor/main/app/view/FileMenuPanels.js +++ b/apps/spreadsheeteditor/main/app/view/FileMenuPanels.js @@ -271,7 +271,7 @@ define([ '', '', '', - '', + '', '', '', '
', @@ -321,7 +321,7 @@ define([ '