Compare commits
12 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4eebaab5e6 | ||
|
|
ddec589b37 | ||
|
|
7b03f08adc | ||
|
|
3208a4bdf2 | ||
|
|
9e608f168d | ||
|
|
f91bc6e50e | ||
|
|
b5c282872d | ||
|
|
37b37425af | ||
|
|
f7eccb611f | ||
|
|
f453f92a32 | ||
|
|
b6d7e60624 | ||
|
|
6b269291ae |
|
|
@ -281,6 +281,18 @@ define([
|
||||||
})).on('closeclick', function () {
|
})).on('closeclick', function () {
|
||||||
this.close();
|
this.close();
|
||||||
}).show();
|
}).show();
|
||||||
|
|
||||||
|
native.execCommand('webapps:features', JSON.stringify(features));
|
||||||
|
|
||||||
|
api.asc_registerCallback('asc_onDocumentName', function () {
|
||||||
|
if ( features.readonly ) {
|
||||||
|
if ( api.asc_getLocalRestrictions() == Asc.c_oAscLocalRestrictionType.None ) {
|
||||||
|
features.readonly = false;
|
||||||
|
header.setDocumentReadOnly(false);
|
||||||
|
native.execCommand('webapps:features', JSON.stringify(features));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
@ -340,6 +352,7 @@ define([
|
||||||
Common.NotificationCenter.on({
|
Common.NotificationCenter.on({
|
||||||
'modal:show': _onModalDialog.bind(this, 'open'),
|
'modal:show': _onModalDialog.bind(this, 'open'),
|
||||||
'modal:close': _onModalDialog.bind(this, 'close'),
|
'modal:close': _onModalDialog.bind(this, 'close'),
|
||||||
|
'modal:hide': _onModalDialog.bind(this, 'hide'),
|
||||||
'uitheme:changed' : function (name) {
|
'uitheme:changed' : function (name) {
|
||||||
if (Common.localStorage.getBool('ui-theme-use-system', false)) {
|
if (Common.localStorage.getBool('ui-theme-use-system', false)) {
|
||||||
native.execCommand("uitheme:changed", JSON.stringify({name:'theme-system'}));
|
native.execCommand("uitheme:changed", JSON.stringify({name:'theme-system'}));
|
||||||
|
|
|
||||||
|
|
@ -1495,7 +1495,7 @@ define([
|
||||||
this.appOptions.canEditStyles = this.appOptions.canLicense && this.appOptions.canEdit;
|
this.appOptions.canEditStyles = this.appOptions.canLicense && this.appOptions.canEdit;
|
||||||
this.appOptions.canPrint = (this.permissions.print !== false);
|
this.appOptions.canPrint = (this.permissions.print !== false);
|
||||||
this.appOptions.canPreviewPrint = this.appOptions.canPrint && !Common.Utils.isMac && this.appOptions.isDesktopApp;
|
this.appOptions.canPreviewPrint = this.appOptions.canPrint && !Common.Utils.isMac && this.appOptions.isDesktopApp;
|
||||||
this.appOptions.canQuickPrint = this.appOptions.canPrint && this.appOptions.isDesktopApp &&
|
this.appOptions.canQuickPrint = this.appOptions.canPrint && !Common.Utils.isMac && this.appOptions.isDesktopApp &&
|
||||||
!(this.editorConfig.customization && this.editorConfig.customization.compactHeader);
|
!(this.editorConfig.customization && this.editorConfig.customization.compactHeader);
|
||||||
this.appOptions.canRename = this.editorConfig.canRename;
|
this.appOptions.canRename = this.editorConfig.canRename;
|
||||||
this.appOptions.buildVersion = params.asc_getBuildVersion();
|
this.appOptions.buildVersion = params.asc_getBuildVersion();
|
||||||
|
|
|
||||||
|
|
@ -525,6 +525,7 @@ define([
|
||||||
paperOrientation: size ? (size['H'] > size['W'] ? 'portrait' : 'landscape') : null
|
paperOrientation: size ? (size['H'] > size['W'] ? 'portrait' : 'landscape') : null
|
||||||
});
|
});
|
||||||
|
|
||||||
|
this.printSettings.menu.hide();
|
||||||
if ( print ) {
|
if ( print ) {
|
||||||
var opts = new Asc.asc_CDownloadOptions(null, Common.Utils.isChrome || Common.Utils.isOpera || Common.Utils.isGecko && Common.Utils.firefoxVersion>86);
|
var opts = new Asc.asc_CDownloadOptions(null, Common.Utils.isChrome || Common.Utils.isOpera || Common.Utils.isGecko && Common.Utils.firefoxVersion>86);
|
||||||
opts.asc_setAdvancedOptions(this.adjPrintParams);
|
opts.asc_setAdvancedOptions(this.adjPrintParams);
|
||||||
|
|
@ -534,7 +535,6 @@ define([
|
||||||
opts.asc_setAdvancedOptions(this.adjPrintParams);
|
opts.asc_setAdvancedOptions(this.adjPrintParams);
|
||||||
this.api.asc_DownloadAs(opts);
|
this.api.asc_DownloadAs(opts);
|
||||||
}
|
}
|
||||||
this.printSettings.menu.hide();
|
|
||||||
},
|
},
|
||||||
|
|
||||||
inputPagesChanging: function (input, value) {
|
inputPagesChanging: function (input, value) {
|
||||||
|
|
|
||||||
|
|
@ -126,9 +126,9 @@
|
||||||
"Common.define.chartData.textStock": "Stock",
|
"Common.define.chartData.textStock": "Stock",
|
||||||
"Common.define.chartData.textSurface": "Surface",
|
"Common.define.chartData.textSurface": "Surface",
|
||||||
"Common.Translation.textMoreButton": "More",
|
"Common.Translation.textMoreButton": "More",
|
||||||
"Common.Translation.warnFileLocked": "You can't edit this file because it's being edited in another app.",
|
|
||||||
"Common.Translation.tipFileLocked": "Document is locked for editing. You can make changes and save it as local copy later.",
|
"Common.Translation.tipFileLocked": "Document is locked for editing. You can make changes and save it as local copy later.",
|
||||||
"Common.Translation.tipFileReadOnly": "Document is read only and locked for editing. You can make changes and save its local copy later.",
|
"Common.Translation.tipFileReadOnly": "The file is read-only. To keep your changes, save the file with a new name or in a different location.",
|
||||||
|
"Common.Translation.warnFileLocked": "You can't edit this file because it's being edited in another app.",
|
||||||
"Common.Translation.warnFileLockedBtnEdit": "Create a copy",
|
"Common.Translation.warnFileLockedBtnEdit": "Create a copy",
|
||||||
"Common.Translation.warnFileLockedBtnView": "Open for viewing",
|
"Common.Translation.warnFileLockedBtnView": "Open for viewing",
|
||||||
"Common.UI.ButtonColored.textAutoColor": "Automatic",
|
"Common.UI.ButtonColored.textAutoColor": "Automatic",
|
||||||
|
|
|
||||||
|
|
@ -127,7 +127,7 @@
|
||||||
"Common.define.chartData.textSurface": "Поверхность",
|
"Common.define.chartData.textSurface": "Поверхность",
|
||||||
"Common.Translation.textMoreButton": "Ещё",
|
"Common.Translation.textMoreButton": "Ещё",
|
||||||
"Common.Translation.tipFileLocked": "Документ заблокирован на редактирование. Вы можете внести изменения и сохранить его как локальную копию позже.",
|
"Common.Translation.tipFileLocked": "Документ заблокирован на редактирование. Вы можете внести изменения и сохранить его как локальную копию позже.",
|
||||||
"Common.Translation.tipFileReadOnly": "Документ доступен только на просмотр и заблокирован на редактирование. Вы можете внести изменения и сохранить его локальную копию позже.",
|
"Common.Translation.tipFileReadOnly": "Файл доступен только для чтения. Чтобы сохранить изменения, сохраните файл с новым названием или в другом месте.",
|
||||||
"Common.Translation.warnFileLocked": "Вы не можете редактировать этот файл, потому что он уже редактируется в другом приложении.",
|
"Common.Translation.warnFileLocked": "Вы не можете редактировать этот файл, потому что он уже редактируется в другом приложении.",
|
||||||
"Common.Translation.warnFileLockedBtnEdit": "Создать копию",
|
"Common.Translation.warnFileLockedBtnEdit": "Создать копию",
|
||||||
"Common.Translation.warnFileLockedBtnView": "Открыть на просмотр",
|
"Common.Translation.warnFileLockedBtnView": "Открыть на просмотр",
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ const EditorUIController = () => {
|
||||||
};
|
};
|
||||||
|
|
||||||
EditorUIController.isSupportEditFeature = () => {
|
EditorUIController.isSupportEditFeature = () => {
|
||||||
return false
|
return true
|
||||||
};
|
};
|
||||||
|
|
||||||
EditorUIController.getToolbarOptions = () => {
|
EditorUIController.getToolbarOptions = () => {
|
||||||
|
|
|
||||||
|
|
@ -1166,7 +1166,7 @@ define([
|
||||||
}
|
}
|
||||||
this.appOptions.canPrint = (this.permissions.print !== false);
|
this.appOptions.canPrint = (this.permissions.print !== false);
|
||||||
this.appOptions.canPreviewPrint = this.appOptions.canPrint && !Common.Utils.isMac && this.appOptions.isDesktopApp;
|
this.appOptions.canPreviewPrint = this.appOptions.canPrint && !Common.Utils.isMac && this.appOptions.isDesktopApp;
|
||||||
this.appOptions.canQuickPrint = this.appOptions.canPrint && this.appOptions.isDesktopApp &&
|
this.appOptions.canQuickPrint = this.appOptions.canPrint && !Common.Utils.isMac && this.appOptions.isDesktopApp &&
|
||||||
!(this.editorConfig.customization && this.editorConfig.customization.compactHeader);
|
!(this.editorConfig.customization && this.editorConfig.customization.compactHeader);
|
||||||
this.appOptions.canRename = this.editorConfig.canRename;
|
this.appOptions.canRename = this.editorConfig.canRename;
|
||||||
this.appOptions.canForcesave = this.appOptions.isEdit && !this.appOptions.isOffline && (typeof (this.editorConfig.customization) == 'object' && !!this.editorConfig.customization.forcesave);
|
this.appOptions.canForcesave = this.appOptions.isEdit && !this.appOptions.isOffline && (typeof (this.editorConfig.customization) == 'object' && !!this.editorConfig.customization.forcesave);
|
||||||
|
|
|
||||||
|
|
@ -249,11 +249,11 @@
|
||||||
"Common.define.effectData.textZigzag": "Zigzag",
|
"Common.define.effectData.textZigzag": "Zigzag",
|
||||||
"Common.define.effectData.textZoom": "Zoom",
|
"Common.define.effectData.textZoom": "Zoom",
|
||||||
"Common.Translation.textMoreButton": "More",
|
"Common.Translation.textMoreButton": "More",
|
||||||
|
"Common.Translation.tipFileLocked": "Document is locked for editing. You can make changes and save it as local copy later.",
|
||||||
|
"Common.Translation.tipFileReadOnly": "The file is read-only. To keep your changes, save the file with a new name or in a different location.",
|
||||||
"Common.Translation.warnFileLocked": "The file is being edited in another app. You can continue editing and save it as a copy.",
|
"Common.Translation.warnFileLocked": "The file is being edited in another app. You can continue editing and save it as a copy.",
|
||||||
"Common.Translation.warnFileLockedBtnEdit": "Create a copy",
|
"Common.Translation.warnFileLockedBtnEdit": "Create a copy",
|
||||||
"Common.Translation.warnFileLockedBtnView": "Open for viewing",
|
"Common.Translation.warnFileLockedBtnView": "Open for viewing",
|
||||||
"Common.Translation.tipFileLocked": "Document is locked for editing. You can make changes and save it as local copy later.",
|
|
||||||
"Common.Translation.tipFileReadOnly": "Document is read only and locked for editing. You can make changes and save its local copy later.",
|
|
||||||
"Common.UI.ButtonColored.textAutoColor": "Automatic",
|
"Common.UI.ButtonColored.textAutoColor": "Automatic",
|
||||||
"Common.UI.ButtonColored.textNewColor": "Add New Custom Color",
|
"Common.UI.ButtonColored.textNewColor": "Add New Custom Color",
|
||||||
"Common.UI.ComboBorderSize.txtNoBorders": "No borders",
|
"Common.UI.ComboBorderSize.txtNoBorders": "No borders",
|
||||||
|
|
|
||||||
|
|
@ -250,7 +250,7 @@
|
||||||
"Common.define.effectData.textZoom": "Масштабирование",
|
"Common.define.effectData.textZoom": "Масштабирование",
|
||||||
"Common.Translation.textMoreButton": "Ещё",
|
"Common.Translation.textMoreButton": "Ещё",
|
||||||
"Common.Translation.tipFileLocked": "Документ заблокирован на редактирование. Вы можете внести изменения и сохранить его как локальную копию позже.",
|
"Common.Translation.tipFileLocked": "Документ заблокирован на редактирование. Вы можете внести изменения и сохранить его как локальную копию позже.",
|
||||||
"Common.Translation.tipFileReadOnly": "Документ доступен только на просмотр и заблокирован на редактирование. Вы можете внести изменения и сохранить его локальную копию позже.",
|
"Common.Translation.tipFileReadOnly": "Файл доступен только для чтения. Чтобы сохранить изменения, сохраните файл с новым названием или в другом месте.",
|
||||||
"Common.Translation.warnFileLocked": "Файл редактируется в другом приложении. Вы можете продолжить редактирование и сохранить его как копию.",
|
"Common.Translation.warnFileLocked": "Файл редактируется в другом приложении. Вы можете продолжить редактирование и сохранить его как копию.",
|
||||||
"Common.Translation.warnFileLockedBtnEdit": "Создать копию",
|
"Common.Translation.warnFileLockedBtnEdit": "Создать копию",
|
||||||
"Common.Translation.warnFileLockedBtnView": "Открыть на просмотр",
|
"Common.Translation.warnFileLockedBtnView": "Открыть на просмотр",
|
||||||
|
|
@ -393,6 +393,7 @@
|
||||||
"Common.Views.Header.textHideLines": "Скрыть линейки",
|
"Common.Views.Header.textHideLines": "Скрыть линейки",
|
||||||
"Common.Views.Header.textHideNotes": "Скрыть заметки",
|
"Common.Views.Header.textHideNotes": "Скрыть заметки",
|
||||||
"Common.Views.Header.textHideStatusBar": "Скрыть строку состояния",
|
"Common.Views.Header.textHideStatusBar": "Скрыть строку состояния",
|
||||||
|
"Common.Views.Header.textReadOnly": "Только чтение",
|
||||||
"Common.Views.Header.textRemoveFavorite": "Удалить из избранного",
|
"Common.Views.Header.textRemoveFavorite": "Удалить из избранного",
|
||||||
"Common.Views.Header.textSaveBegin": "Сохранение...",
|
"Common.Views.Header.textSaveBegin": "Сохранение...",
|
||||||
"Common.Views.Header.textSaveChanged": "Изменен",
|
"Common.Views.Header.textSaveChanged": "Изменен",
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
const EditorUIController = () => null;
|
const EditorUIController = () => null;
|
||||||
|
|
||||||
EditorUIController.isSupportEditFeature = () => false;
|
EditorUIController.isSupportEditFeature = () => true;
|
||||||
|
|
||||||
export default EditorUIController;
|
export default EditorUIController;
|
||||||
|
|
|
||||||
|
|
@ -1291,7 +1291,7 @@ define([
|
||||||
this.appOptions.isEdit = (this.appOptions.canLicense || this.appOptions.isEditDiagram || this.appOptions.isEditMailMerge || this.appOptions.isEditOle) && this.permissions.edit !== false && this.editorConfig.mode !== 'view';
|
this.appOptions.isEdit = (this.appOptions.canLicense || this.appOptions.isEditDiagram || this.appOptions.isEditMailMerge || this.appOptions.isEditOle) && this.permissions.edit !== false && this.editorConfig.mode !== 'view';
|
||||||
this.appOptions.canDownload = (this.permissions.download !== false);
|
this.appOptions.canDownload = (this.permissions.download !== false);
|
||||||
this.appOptions.canPrint = (this.permissions.print !== false) && !(this.appOptions.isEditDiagram || this.appOptions.isEditMailMerge || this.appOptions.isEditOle);
|
this.appOptions.canPrint = (this.permissions.print !== false) && !(this.appOptions.isEditDiagram || this.appOptions.isEditMailMerge || this.appOptions.isEditOle);
|
||||||
this.appOptions.canQuickPrint = this.appOptions.canPrint && this.appOptions.isDesktopApp &&
|
this.appOptions.canQuickPrint = this.appOptions.canPrint && !Common.Utils.isMac && this.appOptions.isDesktopApp &&
|
||||||
!(this.editorConfig.customization && this.editorConfig.customization.compactHeader);
|
!(this.editorConfig.customization && this.editorConfig.customization.compactHeader);
|
||||||
this.appOptions.canForcesave = this.appOptions.isEdit && !this.appOptions.isOffline && !(this.appOptions.isEditDiagram || this.appOptions.isEditMailMerge || this.appOptions.isEditOle) &&
|
this.appOptions.canForcesave = this.appOptions.isEdit && !this.appOptions.isOffline && !(this.appOptions.isEditDiagram || this.appOptions.isEditMailMerge || this.appOptions.isEditOle) &&
|
||||||
(typeof (this.editorConfig.customization) == 'object' && !!this.editorConfig.customization.forcesave);
|
(typeof (this.editorConfig.customization) == 'object' && !!this.editorConfig.customization.forcesave);
|
||||||
|
|
|
||||||
|
|
@ -101,11 +101,11 @@
|
||||||
"Common.define.conditionalData.textValue": "Value is",
|
"Common.define.conditionalData.textValue": "Value is",
|
||||||
"Common.define.conditionalData.textYesterday": "Yesterday",
|
"Common.define.conditionalData.textYesterday": "Yesterday",
|
||||||
"Common.Translation.textMoreButton": "More",
|
"Common.Translation.textMoreButton": "More",
|
||||||
|
"Common.Translation.tipFileLocked": "Document is locked for editing. You can make changes and save it as local copy later.",
|
||||||
|
"Common.Translation.tipFileReadOnly": "The file is read-only. To keep your changes, save the file with a new name or in a different location.",
|
||||||
"Common.Translation.warnFileLocked": "The file is being edited in another app. You can continue editing and save it as a copy.",
|
"Common.Translation.warnFileLocked": "The file is being edited in another app. You can continue editing and save it as a copy.",
|
||||||
"Common.Translation.warnFileLockedBtnEdit": "Create a copy",
|
"Common.Translation.warnFileLockedBtnEdit": "Create a copy",
|
||||||
"Common.Translation.warnFileLockedBtnView": "Open for viewing",
|
"Common.Translation.warnFileLockedBtnView": "Open for viewing",
|
||||||
"Common.Translation.tipFileLocked": "Document is locked for editing. You can make changes and save it as local copy later.",
|
|
||||||
"Common.Translation.tipFileReadOnly": "Document is read only and locked for editing. You can make changes and save its local copy later.",
|
|
||||||
"Common.UI.ButtonColored.textAutoColor": "Automatic",
|
"Common.UI.ButtonColored.textAutoColor": "Automatic",
|
||||||
"Common.UI.ButtonColored.textNewColor": "Add New Custom Color",
|
"Common.UI.ButtonColored.textNewColor": "Add New Custom Color",
|
||||||
"Common.UI.ComboBorderSize.txtNoBorders": "No borders",
|
"Common.UI.ComboBorderSize.txtNoBorders": "No borders",
|
||||||
|
|
|
||||||
|
|
@ -102,7 +102,7 @@
|
||||||
"Common.define.conditionalData.textYesterday": "Вчера",
|
"Common.define.conditionalData.textYesterday": "Вчера",
|
||||||
"Common.Translation.textMoreButton": "Ещё",
|
"Common.Translation.textMoreButton": "Ещё",
|
||||||
"Common.Translation.tipFileLocked": "Документ заблокирован на редактирование. Вы можете внести изменения и сохранить его как локальную копию позже.",
|
"Common.Translation.tipFileLocked": "Документ заблокирован на редактирование. Вы можете внести изменения и сохранить его как локальную копию позже.",
|
||||||
"Common.Translation.tipFileReadOnly": "Документ доступен только на просмотр и заблокирован на редактирование. Вы можете внести изменения и сохранить его локальную копию позже.",
|
"Common.Translation.tipFileReadOnly": "Файл доступен только для чтения. Чтобы сохранить изменения, сохраните файл с новым названием или в другом месте.",
|
||||||
"Common.Translation.warnFileLocked": "Файл редактируется в другом приложении. Вы можете продолжить редактирование и сохранить его как копию.",
|
"Common.Translation.warnFileLocked": "Файл редактируется в другом приложении. Вы можете продолжить редактирование и сохранить его как копию.",
|
||||||
"Common.Translation.warnFileLockedBtnEdit": "Создать копию",
|
"Common.Translation.warnFileLockedBtnEdit": "Создать копию",
|
||||||
"Common.Translation.warnFileLockedBtnView": "Открыть на просмотр",
|
"Common.Translation.warnFileLockedBtnView": "Открыть на просмотр",
|
||||||
|
|
@ -234,6 +234,7 @@
|
||||||
"Common.Views.Header.textCompactView": "Скрыть панель инструментов",
|
"Common.Views.Header.textCompactView": "Скрыть панель инструментов",
|
||||||
"Common.Views.Header.textHideLines": "Скрыть линейки",
|
"Common.Views.Header.textHideLines": "Скрыть линейки",
|
||||||
"Common.Views.Header.textHideStatusBar": "Объединить строки листов и состояния",
|
"Common.Views.Header.textHideStatusBar": "Объединить строки листов и состояния",
|
||||||
|
"Common.Views.Header.textReadOnly": "Только чтение",
|
||||||
"Common.Views.Header.textRemoveFavorite": "Удалить из избранного",
|
"Common.Views.Header.textRemoveFavorite": "Удалить из избранного",
|
||||||
"Common.Views.Header.textSaveBegin": "Сохранение...",
|
"Common.Views.Header.textSaveBegin": "Сохранение...",
|
||||||
"Common.Views.Header.textSaveChanged": "Изменен",
|
"Common.Views.Header.textSaveChanged": "Изменен",
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
const EditorUIController = () => null;
|
const EditorUIController = () => null;
|
||||||
|
|
||||||
EditorUIController.isSupportEditFeature = () => false;
|
EditorUIController.isSupportEditFeature = () => true;
|
||||||
|
|
||||||
export default EditorUIController;
|
export default EditorUIController;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue