Compare commits
No commits in common. "master" and "v7.2.2.11" have entirely different histories.
|
|
@ -45,8 +45,7 @@ define([
|
||||||
version: '{{PRODUCT_VERSION}}',
|
version: '{{PRODUCT_VERSION}}',
|
||||||
eventloading: true,
|
eventloading: true,
|
||||||
titlebuttons: true,
|
titlebuttons: true,
|
||||||
uithemes: true,
|
uithemes: true
|
||||||
quickprint: true,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
var native = window.desktop || window.AscDesktopEditor;
|
var native = window.desktop || window.AscDesktopEditor;
|
||||||
|
|
@ -167,8 +166,7 @@ define([
|
||||||
action: action,
|
action: action,
|
||||||
icon: config.icon || undefined,
|
icon: config.icon || undefined,
|
||||||
hint: config.btn.options.hint,
|
hint: config.btn.options.hint,
|
||||||
disabled: config.btn.isDisabled(),
|
disabled: config.btn.isDisabled()
|
||||||
visible: config.visible,
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -203,7 +201,6 @@ define([
|
||||||
if ( !!titlebuttons ) {
|
if ( !!titlebuttons ) {
|
||||||
info.hints = {};
|
info.hints = {};
|
||||||
!!titlebuttons['print'] && (info.hints['print'] = titlebuttons['print'].btn.btnEl.attr('data-hint-title'));
|
!!titlebuttons['print'] && (info.hints['print'] = titlebuttons['print'].btn.btnEl.attr('data-hint-title'));
|
||||||
!!titlebuttons['quickprint'] && (info.hints['quickprint'] = titlebuttons['quickprint'].btn.btnEl.attr('data-hint-title'));
|
|
||||||
!!titlebuttons['undo'] && (info.hints['undo'] = titlebuttons['undo'].btn.btnEl.attr('data-hint-title'));
|
!!titlebuttons['undo'] && (info.hints['undo'] = titlebuttons['undo'].btn.btnEl.attr('data-hint-title'));
|
||||||
!!titlebuttons['redo'] && (info.hints['redo'] = titlebuttons['redo'].btn.btnEl.attr('data-hint-title'));
|
!!titlebuttons['redo'] && (info.hints['redo'] = titlebuttons['redo'].btn.btnEl.attr('data-hint-title'));
|
||||||
!!titlebuttons['save'] && (info.hints['save'] = titlebuttons['save'].btn.btnEl.attr('data-hint-title'));
|
!!titlebuttons['save'] && (info.hints['save'] = titlebuttons['save'].btn.btnEl.attr('data-hint-title'));
|
||||||
|
|
@ -219,24 +216,6 @@ define([
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const _onApplySettings = function (menu) {
|
|
||||||
if ( !!titlebuttons.quickprint ) {
|
|
||||||
const var_name = window.SSE ? 'sse-settings-quick-print-button' :
|
|
||||||
window.PE ? 'pe-settings-quick-print-button' : 'de-settings-quick-print-button';
|
|
||||||
const is_btn_visible = Common.localStorage.getBool(var_name, false);
|
|
||||||
|
|
||||||
if ( titlebuttons.quickprint.visible != is_btn_visible ) {
|
|
||||||
titlebuttons.quickprint.visible = is_btn_visible;
|
|
||||||
const obj = {
|
|
||||||
visible: {
|
|
||||||
quickprint: is_btn_visible,
|
|
||||||
}
|
|
||||||
};
|
|
||||||
native.execCommand('title:button', JSON.stringify(obj));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
init: function (opts) {
|
init: function (opts) {
|
||||||
_.extend(config, opts);
|
_.extend(config, opts);
|
||||||
|
|
@ -254,45 +233,9 @@ define([
|
||||||
|
|
||||||
Common.NotificationCenter.on('document:ready', function () {
|
Common.NotificationCenter.on('document:ready', function () {
|
||||||
if ( config.isEdit ) {
|
if ( config.isEdit ) {
|
||||||
function get_locked_message (t) {
|
var maincontroller = webapp.getController('Main');
|
||||||
switch (t) {
|
if (maincontroller.api.asc_getLocalRestrictions && Asc.c_oAscLocalRestrictionType.None !== maincontroller.api.asc_getLocalRestrictions()) {
|
||||||
// case Asc.c_oAscLocalRestrictionType.Nosafe:
|
maincontroller.warningDocumentIsLocked();
|
||||||
case Asc.c_oAscLocalRestrictionType.ReadOnly:
|
|
||||||
return Common.Locale.get("tipFileReadOnly",{name:"Common.Translation", default: "Document is read only. You can make changes and save its local copy later."});
|
|
||||||
default: return Common.Locale.get("tipFileLocked",{name:"Common.Translation", default: "Document is locked for editing. You can make changes and save its local copy later."});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const header = webapp.getController('Viewport').getView('Common.Views.Header');
|
|
||||||
const api = webapp.getController('Main').api;
|
|
||||||
const locktype = api.asc_getLocalRestrictions ? api.asc_getLocalRestrictions() : Asc.c_oAscLocalRestrictionType.None;
|
|
||||||
if ( Asc.c_oAscLocalRestrictionType.None !== locktype ) {
|
|
||||||
features.readonly = true;
|
|
||||||
|
|
||||||
header.setDocumentReadOnly(true);
|
|
||||||
api.asc_setLocalRestrictions(Asc.c_oAscLocalRestrictionType.None);
|
|
||||||
|
|
||||||
(new Common.UI.SynchronizeTip({
|
|
||||||
extCls: 'no-arrow',
|
|
||||||
placement: 'bottom',
|
|
||||||
target: $('.toolbar'),
|
|
||||||
text: get_locked_message(locktype),
|
|
||||||
showLink: false,
|
|
||||||
})).on('closeclick', function () {
|
|
||||||
this.close();
|
|
||||||
}).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));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
@ -304,7 +247,7 @@ define([
|
||||||
|
|
||||||
titlebuttons = {};
|
titlebuttons = {};
|
||||||
if ( mode.isEdit ) {
|
if ( mode.isEdit ) {
|
||||||
const header = webapp.getController('Viewport').getView('Common.Views.Header');
|
var header = webapp.getController('Viewport').getView('Common.Views.Header');
|
||||||
if (!!header.btnSave) {
|
if (!!header.btnSave) {
|
||||||
titlebuttons['save'] = {btn: header.btnSave};
|
titlebuttons['save'] = {btn: header.btnSave};
|
||||||
|
|
||||||
|
|
@ -315,13 +258,6 @@ define([
|
||||||
if (!!header.btnPrint)
|
if (!!header.btnPrint)
|
||||||
titlebuttons['print'] = {btn: header.btnPrint};
|
titlebuttons['print'] = {btn: header.btnPrint};
|
||||||
|
|
||||||
if (!!header.btnPrintQuick) {
|
|
||||||
titlebuttons['quickprint'] = {
|
|
||||||
btn: header.btnPrintQuick,
|
|
||||||
visible: header.btnPrintQuick.isVisible(),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!!header.btnUndo)
|
if (!!header.btnUndo)
|
||||||
titlebuttons['undo'] = {btn: header.btnUndo};
|
titlebuttons['undo'] = {btn: header.btnUndo};
|
||||||
|
|
||||||
|
|
@ -352,7 +288,6 @@ 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'}));
|
||||||
|
|
@ -377,7 +312,6 @@ define([
|
||||||
menu.hide();
|
menu.hide();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
'settings:apply': _onApplySettings.bind(this),
|
|
||||||
},
|
},
|
||||||
}, {id: 'desktop'});
|
}, {id: 'desktop'});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -81,7 +81,6 @@ define([
|
||||||
'<div class="hedset">' +
|
'<div class="hedset">' +
|
||||||
'<div class="btn-slot" id="slot-hbtn-edit"></div>' +
|
'<div class="btn-slot" id="slot-hbtn-edit"></div>' +
|
||||||
'<div class="btn-slot" id="slot-hbtn-print"></div>' +
|
'<div class="btn-slot" id="slot-hbtn-print"></div>' +
|
||||||
'<div class="btn-slot" id="slot-hbtn-print-quick"></div>' +
|
|
||||||
'<div class="btn-slot" id="slot-hbtn-download"></div>' +
|
'<div class="btn-slot" id="slot-hbtn-download"></div>' +
|
||||||
'</div>' +
|
'</div>' +
|
||||||
'<div class="hedset" data-layout-name="header-users">' +
|
'<div class="hedset" data-layout-name="header-users">' +
|
||||||
|
|
@ -129,7 +128,6 @@ define([
|
||||||
'<div class="hedset">' +
|
'<div class="hedset">' +
|
||||||
'<div class="btn-slot" id="slot-btn-dt-save" data-layout-name="header-save"></div>' +
|
'<div class="btn-slot" id="slot-btn-dt-save" data-layout-name="header-save"></div>' +
|
||||||
'<div class="btn-slot" id="slot-btn-dt-print"></div>' +
|
'<div class="btn-slot" id="slot-btn-dt-print"></div>' +
|
||||||
'<div class="btn-slot" id="slot-btn-dt-print-quick"></div>' +
|
|
||||||
'<div class="btn-slot" id="slot-btn-dt-undo"></div>' +
|
'<div class="btn-slot" id="slot-btn-dt-undo"></div>' +
|
||||||
'<div class="btn-slot" id="slot-btn-dt-redo"></div>' +
|
'<div class="btn-slot" id="slot-btn-dt-redo"></div>' +
|
||||||
'</div>' +
|
'</div>' +
|
||||||
|
|
@ -334,13 +332,6 @@ define([
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( me.btnPrintQuick ) {
|
|
||||||
me.btnPrintQuick.updateHint(me.tipPrintQuick);
|
|
||||||
me.btnPrintQuick.on('click', function (e) {
|
|
||||||
me.fireEvent('print-quick', me);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
if ( me.btnSave ) {
|
if ( me.btnSave ) {
|
||||||
me.btnSave.updateHint(me.tipSave + Common.Utils.String.platformKey('Ctrl+S'));
|
me.btnSave.updateHint(me.tipSave + Common.Utils.String.platformKey('Ctrl+S'));
|
||||||
me.btnSave.on('click', function (e) {
|
me.btnSave.on('click', function (e) {
|
||||||
|
|
@ -581,9 +572,6 @@ define([
|
||||||
if ( config.canPrint )
|
if ( config.canPrint )
|
||||||
this.btnPrint = createTitleButton('toolbar__icon icon--inverse btn-print', $html.findById('#slot-hbtn-print'), undefined, 'bottom', 'big', 'P');
|
this.btnPrint = createTitleButton('toolbar__icon icon--inverse btn-print', $html.findById('#slot-hbtn-print'), undefined, 'bottom', 'big', 'P');
|
||||||
|
|
||||||
if ( config.canQuickPrint )
|
|
||||||
this.btnPrintQuick = createTitleButton('toolbar__icon icon--inverse btn-quick-print', $html.findById('#slot-hbtn-print-quick'), undefined, 'bottom', 'big', 'Q');
|
|
||||||
|
|
||||||
if ( config.canEdit && config.canRequestEditRights )
|
if ( config.canEdit && config.canRequestEditRights )
|
||||||
this.btnEdit = createTitleButton('toolbar__icon icon--inverse btn-edit', $html.findById('#slot-hbtn-edit'), undefined, 'bottom', 'big');
|
this.btnEdit = createTitleButton('toolbar__icon icon--inverse btn-edit', $html.findById('#slot-hbtn-edit'), undefined, 'bottom', 'big');
|
||||||
}
|
}
|
||||||
|
|
@ -658,8 +646,6 @@ define([
|
||||||
if ( config.canPrint && config.isEdit ) {
|
if ( config.canPrint && config.isEdit ) {
|
||||||
me.btnPrint = createTitleButton('toolbar__icon icon--inverse btn-print', $html.findById('#slot-btn-dt-print'), true, undefined, undefined, 'P');
|
me.btnPrint = createTitleButton('toolbar__icon icon--inverse btn-print', $html.findById('#slot-btn-dt-print'), true, undefined, undefined, 'P');
|
||||||
}
|
}
|
||||||
if ( config.canQuickPrint && config.isEdit )
|
|
||||||
me.btnPrintQuick = createTitleButton('toolbar__icon icon--inverse btn-quick-print', $html.findById('#slot-btn-dt-print-quick'), true, undefined, undefined, 'Q');
|
|
||||||
|
|
||||||
me.btnSave = createTitleButton('toolbar__icon icon--inverse btn-save', $html.findById('#slot-btn-dt-save'), true, undefined, undefined, 'S');
|
me.btnSave = createTitleButton('toolbar__icon icon--inverse btn-save', $html.findById('#slot-btn-dt-save'), true, undefined, undefined, 'S');
|
||||||
me.btnUndo = createTitleButton('toolbar__icon icon--inverse btn-undo', $html.findById('#slot-btn-dt-undo'), true, undefined, undefined, 'Z');
|
me.btnUndo = createTitleButton('toolbar__icon icon--inverse btn-undo', $html.findById('#slot-btn-dt-undo'), true, undefined, undefined, 'Z');
|
||||||
|
|
@ -709,7 +695,6 @@ define([
|
||||||
if (idx>0)
|
if (idx>0)
|
||||||
this.fileExtention = this.documentCaption.substring(idx);
|
this.fileExtention = this.documentCaption.substring(idx);
|
||||||
this.isModified && (value += '*');
|
this.isModified && (value += '*');
|
||||||
this.readOnly && (value += ' (' + this.textReadOnly + ')');
|
|
||||||
if ( $labelDocName ) {
|
if ( $labelDocName ) {
|
||||||
this.setDocTitle( value );
|
this.setDocTitle( value );
|
||||||
}
|
}
|
||||||
|
|
@ -902,11 +887,6 @@ define([
|
||||||
return initials;
|
return initials;
|
||||||
},
|
},
|
||||||
|
|
||||||
setDocumentReadOnly: function (readonly) {
|
|
||||||
this.readOnly = readonly;
|
|
||||||
this.setDocumentCaption(this.documentCaption);
|
|
||||||
},
|
|
||||||
|
|
||||||
textBack: 'Go to Documents',
|
textBack: 'Go to Documents',
|
||||||
txtRename: 'Rename',
|
txtRename: 'Rename',
|
||||||
txtAccessRights: 'Change access rights',
|
txtAccessRights: 'Change access rights',
|
||||||
|
|
@ -930,9 +910,7 @@ define([
|
||||||
textAddFavorite: 'Mark as favorite',
|
textAddFavorite: 'Mark as favorite',
|
||||||
textHideNotes: 'Hide Notes',
|
textHideNotes: 'Hide Notes',
|
||||||
tipSearch: 'Search',
|
tipSearch: 'Search',
|
||||||
textShare: 'Share',
|
textShare: 'Share'
|
||||||
tipPrintQuick: 'Quick print',
|
|
||||||
textReadOnly: 'Read only'
|
|
||||||
}
|
}
|
||||||
}(), Common.Views.Header || {}))
|
}(), Common.Views.Header || {}))
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
Before Width: | Height: | Size: 254 B |
|
Before Width: | Height: | Size: 392 B |
|
Before Width: | Height: | Size: 286 B |
|
Before Width: | Height: | Size: 439 B |
|
Before Width: | Height: | Size: 314 B |
|
Before Width: | Height: | Size: 525 B |
|
Before Width: | Height: | Size: 238 B |
|
Before Width: | Height: | Size: 360 B |
|
Before Width: | Height: | Size: 436 B |
|
Before Width: | Height: | Size: 754 B |
|
|
@ -1495,8 +1495,6 @@ 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 && !Common.Utils.isMac && this.appOptions.isDesktopApp &&
|
|
||||||
!(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();
|
||||||
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);
|
||||||
|
|
@ -2466,7 +2464,7 @@ define([
|
||||||
this.api.asc_SetDocumentUnits((value==Common.Utils.Metric.c_MetricUnits.inch) ? Asc.c_oAscDocumentUnits.Inch : ((value==Common.Utils.Metric.c_MetricUnits.pt) ? Asc.c_oAscDocumentUnits.Point : Asc.c_oAscDocumentUnits.Millimeter));
|
this.api.asc_SetDocumentUnits((value==Common.Utils.Metric.c_MetricUnits.inch) ? Asc.c_oAscDocumentUnits.Inch : ((value==Common.Utils.Metric.c_MetricUnits.pt) ? Asc.c_oAscDocumentUnits.Point : Asc.c_oAscDocumentUnits.Millimeter));
|
||||||
this.getApplication().getController('RightMenu').updateMetricUnit();
|
this.getApplication().getController('RightMenu').updateMetricUnit();
|
||||||
this.getApplication().getController('Toolbar').getView().updateMetricUnit();
|
this.getApplication().getController('Toolbar').getView().updateMetricUnit();
|
||||||
this.appOptions.canPreviewPrint && this.getApplication().getController('Print').getView('PrintWithPreview').updateMetricUnit();
|
this.getApplication().getController('Print').getView('PrintWithPreview').updateMetricUnit();
|
||||||
},
|
},
|
||||||
|
|
||||||
onAdvancedOptions: function(type, advOptions, mode, formatOptions) {
|
onAdvancedOptions: function(type, advOptions, mode, formatOptions) {
|
||||||
|
|
@ -2654,39 +2652,6 @@ define([
|
||||||
if (url) this.iframePrint.src = url;
|
if (url) this.iframePrint.src = url;
|
||||||
},
|
},
|
||||||
|
|
||||||
onPrintQuick: function() {
|
|
||||||
if (!this.appOptions.canQuickPrint) return;
|
|
||||||
|
|
||||||
var value = Common.localStorage.getBool("de-hide-quick-print-warning"),
|
|
||||||
me = this,
|
|
||||||
handler = function () {
|
|
||||||
var printopt = new Asc.asc_CAdjustPrint();
|
|
||||||
printopt.asc_setNativeOptions({quickPrint: true});
|
|
||||||
var opts = new Asc.asc_CDownloadOptions();
|
|
||||||
opts.asc_setAdvancedOptions(printopt);
|
|
||||||
me.api.asc_Print(opts);
|
|
||||||
Common.component.Analytics.trackEvent('Print');
|
|
||||||
};
|
|
||||||
|
|
||||||
if (value) {
|
|
||||||
handler.call(this);
|
|
||||||
} else {
|
|
||||||
Common.UI.warning({
|
|
||||||
msg: this.textTryQuickPrint,
|
|
||||||
buttons: ['yes', 'no'],
|
|
||||||
primary: 'yes',
|
|
||||||
dontshow: true,
|
|
||||||
maxwidth: 500,
|
|
||||||
callback: function(btn, dontshow){
|
|
||||||
dontshow && Common.localStorage.setBool("de-hide-quick-print-warning", true);
|
|
||||||
if (btn === 'yes') {
|
|
||||||
setTimeout(handler, 1);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
onClearDummyComment: function() {
|
onClearDummyComment: function() {
|
||||||
this.dontCloseDummyComment = false;
|
this.dontCloseDummyComment = false;
|
||||||
},
|
},
|
||||||
|
|
@ -3313,8 +3278,7 @@ define([
|
||||||
errorTextFormWrongFormat: 'The value entered does not match the format of the field.',
|
errorTextFormWrongFormat: 'The value entered does not match the format of the field.',
|
||||||
confirmMaxChangesSize: 'The size of actions exceeds the limitation set for your server.<br>Press "Undo" to cancel your last action or press "Continue" to keep action locally (you need to download the file or copy its content to make sure nothing is lost).',
|
confirmMaxChangesSize: 'The size of actions exceeds the limitation set for your server.<br>Press "Undo" to cancel your last action or press "Continue" to keep action locally (you need to download the file or copy its content to make sure nothing is lost).',
|
||||||
textUndo: 'Undo',
|
textUndo: 'Undo',
|
||||||
textContinue: 'Continue',
|
textContinue: 'Continue'
|
||||||
textTryQuickPrint: 'You have selected Quick print: the entire document will be printed on the last selected or default printer.<br>Do you want to continue?'
|
|
||||||
}
|
}
|
||||||
})(), DE.Controllers.Main || {}))
|
})(), DE.Controllers.Main || {}))
|
||||||
});
|
});
|
||||||
|
|
@ -89,9 +89,6 @@ define([
|
||||||
if (!_.isEmpty(value) && /[0-9,\-]/.test(value)) {
|
if (!_.isEmpty(value) && /[0-9,\-]/.test(value)) {
|
||||||
var res = [],
|
var res = [],
|
||||||
arr = value.split(',');
|
arr = value.split(',');
|
||||||
if (me._isPrint && arr.length>1)
|
|
||||||
return me.txtPrintRangeSingleRange;
|
|
||||||
|
|
||||||
for (var i=0; i<arr.length; i++) {
|
for (var i=0; i<arr.length; i++) {
|
||||||
var item = arr[i];
|
var item = arr[i];
|
||||||
if (!item) // empty
|
if (!item) // empty
|
||||||
|
|
@ -154,25 +151,6 @@ define([
|
||||||
return this;
|
return this;
|
||||||
},
|
},
|
||||||
|
|
||||||
findPagePreset: function(w, h) {
|
|
||||||
var width = (w<h) ? w : h,
|
|
||||||
height = (w<h) ? h : w;
|
|
||||||
var panel = this.printSettings;
|
|
||||||
var store = panel.cmbPaperSize.store,
|
|
||||||
item = null;
|
|
||||||
for (var i=0; i<store.length-1; i++) {
|
|
||||||
var rec = store.at(i),
|
|
||||||
size = rec.get('size'),
|
|
||||||
pagewidth = size[0],
|
|
||||||
pageheight = size[1];
|
|
||||||
if (Math.abs(pagewidth - width) < 0.1 && Math.abs(pageheight - height) < 0.1) {
|
|
||||||
item = rec;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return item ? item.get('caption') : undefined;
|
|
||||||
},
|
|
||||||
|
|
||||||
onApiPageSize: function(w, h) {
|
onApiPageSize: function(w, h) {
|
||||||
this._state.pgsize = [w, h];
|
this._state.pgsize = [w, h];
|
||||||
if (this.printSettings.isVisible()) {
|
if (this.printSettings.isVisible()) {
|
||||||
|
|
@ -421,7 +399,7 @@ define([
|
||||||
|
|
||||||
onHidePrintMenu: function () {
|
onHidePrintMenu: function () {
|
||||||
if (this._isPreviewVisible) {
|
if (this._isPreviewVisible) {
|
||||||
this.api.asc_closePrintPreview && this.api.asc_closePrintPreview();
|
this.api.asc_closePrintPreview && this.api.asc_closePrintPreview(this._isPrint);
|
||||||
this._isPreviewVisible = false;
|
this._isPreviewVisible = false;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -503,7 +481,6 @@ define([
|
||||||
},
|
},
|
||||||
|
|
||||||
onBtnPrint: function(print) {
|
onBtnPrint: function(print) {
|
||||||
this._isPrint = print;
|
|
||||||
if (this.printSettings.cmbRange.getValue()===-1 && this.printSettings.inputPages.checkValidate() !== true) {
|
if (this.printSettings.cmbRange.getValue()===-1 && this.printSettings.inputPages.checkValidate() !== true) {
|
||||||
this.printSettings.inputPages.focus();
|
this.printSettings.inputPages.focus();
|
||||||
this.isInputFirstChange = true;
|
this.isInputFirstChange = true;
|
||||||
|
|
@ -514,27 +491,24 @@ define([
|
||||||
else if (this.printSettings.cmbRange.getValue()==='current')
|
else if (this.printSettings.cmbRange.getValue()==='current')
|
||||||
this._state.firstPrintPage = this._navigationPreview.currentPage;
|
this._state.firstPrintPage = this._navigationPreview.currentPage;
|
||||||
|
|
||||||
var size = this.api.asc_getPageSize(this._state.firstPrintPage);
|
|
||||||
this.adjPrintParams.asc_setNativeOptions({
|
this.adjPrintParams.asc_setNativeOptions({
|
||||||
pages: this.printSettings.cmbRange.getValue()===-1 ? this.printSettings.inputPages.getValue() : this.printSettings.cmbRange.getValue(),
|
pages: this.printSettings.cmbRange.getValue()===-1 ? this.printSettings.inputPages.getValue() : this.printSettings.cmbRange.getValue(),
|
||||||
paperSize: {
|
paperSize: this._state.pgsize, //this.api.asc_getPageSize(this._state.firstPrintPage),
|
||||||
w: size ? size['W'] : undefined,
|
paperOrientation: this._state.pgorient ? 'portrait' : 'landscape' // this.api.asc_getPageOrient(this._state.firstPrintPage) ? 'portrait' : 'landscape'
|
||||||
h: size ? size['H'] : undefined,
|
|
||||||
preset: size ? this.findPagePreset(size['W'], size['H']) : undefined
|
|
||||||
},
|
|
||||||
paperOrientation: size ? (size['H'] > size['W'] ? 'portrait' : 'landscape') : null
|
|
||||||
});
|
});
|
||||||
|
|
||||||
this.printSettings.menu.hide();
|
this._isPrint = print;
|
||||||
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);
|
||||||
this.api.asc_Print(opts);
|
this.api.asc_Print(opts);
|
||||||
|
this._isPrint = false;
|
||||||
} else {
|
} else {
|
||||||
var opts = new Asc.asc_CDownloadOptions(Asc.c_oAscFileType.PDF);
|
var opts = new Asc.asc_CDownloadOptions(Asc.c_oAscFileType.PDF);
|
||||||
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) {
|
||||||
|
|
@ -568,7 +542,6 @@ define([
|
||||||
|
|
||||||
txtCustom: 'Custom',
|
txtCustom: 'Custom',
|
||||||
txtPrintRangeInvalid: 'Invalid print range',
|
txtPrintRangeInvalid: 'Invalid print range',
|
||||||
textMarginsLast: 'Last Custom',
|
textMarginsLast: 'Last Custom'
|
||||||
txtPrintRangeSingleRange: 'Enter either a single page number or a single page range (for example, 5-12). Or you can Print to PDF.'
|
|
||||||
}, DE.Controllers.Print || {}));
|
}, DE.Controllers.Print || {}));
|
||||||
});
|
});
|
||||||
|
|
@ -129,10 +129,6 @@ define([
|
||||||
var _main = this.getApplication().getController('Main');
|
var _main = this.getApplication().getController('Main');
|
||||||
_main.onPrint();
|
_main.onPrint();
|
||||||
},
|
},
|
||||||
'print-quick': function (opts) {
|
|
||||||
var _main = this.getApplication().getController('Main');
|
|
||||||
_main.onPrintQuick();
|
|
||||||
},
|
|
||||||
'save': function (opts) {
|
'save': function (opts) {
|
||||||
this.api.asc_Save();
|
this.api.asc_Save();
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -71,8 +71,7 @@ define([
|
||||||
this.addListeners({
|
this.addListeners({
|
||||||
'FileMenu': {
|
'FileMenu': {
|
||||||
'menu:hide': me.onFileMenu.bind(me, 'hide'),
|
'menu:hide': me.onFileMenu.bind(me, 'hide'),
|
||||||
'menu:show': me.onFileMenu.bind(me, 'show'),
|
'menu:show': me.onFileMenu.bind(me, 'show')
|
||||||
'settings:apply': me.applySettings.bind(me)
|
|
||||||
},
|
},
|
||||||
'Toolbar': {
|
'Toolbar': {
|
||||||
'render:before' : function (toolbar) {
|
'render:before' : function (toolbar) {
|
||||||
|
|
@ -80,11 +79,6 @@ define([
|
||||||
toolbar.setExtra('right', me.header.getPanel('right', config));
|
toolbar.setExtra('right', me.header.getPanel('right', config));
|
||||||
if (!config.isEdit || config.customization && !!config.customization.compactHeader)
|
if (!config.isEdit || config.customization && !!config.customization.compactHeader)
|
||||||
toolbar.setExtra('left', me.header.getPanel('left', config));
|
toolbar.setExtra('left', me.header.getPanel('left', config));
|
||||||
|
|
||||||
var value = Common.localStorage.getBool("de-settings-quick-print-button", true);
|
|
||||||
Common.Utils.InternalSettings.set("de-settings-quick-print-button", value);
|
|
||||||
if (me.header && me.header.btnPrintQuick)
|
|
||||||
me.header.btnPrintQuick[value ? 'show' : 'hide']();
|
|
||||||
},
|
},
|
||||||
'view:compact' : function (toolbar, state) {
|
'view:compact' : function (toolbar, state) {
|
||||||
me.viewport.vlayout.getItem('toolbar').height = state ?
|
me.viewport.vlayout.getItem('toolbar').height = state ?
|
||||||
|
|
@ -106,8 +100,6 @@ define([
|
||||||
'print:disabled' : function (state) {
|
'print:disabled' : function (state) {
|
||||||
if ( me.header.btnPrint )
|
if ( me.header.btnPrint )
|
||||||
me.header.btnPrint.setDisabled(state);
|
me.header.btnPrint.setDisabled(state);
|
||||||
if ( me.header.btnPrintQuick )
|
|
||||||
me.header.btnPrintQuick.setDisabled(state);
|
|
||||||
},
|
},
|
||||||
'save:disabled' : function (state) {
|
'save:disabled' : function (state) {
|
||||||
if ( me.header.btnSave )
|
if ( me.header.btnSave )
|
||||||
|
|
@ -263,21 +255,12 @@ define([
|
||||||
me.header.lockHeaderBtns( 'users', _need_disable );
|
me.header.lockHeaderBtns( 'users', _need_disable );
|
||||||
},
|
},
|
||||||
|
|
||||||
applySettings: function () {
|
|
||||||
var value = Common.localStorage.getBool("de-settings-quick-print-button", true);
|
|
||||||
Common.Utils.InternalSettings.set("de-settings-quick-print-button", value);
|
|
||||||
if (this.header && this.header.btnPrintQuick)
|
|
||||||
this.header.btnPrintQuick[value ? 'show' : 'hide']();
|
|
||||||
},
|
|
||||||
|
|
||||||
onApiCoAuthoringDisconnect: function(enableDownload) {
|
onApiCoAuthoringDisconnect: function(enableDownload) {
|
||||||
if (this.header) {
|
if (this.header) {
|
||||||
if (this.header.btnDownload && !enableDownload)
|
if (this.header.btnDownload && !enableDownload)
|
||||||
this.header.btnDownload.hide();
|
this.header.btnDownload.hide();
|
||||||
if (this.header.btnPrint && !enableDownload)
|
if (this.header.btnPrint && !enableDownload)
|
||||||
this.header.btnPrint.hide();
|
this.header.btnPrint.hide();
|
||||||
if (this.header.btnPrintQuick && !enableDownload)
|
|
||||||
this.header.btnPrintQuick.hide();
|
|
||||||
if (this.header.btnEdit)
|
if (this.header.btnEdit)
|
||||||
this.header.btnEdit.hide();
|
this.header.btnEdit.hide();
|
||||||
this.header.lockHeaderBtns( 'rename-user', true);
|
this.header.lockHeaderBtns( 'rename-user', true);
|
||||||
|
|
|
||||||
|
|
@ -341,12 +341,6 @@ define([
|
||||||
'<tr>',
|
'<tr>',
|
||||||
'<td colspan="2"><div id="fms-chb-use-alt-key"></div></td>',
|
'<td colspan="2"><div id="fms-chb-use-alt-key"></div></td>',
|
||||||
'</tr>',
|
'</tr>',
|
||||||
'<tr class="quick-print">',
|
|
||||||
'<td colspan="2"><div style="display: flex;"><div id="fms-chb-quick-print"></div>',
|
|
||||||
'<span style ="display: flex; flex-direction: column;"><label><%= scope.txtQuickPrint %></label>',
|
|
||||||
'<label class="comment-text"><%= scope.txtQuickPrintTip %></label></span></div>',
|
|
||||||
'</td>',
|
|
||||||
'</tr>',
|
|
||||||
'<tr class="themes">',
|
'<tr class="themes">',
|
||||||
'<td><label><%= scope.strTheme %></label></td>',
|
'<td><label><%= scope.strTheme %></label></td>',
|
||||||
'<td>',
|
'<td>',
|
||||||
|
|
@ -704,17 +698,6 @@ define([
|
||||||
})).on('click', _.bind(me.applySettings, me));
|
})).on('click', _.bind(me.applySettings, me));
|
||||||
});
|
});
|
||||||
|
|
||||||
this.chQuickPrint = new Common.UI.CheckBox({
|
|
||||||
el: $markup.findById('#fms-chb-quick-print'),
|
|
||||||
labelText: '',
|
|
||||||
dataHint: '2',
|
|
||||||
dataHintDirection: 'left',
|
|
||||||
dataHintOffset: 'small'
|
|
||||||
});
|
|
||||||
this.chQuickPrint.$el.parent().on('click', function (){
|
|
||||||
me.chQuickPrint.setValue(!me.chQuickPrint.isChecked());
|
|
||||||
});
|
|
||||||
|
|
||||||
this.pnlSettings = $markup.find('.flex-settings').addBack().filter('.flex-settings');
|
this.pnlSettings = $markup.find('.flex-settings').addBack().filter('.flex-settings');
|
||||||
this.pnlApply = $markup.find('.fms-flex-apply').addBack().filter('.fms-flex-apply');
|
this.pnlApply = $markup.find('.fms-flex-apply').addBack().filter('.fms-flex-apply');
|
||||||
this.pnlTable = this.pnlSettings.find('table');
|
this.pnlTable = this.pnlSettings.find('table');
|
||||||
|
|
@ -779,9 +762,9 @@ define([
|
||||||
$('tr.view-review', this.el)[mode.canViewReview ? 'show' : 'hide']();
|
$('tr.view-review', this.el)[mode.canViewReview ? 'show' : 'hide']();
|
||||||
$('tr.spellcheck', this.el)[mode.isEdit && Common.UI.FeaturesManager.canChange('spellcheck') ? 'show' : 'hide']();
|
$('tr.spellcheck', this.el)[mode.isEdit && Common.UI.FeaturesManager.canChange('spellcheck') ? 'show' : 'hide']();
|
||||||
$('tr.comments', this.el)[mode.canCoAuthoring ? 'show' : 'hide']();
|
$('tr.comments', this.el)[mode.canCoAuthoring ? 'show' : 'hide']();
|
||||||
|
|
||||||
/** coauthoring end **/
|
/** coauthoring end **/
|
||||||
|
|
||||||
$('tr.quick-print', this.el)[mode.canQuickPrint ? 'show' : 'hide']();
|
|
||||||
$('tr.macros', this.el)[(mode.customization && mode.customization.macros===false) ? 'hide' : 'show']();
|
$('tr.macros', this.el)[(mode.customization && mode.customization.macros===false) ? 'hide' : 'show']();
|
||||||
if ( !Common.UI.Themes.available() ) {
|
if ( !Common.UI.Themes.available() ) {
|
||||||
$('tr.themes, tr.themes + tr.divider', this.el).hide();
|
$('tr.themes, tr.themes + tr.divider', this.el).hide();
|
||||||
|
|
@ -852,7 +835,6 @@ define([
|
||||||
this.cmbMacros.setValue(item ? item.get('value') : 0);
|
this.cmbMacros.setValue(item ? item.get('value') : 0);
|
||||||
|
|
||||||
this.chPaste.setValue(Common.Utils.InternalSettings.get("de-settings-paste-button"));
|
this.chPaste.setValue(Common.Utils.InternalSettings.get("de-settings-paste-button"));
|
||||||
this.chQuickPrint.setValue(Common.Utils.InternalSettings.get("de-settings-quick-print-button"));
|
|
||||||
|
|
||||||
var data = [];
|
var data = [];
|
||||||
for (var t in Common.UI.Themes.map()) {
|
for (var t in Common.UI.Themes.map()) {
|
||||||
|
|
@ -922,7 +904,6 @@ define([
|
||||||
}
|
}
|
||||||
|
|
||||||
Common.localStorage.setItem("de-settings-paste-button", this.chPaste.isChecked() ? 1 : 0);
|
Common.localStorage.setItem("de-settings-paste-button", this.chPaste.isChecked() ? 1 : 0);
|
||||||
Common.localStorage.setBool("de-settings-quick-print-button", this.chQuickPrint.isChecked());
|
|
||||||
|
|
||||||
Common.localStorage.save();
|
Common.localStorage.save();
|
||||||
|
|
||||||
|
|
@ -1020,9 +1001,7 @@ define([
|
||||||
txtStrictTip: 'Use the \'Save\' button to sync the changes you and others make',
|
txtStrictTip: 'Use the \'Save\' button to sync the changes you and others make',
|
||||||
strIgnoreWordsInUPPERCASE: 'Ignore words in UPPERCASE',
|
strIgnoreWordsInUPPERCASE: 'Ignore words in UPPERCASE',
|
||||||
strIgnoreWordsWithNumbers: 'Ignore words with numbers',
|
strIgnoreWordsWithNumbers: 'Ignore words with numbers',
|
||||||
strShowOthersChanges: 'Show changes from other users',
|
strShowOthersChanges: 'Show changes from other users'
|
||||||
txtQuickPrint: 'Show the Quick Print button in the editor header',
|
|
||||||
txtQuickPrintTip: 'The document will be printed on the last selected or default printer'
|
|
||||||
}, DE.Views.FileMenuPanels.Settings || {}));
|
}, DE.Views.FileMenuPanels.Settings || {}));
|
||||||
|
|
||||||
DE.Views.FileMenuPanels.RecentFiles = Common.UI.BaseView.extend({
|
DE.Views.FileMenuPanels.RecentFiles = Common.UI.BaseView.extend({
|
||||||
|
|
@ -2619,7 +2598,6 @@ define([
|
||||||
},
|
},
|
||||||
|
|
||||||
updateMetricUnit: function() {
|
updateMetricUnit: function() {
|
||||||
if (!this.cmbPaperSize) return;
|
|
||||||
var store = this.cmbPaperSize.store;
|
var store = this.cmbPaperSize.store;
|
||||||
for (var i=0; i<store.length-1; i++) {
|
for (var i=0; i<store.length-1; i++) {
|
||||||
var item = store.at(i),
|
var item = store.at(i),
|
||||||
|
|
|
||||||
|
|
@ -126,8 +126,6 @@
|
||||||
"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.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": "You can't edit this file because it's being edited in another app.",
|
"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",
|
||||||
|
|
@ -321,8 +319,6 @@
|
||||||
"Common.Views.Header.tipViewUsers": "View users and manage document access rights",
|
"Common.Views.Header.tipViewUsers": "View users and manage document access rights",
|
||||||
"Common.Views.Header.txtAccessRights": "Change access rights",
|
"Common.Views.Header.txtAccessRights": "Change access rights",
|
||||||
"Common.Views.Header.txtRename": "Rename",
|
"Common.Views.Header.txtRename": "Rename",
|
||||||
"Common.Views.Header.tipPrintQuick": "Quick print",
|
|
||||||
"Common.Views.Header.textReadOnly": "Read only",
|
|
||||||
"Common.Views.History.textCloseHistory": "Close History",
|
"Common.Views.History.textCloseHistory": "Close History",
|
||||||
"Common.Views.History.textHide": "Collapse",
|
"Common.Views.History.textHide": "Collapse",
|
||||||
"Common.Views.History.textHideAll": "Hide detailed changes",
|
"Common.Views.History.textHideAll": "Hide detailed changes",
|
||||||
|
|
@ -942,7 +938,6 @@
|
||||||
"DE.Controllers.Main.confirmMaxChangesSize": "The size of actions exceeds the limitation set for your server.<br>Press \"Undo\" to cancel your last action or press \"Continue\" to keep action locally (you need to download the file or copy its content to make sure nothing is lost).",
|
"DE.Controllers.Main.confirmMaxChangesSize": "The size of actions exceeds the limitation set for your server.<br>Press \"Undo\" to cancel your last action or press \"Continue\" to keep action locally (you need to download the file or copy its content to make sure nothing is lost).",
|
||||||
"DE.Controllers.Main.textUndo": "Undo",
|
"DE.Controllers.Main.textUndo": "Undo",
|
||||||
"DE.Controllers.Main.textContinue": "Continue",
|
"DE.Controllers.Main.textContinue": "Continue",
|
||||||
"DE.Controllers.Main.textTryQuickPrint": "You have selected Quick print: the entire document will be printed on the last selected or default printer.<br>Do you want to continue?",
|
|
||||||
"DE.Controllers.Navigation.txtBeginning": "Beginning of document",
|
"DE.Controllers.Navigation.txtBeginning": "Beginning of document",
|
||||||
"DE.Controllers.Navigation.txtGotoBeginning": "Go to the beginning of the document",
|
"DE.Controllers.Navigation.txtGotoBeginning": "Go to the beginning of the document",
|
||||||
"DE.Controllers.Search.notcriticalErrorTitle": "Warning",
|
"DE.Controllers.Search.notcriticalErrorTitle": "Warning",
|
||||||
|
|
@ -959,7 +954,6 @@
|
||||||
"DE.Controllers.Print.txtCustom": "Custom",
|
"DE.Controllers.Print.txtCustom": "Custom",
|
||||||
"DE.Controllers.Print.txtPrintRangeInvalid": "Invalid print range",
|
"DE.Controllers.Print.txtPrintRangeInvalid": "Invalid print range",
|
||||||
"DE.Controllers.Print.textMarginsLast": "Last Custom",
|
"DE.Controllers.Print.textMarginsLast": "Last Custom",
|
||||||
"DE.Controllers.Print.txtPrintRangeSingleRange": "Enter either a single page number or a single page range (for example, 5-12). Or you can Print to PDF.",
|
|
||||||
"DE.Controllers.Toolbar.confirmAddFontName": "The font you are going to save is not available on the current device.<br>The text style will be displayed using one of the system fonts, the saved font will be used when it is available.<br>Do you want to continue?",
|
"DE.Controllers.Toolbar.confirmAddFontName": "The font you are going to save is not available on the current device.<br>The text style will be displayed using one of the system fonts, the saved font will be used when it is available.<br>Do you want to continue?",
|
||||||
"DE.Controllers.Toolbar.dataUrl": "Paste a data URL",
|
"DE.Controllers.Toolbar.dataUrl": "Paste a data URL",
|
||||||
"DE.Controllers.Toolbar.notcriticalErrorTitle": "Warning",
|
"DE.Controllers.Toolbar.notcriticalErrorTitle": "Warning",
|
||||||
|
|
@ -1849,8 +1843,6 @@
|
||||||
"DE.Views.FileMenuPanels.Settings.txtWarnMacrosDesc": "Disable all macros with a notification",
|
"DE.Views.FileMenuPanels.Settings.txtWarnMacrosDesc": "Disable all macros with a notification",
|
||||||
"DE.Views.FileMenuPanels.Settings.txtWin": "as Windows",
|
"DE.Views.FileMenuPanels.Settings.txtWin": "as Windows",
|
||||||
"DE.Views.FileMenuPanels.Settings.txtWorkspace": "Workspace",
|
"DE.Views.FileMenuPanels.Settings.txtWorkspace": "Workspace",
|
||||||
"DE.Views.FileMenuPanels.Settings.txtQuickPrint": "Show the Quick Print button in the editor header",
|
|
||||||
"DE.Views.FileMenuPanels.Settings.txtQuickPrintTip": "The document will be printed on the last selected or default printer",
|
|
||||||
"DE.Views.FormSettings.textAlways": "Always",
|
"DE.Views.FormSettings.textAlways": "Always",
|
||||||
"DE.Views.FormSettings.textAspect": "Lock aspect ratio",
|
"DE.Views.FormSettings.textAspect": "Lock aspect ratio",
|
||||||
"DE.Views.FormSettings.textAtLeast": "At least",
|
"DE.Views.FormSettings.textAtLeast": "At least",
|
||||||
|
|
|
||||||
|
|
@ -126,8 +126,6 @@
|
||||||
"Common.define.chartData.textStock": "Биржевая",
|
"Common.define.chartData.textStock": "Биржевая",
|
||||||
"Common.define.chartData.textSurface": "Поверхность",
|
"Common.define.chartData.textSurface": "Поверхность",
|
||||||
"Common.Translation.textMoreButton": "Ещё",
|
"Common.Translation.textMoreButton": "Ещё",
|
||||||
"Common.Translation.tipFileLocked": "Документ заблокирован на редактирование. Вы можете внести изменения и сохранить его как локальную копию позже.",
|
|
||||||
"Common.Translation.tipFileReadOnly": "Файл доступен только для чтения. Чтобы сохранить изменения, сохраните файл с новым названием или в другом месте.",
|
|
||||||
"Common.Translation.warnFileLocked": "Вы не можете редактировать этот файл, потому что он уже редактируется в другом приложении.",
|
"Common.Translation.warnFileLocked": "Вы не можете редактировать этот файл, потому что он уже редактируется в другом приложении.",
|
||||||
"Common.Translation.warnFileLockedBtnEdit": "Создать копию",
|
"Common.Translation.warnFileLockedBtnEdit": "Создать копию",
|
||||||
"Common.Translation.warnFileLockedBtnView": "Открыть на просмотр",
|
"Common.Translation.warnFileLockedBtnView": "Открыть на просмотр",
|
||||||
|
|
@ -305,7 +303,6 @@
|
||||||
"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.textShare": "Доступ",
|
"Common.Views.Header.textShare": "Доступ",
|
||||||
"Common.Views.Header.textZoom": "Масштаб",
|
"Common.Views.Header.textZoom": "Масштаб",
|
||||||
|
|
@ -313,7 +310,6 @@
|
||||||
"Common.Views.Header.tipDownload": "Скачать файл",
|
"Common.Views.Header.tipDownload": "Скачать файл",
|
||||||
"Common.Views.Header.tipGoEdit": "Редактировать текущий файл",
|
"Common.Views.Header.tipGoEdit": "Редактировать текущий файл",
|
||||||
"Common.Views.Header.tipPrint": "Напечатать файл",
|
"Common.Views.Header.tipPrint": "Напечатать файл",
|
||||||
"Common.Views.Header.tipPrintQuick": "Быстрая печать",
|
|
||||||
"Common.Views.Header.tipRedo": "Повторить",
|
"Common.Views.Header.tipRedo": "Повторить",
|
||||||
"Common.Views.Header.tipSave": "Сохранить",
|
"Common.Views.Header.tipSave": "Сохранить",
|
||||||
"Common.Views.Header.tipSearch": "Поиск",
|
"Common.Views.Header.tipSearch": "Поиск",
|
||||||
|
|
@ -651,7 +647,6 @@
|
||||||
"DE.Controllers.Main.textClose": "Закрыть",
|
"DE.Controllers.Main.textClose": "Закрыть",
|
||||||
"DE.Controllers.Main.textCloseTip": "Щелкните, чтобы закрыть эту подсказку",
|
"DE.Controllers.Main.textCloseTip": "Щелкните, чтобы закрыть эту подсказку",
|
||||||
"DE.Controllers.Main.textContactUs": "Связаться с отделом продаж",
|
"DE.Controllers.Main.textContactUs": "Связаться с отделом продаж",
|
||||||
"DE.Controllers.Main.textContinue": "Продолжить",
|
|
||||||
"DE.Controllers.Main.textConvertEquation": "Это уравнение создано в старой версии редактора уравнений, которая больше не поддерживается. Чтобы изменить это уравнение, его необходимо преобразовать в формат Office Math ML.<br>Преобразовать сейчас?",
|
"DE.Controllers.Main.textConvertEquation": "Это уравнение создано в старой версии редактора уравнений, которая больше не поддерживается. Чтобы изменить это уравнение, его необходимо преобразовать в формат Office Math ML.<br>Преобразовать сейчас?",
|
||||||
"DE.Controllers.Main.textCustomLoader": "Обратите внимание, что по условиям лицензии у вас нет прав изменять экран, отображаемый при загрузке.<br>Пожалуйста, обратитесь в наш отдел продаж, чтобы сделать запрос.",
|
"DE.Controllers.Main.textCustomLoader": "Обратите внимание, что по условиям лицензии у вас нет прав изменять экран, отображаемый при загрузке.<br>Пожалуйста, обратитесь в наш отдел продаж, чтобы сделать запрос.",
|
||||||
"DE.Controllers.Main.textDisconnect": "Соединение потеряно",
|
"DE.Controllers.Main.textDisconnect": "Соединение потеряно",
|
||||||
|
|
@ -670,10 +665,8 @@
|
||||||
"DE.Controllers.Main.textRequestMacros": "Макрос делает запрос на URL. Вы хотите разрешить запрос на %1?",
|
"DE.Controllers.Main.textRequestMacros": "Макрос делает запрос на URL. Вы хотите разрешить запрос на %1?",
|
||||||
"DE.Controllers.Main.textShape": "Фигура",
|
"DE.Controllers.Main.textShape": "Фигура",
|
||||||
"DE.Controllers.Main.textStrict": "Строгий режим",
|
"DE.Controllers.Main.textStrict": "Строгий режим",
|
||||||
"DE.Controllers.Main.textTryQuickPrint": "Вы выбрали быструю печать: весь документ будет напечатан на последнем выбранном принтере или на принтере по умолчанию.<br>Вы хотите продолжить?",
|
|
||||||
"DE.Controllers.Main.textTryUndoRedo": "Функции отмены и повтора действий отключены в Быстром режиме совместного редактирования.<br>Нажмите на кнопку 'Строгий режим' для переключения в Строгий режим совместного редактирования, чтобы редактировать файл без вмешательства других пользователей и отправлять изменения только после того, как вы их сохраните. Переключаться между режимами совместного редактирования можно с помощью Дополнительных параметров редактора.",
|
"DE.Controllers.Main.textTryUndoRedo": "Функции отмены и повтора действий отключены в Быстром режиме совместного редактирования.<br>Нажмите на кнопку 'Строгий режим' для переключения в Строгий режим совместного редактирования, чтобы редактировать файл без вмешательства других пользователей и отправлять изменения только после того, как вы их сохраните. Переключаться между режимами совместного редактирования можно с помощью Дополнительных параметров редактора.",
|
||||||
"DE.Controllers.Main.textTryUndoRedoWarn": "Функции отмены и повтора действий отключены в Быстром режиме совместного редактирования.",
|
"DE.Controllers.Main.textTryUndoRedoWarn": "Функции отмены и повтора действий отключены в Быстром режиме совместного редактирования.",
|
||||||
"DE.Controllers.Main.textUndo": "Отменить",
|
|
||||||
"DE.Controllers.Main.titleLicenseExp": "Истек срок действия лицензии",
|
"DE.Controllers.Main.titleLicenseExp": "Истек срок действия лицензии",
|
||||||
"DE.Controllers.Main.titleServerVersion": "Редактор обновлен",
|
"DE.Controllers.Main.titleServerVersion": "Редактор обновлен",
|
||||||
"DE.Controllers.Main.titleUpdateVersion": "Версия изменилась",
|
"DE.Controllers.Main.titleUpdateVersion": "Версия изменилась",
|
||||||
|
|
@ -944,10 +937,6 @@
|
||||||
"DE.Controllers.Main.warnProcessRightsChange": "Вам было отказано в праве на редактирование этого файла.",
|
"DE.Controllers.Main.warnProcessRightsChange": "Вам было отказано в праве на редактирование этого файла.",
|
||||||
"DE.Controllers.Navigation.txtBeginning": "Начало документа",
|
"DE.Controllers.Navigation.txtBeginning": "Начало документа",
|
||||||
"DE.Controllers.Navigation.txtGotoBeginning": "Перейти в начало документа",
|
"DE.Controllers.Navigation.txtGotoBeginning": "Перейти в начало документа",
|
||||||
"DE.Controllers.Print.textMarginsLast": "Последние настраиваемые",
|
|
||||||
"DE.Controllers.Print.txtCustom": "Пользовательское",
|
|
||||||
"DE.Controllers.Print.txtPrintRangeInvalid": "Неправильный диапазон печати",
|
|
||||||
"DE.Controllers.Print.txtPrintRangeSingleRange": "Введите или один номер страницы, или один диапазон страниц (например, 5-12). Или вы можете выбрать печать в PDF.",
|
|
||||||
"DE.Controllers.Search.notcriticalErrorTitle": "Внимание",
|
"DE.Controllers.Search.notcriticalErrorTitle": "Внимание",
|
||||||
"DE.Controllers.Search.textNoTextFound": "Искомые данные не найдены. Пожалуйста, измените параметры поиска.",
|
"DE.Controllers.Search.textNoTextFound": "Искомые данные не найдены. Пожалуйста, измените параметры поиска.",
|
||||||
"DE.Controllers.Search.textReplaceSkipped": "Замена выполнена. Пропущено вхождений - {0}.",
|
"DE.Controllers.Search.textReplaceSkipped": "Замена выполнена. Пропущено вхождений - {0}.",
|
||||||
|
|
@ -1835,8 +1824,6 @@
|
||||||
"DE.Views.FileMenuPanels.Settings.txtNone": "Никакие",
|
"DE.Views.FileMenuPanels.Settings.txtNone": "Никакие",
|
||||||
"DE.Views.FileMenuPanels.Settings.txtProofing": "Правописание",
|
"DE.Views.FileMenuPanels.Settings.txtProofing": "Правописание",
|
||||||
"DE.Views.FileMenuPanels.Settings.txtPt": "Пункт",
|
"DE.Views.FileMenuPanels.Settings.txtPt": "Пункт",
|
||||||
"DE.Views.FileMenuPanels.Settings.txtQuickPrint": "Показывать кнопку Быстрая печать в шапке редактора",
|
|
||||||
"DE.Views.FileMenuPanels.Settings.txtQuickPrintTip": "Документ будет напечатан на последнем выбранном принтере или на принтере по умолчанию",
|
|
||||||
"DE.Views.FileMenuPanels.Settings.txtRunMacros": "Включить все",
|
"DE.Views.FileMenuPanels.Settings.txtRunMacros": "Включить все",
|
||||||
"DE.Views.FileMenuPanels.Settings.txtRunMacrosDesc": "Включить все макросы без уведомления",
|
"DE.Views.FileMenuPanels.Settings.txtRunMacrosDesc": "Включить все макросы без уведомления",
|
||||||
"DE.Views.FileMenuPanels.Settings.txtShowTrackChanges": "Показывать изменения при рецензировании",
|
"DE.Views.FileMenuPanels.Settings.txtShowTrackChanges": "Показывать изменения при рецензировании",
|
||||||
|
|
@ -2086,7 +2073,6 @@
|
||||||
"DE.Views.LeftMenu.tipComments": "Комментарии",
|
"DE.Views.LeftMenu.tipComments": "Комментарии",
|
||||||
"DE.Views.LeftMenu.tipNavigation": "Навигация",
|
"DE.Views.LeftMenu.tipNavigation": "Навигация",
|
||||||
"DE.Views.LeftMenu.tipOutline": "Заголовки",
|
"DE.Views.LeftMenu.tipOutline": "Заголовки",
|
||||||
"DE.Views.LeftMenu.tipPageThumbnails": "Эскизы страниц",
|
|
||||||
"DE.Views.LeftMenu.tipPlugins": "Плагины",
|
"DE.Views.LeftMenu.tipPlugins": "Плагины",
|
||||||
"DE.Views.LeftMenu.tipSearch": "Поиск",
|
"DE.Views.LeftMenu.tipSearch": "Поиск",
|
||||||
"DE.Views.LeftMenu.tipSupport": "Обратная связь и поддержка",
|
"DE.Views.LeftMenu.tipSupport": "Обратная связь и поддержка",
|
||||||
|
|
@ -2394,33 +2380,6 @@
|
||||||
"DE.Views.ParagraphSettingsAdvanced.tipTop": "Задать только верхнюю границу",
|
"DE.Views.ParagraphSettingsAdvanced.tipTop": "Задать только верхнюю границу",
|
||||||
"DE.Views.ParagraphSettingsAdvanced.txtAutoText": "Авто",
|
"DE.Views.ParagraphSettingsAdvanced.txtAutoText": "Авто",
|
||||||
"DE.Views.ParagraphSettingsAdvanced.txtNoBorders": "Без границ",
|
"DE.Views.ParagraphSettingsAdvanced.txtNoBorders": "Без границ",
|
||||||
"DE.Views.PrintWithPreview.textMarginsLast": "Последние настраиваемые",
|
|
||||||
"DE.Views.PrintWithPreview.textMarginsModerate": "Средние",
|
|
||||||
"DE.Views.PrintWithPreview.textMarginsNarrow": "Узкие",
|
|
||||||
"DE.Views.PrintWithPreview.textMarginsNormal": "Обычные",
|
|
||||||
"DE.Views.PrintWithPreview.textMarginsUsNormal": "Обычные (американский стандарт)",
|
|
||||||
"DE.Views.PrintWithPreview.textMarginsWide": "Широкие",
|
|
||||||
"DE.Views.PrintWithPreview.txtAllPages": "Все страницы",
|
|
||||||
"DE.Views.PrintWithPreview.txtBottom": "Нижнее",
|
|
||||||
"DE.Views.PrintWithPreview.txtCurrentPage": "Текущая страница",
|
|
||||||
"DE.Views.PrintWithPreview.txtCustom": "Пользовательское",
|
|
||||||
"DE.Views.PrintWithPreview.txtCustomPages": "Настраиваемая печать",
|
|
||||||
"DE.Views.PrintWithPreview.txtLandscape": "Альбомная",
|
|
||||||
"DE.Views.PrintWithPreview.txtLeft": "Левое",
|
|
||||||
"DE.Views.PrintWithPreview.txtMargins": "Поля",
|
|
||||||
"DE.Views.PrintWithPreview.txtOf": "из {0}",
|
|
||||||
"DE.Views.PrintWithPreview.txtPage": "Страница",
|
|
||||||
"DE.Views.PrintWithPreview.txtPageNumInvalid": "Неправильный номер страницы",
|
|
||||||
"DE.Views.PrintWithPreview.txtPageOrientation": "Ориентация страницы",
|
|
||||||
"DE.Views.PrintWithPreview.txtPages": "Страницы",
|
|
||||||
"DE.Views.PrintWithPreview.txtPageSize": "Размер страницы",
|
|
||||||
"DE.Views.PrintWithPreview.txtPortrait": "Книжная",
|
|
||||||
"DE.Views.PrintWithPreview.txtPrint": "Печать",
|
|
||||||
"DE.Views.PrintWithPreview.txtPrintPdf": "Печать в PDF",
|
|
||||||
"DE.Views.PrintWithPreview.txtPrintRange": "Диапазон печати",
|
|
||||||
"DE.Views.PrintWithPreview.txtRight": "Правое",
|
|
||||||
"DE.Views.PrintWithPreview.txtSelection": "Выделенный фрагмент",
|
|
||||||
"DE.Views.PrintWithPreview.txtTop": "Верхнее",
|
|
||||||
"DE.Views.RightMenu.txtChartSettings": "Параметры диаграммы",
|
"DE.Views.RightMenu.txtChartSettings": "Параметры диаграммы",
|
||||||
"DE.Views.RightMenu.txtFormSettings": "Параметры формы",
|
"DE.Views.RightMenu.txtFormSettings": "Параметры формы",
|
||||||
"DE.Views.RightMenu.txtHeaderFooterSettings": "Параметры верхнего и нижнего колонтитулов",
|
"DE.Views.RightMenu.txtHeaderFooterSettings": "Параметры верхнего и нижнего колонтитулов",
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ const EditorUIController = () => {
|
||||||
};
|
};
|
||||||
|
|
||||||
EditorUIController.isSupportEditFeature = () => {
|
EditorUIController.isSupportEditFeature = () => {
|
||||||
return true
|
return false
|
||||||
};
|
};
|
||||||
|
|
||||||
EditorUIController.getToolbarOptions = () => {
|
EditorUIController.getToolbarOptions = () => {
|
||||||
|
|
|
||||||
|
|
@ -1166,8 +1166,6 @@ 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 && !Common.Utils.isMac && this.appOptions.isDesktopApp &&
|
|
||||||
!(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);
|
||||||
this.appOptions.forcesave = this.appOptions.canForcesave;
|
this.appOptions.forcesave = this.appOptions.canForcesave;
|
||||||
|
|
@ -1928,7 +1926,7 @@ define([
|
||||||
Common.Utils.InternalSettings.set("pe-settings-unit", value);
|
Common.Utils.InternalSettings.set("pe-settings-unit", value);
|
||||||
this.api.asc_SetDocumentUnits((value==Common.Utils.Metric.c_MetricUnits.inch) ? Asc.c_oAscDocumentUnits.Inch : ((value==Common.Utils.Metric.c_MetricUnits.pt) ? Asc.c_oAscDocumentUnits.Point : Asc.c_oAscDocumentUnits.Millimeter));
|
this.api.asc_SetDocumentUnits((value==Common.Utils.Metric.c_MetricUnits.inch) ? Asc.c_oAscDocumentUnits.Inch : ((value==Common.Utils.Metric.c_MetricUnits.pt) ? Asc.c_oAscDocumentUnits.Point : Asc.c_oAscDocumentUnits.Millimeter));
|
||||||
this.getApplication().getController('RightMenu').updateMetricUnit();
|
this.getApplication().getController('RightMenu').updateMetricUnit();
|
||||||
this.appOptions.canPreviewPrint && this.getApplication().getController('Print').getView('PrintWithPreview').updateMetricUnit();
|
this.getApplication().getController('Print').getView('PrintWithPreview').updateMetricUnit();
|
||||||
},
|
},
|
||||||
|
|
||||||
updateThemeColors: function() {
|
updateThemeColors: function() {
|
||||||
|
|
@ -2215,39 +2213,6 @@ define([
|
||||||
if (url) this.iframePrint.src = url;
|
if (url) this.iframePrint.src = url;
|
||||||
},
|
},
|
||||||
|
|
||||||
onPrintQuick: function() {
|
|
||||||
if (!this.appOptions.canQuickPrint) return;
|
|
||||||
|
|
||||||
var value = Common.localStorage.getBool("pe-hide-quick-print-warning"),
|
|
||||||
me = this,
|
|
||||||
handler = function () {
|
|
||||||
var printopt = new Asc.asc_CAdjustPrint();
|
|
||||||
printopt.asc_setNativeOptions({quickPrint: true});
|
|
||||||
var opts = new Asc.asc_CDownloadOptions();
|
|
||||||
opts.asc_setAdvancedOptions(printopt);
|
|
||||||
me.api.asc_Print(opts);
|
|
||||||
Common.component.Analytics.trackEvent('Print');
|
|
||||||
};
|
|
||||||
|
|
||||||
if (value) {
|
|
||||||
handler.call(this);
|
|
||||||
} else {
|
|
||||||
Common.UI.warning({
|
|
||||||
msg: this.textTryQuickPrint,
|
|
||||||
buttons: ['yes', 'no'],
|
|
||||||
primary: 'yes',
|
|
||||||
dontshow: true,
|
|
||||||
maxwidth: 500,
|
|
||||||
callback: function(btn, dontshow){
|
|
||||||
dontshow && Common.localStorage.setBool("pe-hide-quick-print-warning", true);
|
|
||||||
if (btn === 'yes') {
|
|
||||||
setTimeout(handler, 1);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
onAdvancedOptions: function(type, advOptions) {
|
onAdvancedOptions: function(type, advOptions) {
|
||||||
if (this._state.openDlg) return;
|
if (this._state.openDlg) return;
|
||||||
|
|
||||||
|
|
@ -3039,8 +3004,7 @@ define([
|
||||||
textRememberMacros: 'Remember my choice for all macros',
|
textRememberMacros: 'Remember my choice for all macros',
|
||||||
confirmMaxChangesSize: 'The size of actions exceeds the limitation set for your server.<br>Press "Undo" to cancel your last action or press "Continue" to keep action locally (you need to download the file or copy its content to make sure nothing is lost).',
|
confirmMaxChangesSize: 'The size of actions exceeds the limitation set for your server.<br>Press "Undo" to cancel your last action or press "Continue" to keep action locally (you need to download the file or copy its content to make sure nothing is lost).',
|
||||||
textUndo: 'Undo',
|
textUndo: 'Undo',
|
||||||
textContinue: 'Continue',
|
textContinue: 'Continue'
|
||||||
textTryQuickPrint: 'You have selected Quick print: the entire document will be printed on the last selected or default printer.<br>Do you want to continue?'
|
|
||||||
}
|
}
|
||||||
})(), PE.Controllers.Main || {}))
|
})(), PE.Controllers.Main || {}))
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@ define([
|
||||||
this.adjPrintParams = new Asc.asc_CAdjustPrint();
|
this.adjPrintParams = new Asc.asc_CAdjustPrint();
|
||||||
|
|
||||||
this._state = {};
|
this._state = {};
|
||||||
this._paperSize = undefined;
|
|
||||||
this._navigationPreview = {
|
this._navigationPreview = {
|
||||||
pageCount: false,
|
pageCount: false,
|
||||||
currentPage: 0,
|
currentPage: 0,
|
||||||
|
|
@ -84,9 +84,6 @@ define([
|
||||||
if (!_.isEmpty(value) && /[0-9,\-]/.test(value)) {
|
if (!_.isEmpty(value) && /[0-9,\-]/.test(value)) {
|
||||||
var res = [],
|
var res = [],
|
||||||
arr = value.split(',');
|
arr = value.split(',');
|
||||||
if (me._isPrint && arr.length>1)
|
|
||||||
return me.txtPrintRangeSingleRange;
|
|
||||||
|
|
||||||
for (var i=0; i<arr.length; i++) {
|
for (var i=0; i<arr.length; i++) {
|
||||||
var item = arr[i];
|
var item = arr[i];
|
||||||
if (!item) // empty
|
if (!item) // empty
|
||||||
|
|
@ -118,12 +115,10 @@ define([
|
||||||
|
|
||||||
return me.txtPrintRangeInvalid;
|
return me.txtPrintRangeInvalid;
|
||||||
};
|
};
|
||||||
this.printSettings.cmbPaperSize.on('selected', _.bind(this.onPaperSizeSelect, this));
|
|
||||||
this._paperSize = this.printSettings.cmbPaperSize.getSelectedRecord().size;
|
|
||||||
|
|
||||||
Common.NotificationCenter.on('window:resize', _.bind(function () {
|
Common.NotificationCenter.on('window:resize', _.bind(function () {
|
||||||
if (this._isPreviewVisible) {
|
if (this._isPreviewVisible) {
|
||||||
this.api.asc_drawPrintPreview(this._navigationPreview.currentPreviewPage, this._paperSize);
|
this.api.asc_drawPrintPreview(this._navigationPreview.currentPreviewPage);
|
||||||
}
|
}
|
||||||
}, this));
|
}, this));
|
||||||
|
|
||||||
|
|
@ -167,7 +162,7 @@ define([
|
||||||
if (this._navigationPreview.currentPreviewPage > count - 1)
|
if (this._navigationPreview.currentPreviewPage > count - 1)
|
||||||
this._navigationPreview.currentPreviewPage = Math.max(0, count - 1);
|
this._navigationPreview.currentPreviewPage = Math.max(0, count - 1);
|
||||||
if (this.printSettings.isVisible()) {
|
if (this.printSettings.isVisible()) {
|
||||||
this.api.asc_drawPrintPreview(this._navigationPreview.currentPreviewPage, this._paperSize);
|
this.api.asc_drawPrintPreview(this._navigationPreview.currentPreviewPage);
|
||||||
this.updateNavigationButtons(this._navigationPreview.currentPreviewPage, count);
|
this.updateNavigationButtons(this._navigationPreview.currentPreviewPage, count);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -176,7 +171,7 @@ define([
|
||||||
onCurrentPage: function(number) {
|
onCurrentPage: function(number) {
|
||||||
this._navigationPreview.currentPreviewPage = number;
|
this._navigationPreview.currentPreviewPage = number;
|
||||||
if (this.printSettings.isVisible()) {
|
if (this.printSettings.isVisible()) {
|
||||||
this.api.asc_drawPrintPreview(this._navigationPreview.currentPreviewPage, this._paperSize);
|
this.api.asc_drawPrintPreview(this._navigationPreview.currentPreviewPage);
|
||||||
this.updateNavigationButtons(this._navigationPreview.currentPreviewPage, this._navigationPreview.pageCount);
|
this.updateNavigationButtons(this._navigationPreview.currentPreviewPage, this._navigationPreview.pageCount);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -193,7 +188,7 @@ define([
|
||||||
this.printSettings.$previewEmpty.toggleClass('hidden', !!this._navigationPreview.pageCount);
|
this.printSettings.$previewEmpty.toggleClass('hidden', !!this._navigationPreview.pageCount);
|
||||||
if (!!this._navigationPreview.pageCount) {
|
if (!!this._navigationPreview.pageCount) {
|
||||||
this._navigationPreview.currentPreviewPage = this._navigationPreview.currentPage = this.api.getCurrentPage();
|
this._navigationPreview.currentPreviewPage = this._navigationPreview.currentPage = this.api.getCurrentPage();
|
||||||
this.api.asc_drawPrintPreview(this._navigationPreview.currentPreviewPage, this._paperSize);
|
this.api.asc_drawPrintPreview(this._navigationPreview.currentPreviewPage);
|
||||||
this.updateNavigationButtons(this._navigationPreview.currentPreviewPage, this._navigationPreview.pageCount);
|
this.updateNavigationButtons(this._navigationPreview.currentPreviewPage, this._navigationPreview.pageCount);
|
||||||
this.SetDisabled();
|
this.SetDisabled();
|
||||||
}
|
}
|
||||||
|
|
@ -206,7 +201,7 @@ define([
|
||||||
|
|
||||||
onHidePrintMenu: function () {
|
onHidePrintMenu: function () {
|
||||||
if (this._isPreviewVisible) {
|
if (this._isPreviewVisible) {
|
||||||
this.api.asc_closePrintPreview && this.api.asc_closePrintPreview();
|
this.api.asc_closePrintPreview && this.api.asc_closePrintPreview(this._isPrint);
|
||||||
this._isPreviewVisible = false;
|
this._isPreviewVisible = false;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -288,7 +283,6 @@ define([
|
||||||
},
|
},
|
||||||
|
|
||||||
onBtnPrint: function(print) {
|
onBtnPrint: function(print) {
|
||||||
this._isPrint = print;
|
|
||||||
if (this.printSettings.cmbRange.getValue()===-1 && this.printSettings.inputPages.checkValidate() !== true) {
|
if (this.printSettings.cmbRange.getValue()===-1 && this.printSettings.inputPages.checkValidate() !== true) {
|
||||||
this.printSettings.inputPages.focus();
|
this.printSettings.inputPages.focus();
|
||||||
this.isInputFirstChange = true;
|
this.isInputFirstChange = true;
|
||||||
|
|
@ -300,17 +294,15 @@ define([
|
||||||
var rec = this.printSettings.cmbPaperSize.getSelectedRecord();
|
var rec = this.printSettings.cmbPaperSize.getSelectedRecord();
|
||||||
this.adjPrintParams.asc_setNativeOptions({
|
this.adjPrintParams.asc_setNativeOptions({
|
||||||
pages: this.printSettings.cmbRange.getValue()===-1 ? this.printSettings.inputPages.getValue() : this.printSettings.cmbRange.getValue(),
|
pages: this.printSettings.cmbRange.getValue()===-1 ? this.printSettings.inputPages.getValue() : this.printSettings.cmbRange.getValue(),
|
||||||
paperSize: {
|
paperSize: rec ? rec.size : null
|
||||||
w: rec ? rec.size[0] : undefined,
|
|
||||||
h: rec ? rec.size[1] : undefined,
|
|
||||||
preset: rec ? rec.caption : undefined
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
this._isPrint = print;
|
||||||
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);
|
||||||
this.api.asc_Print(opts);
|
this.api.asc_Print(opts);
|
||||||
|
this._isPrint = false;
|
||||||
} else {
|
} else {
|
||||||
var opts = new Asc.asc_CDownloadOptions(Asc.c_oAscFileType.PDF);
|
var opts = new Asc.asc_CDownloadOptions(Asc.c_oAscFileType.PDF);
|
||||||
opts.asc_setAdvancedOptions(this.adjPrintParams);
|
opts.asc_setAdvancedOptions(this.adjPrintParams);
|
||||||
|
|
@ -329,20 +321,12 @@ define([
|
||||||
this.printSettings.cmbRange.setValue(-1);
|
this.printSettings.cmbRange.setValue(-1);
|
||||||
},
|
},
|
||||||
|
|
||||||
onPaperSizeSelect: function(combo, record) {
|
|
||||||
if (record) {
|
|
||||||
this._paperSize = record.size;
|
|
||||||
this.api.asc_drawPrintPreview(this._navigationPreview.currentPreviewPage, this._paperSize);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
SetDisabled: function() {
|
SetDisabled: function() {
|
||||||
if (this.printSettings.isVisible()) {
|
if (this.printSettings.isVisible()) {
|
||||||
var disable = !this.mode.isEdit;
|
var disable = !this.mode.isEdit;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
txtPrintRangeInvalid: 'Invalid print range',
|
txtPrintRangeInvalid: 'Invalid print range'
|
||||||
txtPrintRangeSingleRange: 'Enter either a single slide number or a single slide range (for example, 5-12). Or you can Print to PDF.'
|
|
||||||
}, PE.Controllers.Print || {}));
|
}, PE.Controllers.Print || {}));
|
||||||
});
|
});
|
||||||
|
|
@ -146,10 +146,6 @@ define([
|
||||||
var _main = this.getApplication().getController('Main');
|
var _main = this.getApplication().getController('Main');
|
||||||
_main.onPrint();
|
_main.onPrint();
|
||||||
},
|
},
|
||||||
'print-quick': function (opts) {
|
|
||||||
var _main = this.getApplication().getController('Main');
|
|
||||||
_main.onPrintQuick();
|
|
||||||
},
|
|
||||||
'save': function (opts) {
|
'save': function (opts) {
|
||||||
this.api.asc_Save();
|
this.api.asc_Save();
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -72,8 +72,7 @@ define([
|
||||||
this.addListeners({
|
this.addListeners({
|
||||||
'FileMenu': {
|
'FileMenu': {
|
||||||
'menu:hide': me.onFileMenu.bind(me, 'hide'),
|
'menu:hide': me.onFileMenu.bind(me, 'hide'),
|
||||||
'menu:show': me.onFileMenu.bind(me, 'show'),
|
'menu:show': me.onFileMenu.bind(me, 'show')
|
||||||
'settings:apply': me.applySettings.bind(me)
|
|
||||||
},
|
},
|
||||||
'Toolbar': {
|
'Toolbar': {
|
||||||
'render:before' : function (toolbar) {
|
'render:before' : function (toolbar) {
|
||||||
|
|
@ -81,10 +80,6 @@ define([
|
||||||
toolbar.setExtra('right', me.header.getPanel('right', config));
|
toolbar.setExtra('right', me.header.getPanel('right', config));
|
||||||
if (!config.isEdit || config.customization && !!config.customization.compactHeader)
|
if (!config.isEdit || config.customization && !!config.customization.compactHeader)
|
||||||
toolbar.setExtra('left', me.header.getPanel('left', config));
|
toolbar.setExtra('left', me.header.getPanel('left', config));
|
||||||
var value = Common.localStorage.getBool("pe-settings-quick-print-button", true);
|
|
||||||
Common.Utils.InternalSettings.set("pe-settings-quick-print-button", value);
|
|
||||||
if (me.header && me.header.btnPrintQuick)
|
|
||||||
me.header.btnPrintQuick[value ? 'show' : 'hide']();
|
|
||||||
},
|
},
|
||||||
'view:compact' : function (toolbar, state) {
|
'view:compact' : function (toolbar, state) {
|
||||||
me.viewport.vlayout.getItem('toolbar').height = state ?
|
me.viewport.vlayout.getItem('toolbar').height = state ?
|
||||||
|
|
@ -107,8 +102,6 @@ define([
|
||||||
'print:disabled' : function (state) {
|
'print:disabled' : function (state) {
|
||||||
if ( me.header.btnPrint )
|
if ( me.header.btnPrint )
|
||||||
me.header.btnPrint.setDisabled(state);
|
me.header.btnPrint.setDisabled(state);
|
||||||
if ( me.header.btnPrintQuick )
|
|
||||||
me.header.btnPrintQuick.setDisabled(state);
|
|
||||||
},
|
},
|
||||||
'save:disabled' : function (state) {
|
'save:disabled' : function (state) {
|
||||||
if ( me.header.btnSave )
|
if ( me.header.btnSave )
|
||||||
|
|
@ -319,13 +312,6 @@ define([
|
||||||
me.header.lockHeaderBtns( 'users', _need_disable );
|
me.header.lockHeaderBtns( 'users', _need_disable );
|
||||||
},
|
},
|
||||||
|
|
||||||
applySettings: function () {
|
|
||||||
var value = Common.localStorage.getBool("pe-settings-quick-print-button", true);
|
|
||||||
Common.Utils.InternalSettings.set("pe-settings-quick-print-button", value);
|
|
||||||
if (this.header && this.header.btnPrintQuick)
|
|
||||||
this.header.btnPrintQuick[value ? 'show' : 'hide']();
|
|
||||||
},
|
|
||||||
|
|
||||||
onApiCoAuthoringDisconnect: function(enableDownload) {
|
onApiCoAuthoringDisconnect: function(enableDownload) {
|
||||||
if (this.header) {
|
if (this.header) {
|
||||||
if (this.header.btnDownload && !enableDownload)
|
if (this.header.btnDownload && !enableDownload)
|
||||||
|
|
@ -334,8 +320,6 @@ define([
|
||||||
this.header.btnPrint.hide();
|
this.header.btnPrint.hide();
|
||||||
if (this.header.btnEdit)
|
if (this.header.btnEdit)
|
||||||
this.header.btnEdit.hide();
|
this.header.btnEdit.hide();
|
||||||
if (this.header.btnPrintQuick && !enableDownload)
|
|
||||||
this.header.btnPrintQuick.hide();
|
|
||||||
this.header.lockHeaderBtns( 'rename-user', true);
|
this.header.lockHeaderBtns( 'rename-user', true);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -266,12 +266,7 @@ define([
|
||||||
'<tr>',
|
'<tr>',
|
||||||
'<td colspan="2"><div id="fms-chb-use-alt-key"></div></td>',
|
'<td colspan="2"><div id="fms-chb-use-alt-key"></div></td>',
|
||||||
'</tr>',
|
'</tr>',
|
||||||
'<tr class="quick-print">',
|
|
||||||
'<td colspan="2"><div style="display: flex;"><div id="fms-chb-quick-print"></div>',
|
|
||||||
'<span style ="display: flex; flex-direction: column;"><label><%= scope.txtQuickPrint %></label>',
|
|
||||||
'<label class="comment-text"><%= scope.txtQuickPrintTip %></label></span></div>',
|
|
||||||
'</td>',
|
|
||||||
'</tr>',
|
|
||||||
'<tr class="themes">',
|
'<tr class="themes">',
|
||||||
'<td><label><%= scope.strTheme %></label></td>',
|
'<td><label><%= scope.strTheme %></label></td>',
|
||||||
'<td><span id="fms-cmb-theme"></span></td>',
|
'<td><span id="fms-cmb-theme"></span></td>',
|
||||||
|
|
@ -540,17 +535,6 @@ define([
|
||||||
})).on('click', _.bind(me.applySettings, me));
|
})).on('click', _.bind(me.applySettings, me));
|
||||||
});
|
});
|
||||||
|
|
||||||
this.chQuickPrint = new Common.UI.CheckBox({
|
|
||||||
el: $markup.findById('#fms-chb-quick-print'),
|
|
||||||
labelText: '',
|
|
||||||
dataHint: '2',
|
|
||||||
dataHintDirection: 'left',
|
|
||||||
dataHintOffset: 'small'
|
|
||||||
});
|
|
||||||
this.chQuickPrint.$el.parent().on('click', function (){
|
|
||||||
me.chQuickPrint.setValue(!me.chQuickPrint.isChecked());
|
|
||||||
});
|
|
||||||
|
|
||||||
this.pnlSettings = $markup.find('.flex-settings').addBack().filter('.flex-settings');
|
this.pnlSettings = $markup.find('.flex-settings').addBack().filter('.flex-settings');
|
||||||
this.pnlApply = $markup.find('.fms-flex-apply').addBack().filter('.fms-flex-apply');
|
this.pnlApply = $markup.find('.fms-flex-apply').addBack().filter('.fms-flex-apply');
|
||||||
this.pnlTable = this.pnlSettings.find('table');
|
this.pnlTable = this.pnlSettings.find('table');
|
||||||
|
|
@ -612,7 +596,6 @@ define([
|
||||||
$('tr.live-viewer', this.el)[mode.canLiveView && !mode.isOffline && mode.canChangeCoAuthoring ? 'show' : 'hide']();
|
$('tr.live-viewer', this.el)[mode.canLiveView && !mode.isOffline && mode.canChangeCoAuthoring ? 'show' : 'hide']();
|
||||||
$('tr.macros', this.el)[(mode.customization && mode.customization.macros===false) ? 'hide' : 'show']();
|
$('tr.macros', this.el)[(mode.customization && mode.customization.macros===false) ? 'hide' : 'show']();
|
||||||
$('tr.spellcheck', this.el)[mode.isEdit && Common.UI.FeaturesManager.canChange('spellcheck') ? 'show' : 'hide']();
|
$('tr.spellcheck', this.el)[mode.isEdit && Common.UI.FeaturesManager.canChange('spellcheck') ? 'show' : 'hide']();
|
||||||
$('tr.quick-print', this.el)[mode.canQuickPrint ? 'show' : 'hide']();
|
|
||||||
|
|
||||||
if ( !Common.UI.Themes.available() ) {
|
if ( !Common.UI.Themes.available() ) {
|
||||||
$('tr.themes, tr.themes + tr.divider', this.el).hide();
|
$('tr.themes, tr.themes + tr.divider', this.el).hide();
|
||||||
|
|
@ -674,7 +657,6 @@ define([
|
||||||
this.lblMacrosDesc.text(item ? item.get('descValue') : this.txtWarnMacrosDesc);
|
this.lblMacrosDesc.text(item ? item.get('descValue') : this.txtWarnMacrosDesc);
|
||||||
|
|
||||||
this.chPaste.setValue(Common.Utils.InternalSettings.get("pe-settings-paste-button"));
|
this.chPaste.setValue(Common.Utils.InternalSettings.get("pe-settings-paste-button"));
|
||||||
this.chQuickPrint.setValue(Common.Utils.InternalSettings.get("pe-settings-quick-print-button"));
|
|
||||||
|
|
||||||
var data = [];
|
var data = [];
|
||||||
for (var t in Common.UI.Themes.map()) {
|
for (var t in Common.UI.Themes.map()) {
|
||||||
|
|
@ -720,7 +702,6 @@ define([
|
||||||
Common.Utils.InternalSettings.set("pe-macros-mode", this.cmbMacros.getValue());
|
Common.Utils.InternalSettings.set("pe-macros-mode", this.cmbMacros.getValue());
|
||||||
|
|
||||||
Common.localStorage.setItem("pe-settings-paste-button", this.chPaste.isChecked() ? 1 : 0);
|
Common.localStorage.setItem("pe-settings-paste-button", this.chPaste.isChecked() ? 1 : 0);
|
||||||
Common.localStorage.setBool("pe-settings-quick-print-button", this.chQuickPrint.isChecked());
|
|
||||||
|
|
||||||
Common.localStorage.save();
|
Common.localStorage.save();
|
||||||
|
|
||||||
|
|
@ -796,10 +777,7 @@ define([
|
||||||
txtStrictTip: 'Use the \'Save\' button to sync the changes you and others make',
|
txtStrictTip: 'Use the \'Save\' button to sync the changes you and others make',
|
||||||
strIgnoreWordsInUPPERCASE: 'Ignore words in UPPERCASE',
|
strIgnoreWordsInUPPERCASE: 'Ignore words in UPPERCASE',
|
||||||
strIgnoreWordsWithNumbers: 'Ignore words with numbers',
|
strIgnoreWordsWithNumbers: 'Ignore words with numbers',
|
||||||
strShowOthersChanges: 'Show changes from other users',
|
strShowOthersChanges: 'Show changes from other users'
|
||||||
txtQuickPrint: 'Show the Quick Print button in the editor header',
|
|
||||||
txtQuickPrintTip: 'The document will be printed on the last selected or default printer'
|
|
||||||
|
|
||||||
}, PE.Views.FileMenuPanels.Settings || {}));
|
}, PE.Views.FileMenuPanels.Settings || {}));
|
||||||
|
|
||||||
PE.Views.FileMenuPanels.RecentFiles = Common.UI.BaseView.extend({
|
PE.Views.FileMenuPanels.RecentFiles = Common.UI.BaseView.extend({
|
||||||
|
|
@ -2089,7 +2067,6 @@ define([
|
||||||
},
|
},
|
||||||
|
|
||||||
updateMetricUnit: function() {
|
updateMetricUnit: function() {
|
||||||
if (!this.cmbPaperSize) return;
|
|
||||||
var store = this.cmbPaperSize.store;
|
var store = this.cmbPaperSize.store;
|
||||||
for (var i=0; i<store.length; i++) {
|
for (var i=0; i<store.length; i++) {
|
||||||
var item = store.at(i),
|
var item = store.at(i),
|
||||||
|
|
|
||||||
|
|
@ -249,8 +249,6 @@
|
||||||
"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",
|
||||||
|
|
@ -414,8 +412,6 @@
|
||||||
"Common.Views.Header.tipViewUsers": "View users and manage document access rights",
|
"Common.Views.Header.tipViewUsers": "View users and manage document access rights",
|
||||||
"Common.Views.Header.txtAccessRights": "Change access rights",
|
"Common.Views.Header.txtAccessRights": "Change access rights",
|
||||||
"Common.Views.Header.txtRename": "Rename",
|
"Common.Views.Header.txtRename": "Rename",
|
||||||
"Common.Views.Header.tipPrintQuick": "Quick print",
|
|
||||||
"Common.Views.Header.textReadOnly": "Read only",
|
|
||||||
"Common.Views.History.textCloseHistory": "Close History",
|
"Common.Views.History.textCloseHistory": "Close History",
|
||||||
"Common.Views.History.textHide": "Collapse",
|
"Common.Views.History.textHide": "Collapse",
|
||||||
"Common.Views.History.textHideAll": "Hide detailed changes",
|
"Common.Views.History.textHideAll": "Hide detailed changes",
|
||||||
|
|
@ -1014,9 +1010,7 @@
|
||||||
"PE.Controllers.Main.confirmMaxChangesSize": "The size of actions exceeds the limitation set for your server.<br>Press \"Undo\" to cancel your last action or press \"Continue\" to keep action locally (you need to download the file or copy its content to make sure nothing is lost).",
|
"PE.Controllers.Main.confirmMaxChangesSize": "The size of actions exceeds the limitation set for your server.<br>Press \"Undo\" to cancel your last action or press \"Continue\" to keep action locally (you need to download the file or copy its content to make sure nothing is lost).",
|
||||||
"PE.Controllers.Main.textUndo": "Undo",
|
"PE.Controllers.Main.textUndo": "Undo",
|
||||||
"PE.Controllers.Main.textContinue": "Continue",
|
"PE.Controllers.Main.textContinue": "Continue",
|
||||||
"PE.Controllers.Main.textTryQuickPrint": "You have selected Quick print: the entire document will be printed on the last selected or default printer.<br>Do you want to continue?",
|
|
||||||
"PE.Controllers.Print.txtPrintRangeInvalid": "Invalid print range",
|
"PE.Controllers.Print.txtPrintRangeInvalid": "Invalid print range",
|
||||||
"PE.Controllers.Print.txtPrintRangeSingleRange": "Enter either a single slide number or a single slide range (for example, 5-12). Or you can Print to PDF.",
|
|
||||||
"PE.Controllers.Search.notcriticalErrorTitle": "Warning",
|
"PE.Controllers.Search.notcriticalErrorTitle": "Warning",
|
||||||
"PE.Controllers.Search.textNoTextFound": "The data you have been searching for could not be found. Please adjust your search options.",
|
"PE.Controllers.Search.textNoTextFound": "The data you have been searching for could not be found. Please adjust your search options.",
|
||||||
"PE.Controllers.Search.textReplaceSkipped": "The replacement has been made. {0} occurrences were skipped.",
|
"PE.Controllers.Search.textReplaceSkipped": "The replacement has been made. {0} occurrences were skipped.",
|
||||||
|
|
@ -1717,8 +1711,6 @@
|
||||||
"PE.Views.FileMenuPanels.Settings.txtWarnMacrosDesc": "Disable all macros with a notification",
|
"PE.Views.FileMenuPanels.Settings.txtWarnMacrosDesc": "Disable all macros with a notification",
|
||||||
"PE.Views.FileMenuPanels.Settings.txtWin": "as Windows",
|
"PE.Views.FileMenuPanels.Settings.txtWin": "as Windows",
|
||||||
"PE.Views.FileMenuPanels.Settings.txtWorkspace": "Workspace",
|
"PE.Views.FileMenuPanels.Settings.txtWorkspace": "Workspace",
|
||||||
"PE.Views.FileMenuPanels.Settings.txtQuickPrint": "Show the Quick Print button in the editor header",
|
|
||||||
"PE.Views.FileMenuPanels.Settings.txtQuickPrintTip": "The document will be printed on the last selected or default printer",
|
|
||||||
"PE.Views.HeaderFooterDialog.applyAllText": "Apply to all",
|
"PE.Views.HeaderFooterDialog.applyAllText": "Apply to all",
|
||||||
"PE.Views.HeaderFooterDialog.applyText": "Apply",
|
"PE.Views.HeaderFooterDialog.applyText": "Apply",
|
||||||
"PE.Views.HeaderFooterDialog.diffLanguage": "You can’t use a date format in a different language than the slide master.<br>To change the master, click 'Apply to all' instead of 'Apply'",
|
"PE.Views.HeaderFooterDialog.diffLanguage": "You can’t use a date format in a different language than the slide master.<br>To change the master, click 'Apply to all' instead of 'Apply'",
|
||||||
|
|
|
||||||
|
|
@ -249,8 +249,6 @@
|
||||||
"Common.define.effectData.textZigzag": "Зигзаг",
|
"Common.define.effectData.textZigzag": "Зигзаг",
|
||||||
"Common.define.effectData.textZoom": "Масштабирование",
|
"Common.define.effectData.textZoom": "Масштабирование",
|
||||||
"Common.Translation.textMoreButton": "Ещё",
|
"Common.Translation.textMoreButton": "Ещё",
|
||||||
"Common.Translation.tipFileLocked": "Документ заблокирован на редактирование. Вы можете внести изменения и сохранить его как локальную копию позже.",
|
|
||||||
"Common.Translation.tipFileReadOnly": "Файл доступен только для чтения. Чтобы сохранить изменения, сохраните файл с новым названием или в другом месте.",
|
|
||||||
"Common.Translation.warnFileLocked": "Файл редактируется в другом приложении. Вы можете продолжить редактирование и сохранить его как копию.",
|
"Common.Translation.warnFileLocked": "Файл редактируется в другом приложении. Вы можете продолжить редактирование и сохранить его как копию.",
|
||||||
"Common.Translation.warnFileLockedBtnEdit": "Создать копию",
|
"Common.Translation.warnFileLockedBtnEdit": "Создать копию",
|
||||||
"Common.Translation.warnFileLockedBtnView": "Открыть на просмотр",
|
"Common.Translation.warnFileLockedBtnView": "Открыть на просмотр",
|
||||||
|
|
@ -393,7 +391,6 @@
|
||||||
"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": "Изменен",
|
||||||
|
|
@ -405,7 +402,6 @@
|
||||||
"Common.Views.Header.tipDownload": "Скачать файл",
|
"Common.Views.Header.tipDownload": "Скачать файл",
|
||||||
"Common.Views.Header.tipGoEdit": "Редактировать текущий файл",
|
"Common.Views.Header.tipGoEdit": "Редактировать текущий файл",
|
||||||
"Common.Views.Header.tipPrint": "Напечатать файл",
|
"Common.Views.Header.tipPrint": "Напечатать файл",
|
||||||
"Common.Views.Header.tipPrintQuick": "Быстрая печать",
|
|
||||||
"Common.Views.Header.tipRedo": "Повторить",
|
"Common.Views.Header.tipRedo": "Повторить",
|
||||||
"Common.Views.Header.tipSave": "Сохранить",
|
"Common.Views.Header.tipSave": "Сохранить",
|
||||||
"Common.Views.Header.tipSearch": "Поиск",
|
"Common.Views.Header.tipSearch": "Поиск",
|
||||||
|
|
@ -717,7 +713,6 @@
|
||||||
"PE.Controllers.Main.textClose": "Закрыть",
|
"PE.Controllers.Main.textClose": "Закрыть",
|
||||||
"PE.Controllers.Main.textCloseTip": "Щелкните, чтобы закрыть эту подсказку",
|
"PE.Controllers.Main.textCloseTip": "Щелкните, чтобы закрыть эту подсказку",
|
||||||
"PE.Controllers.Main.textContactUs": "Связаться с отделом продаж",
|
"PE.Controllers.Main.textContactUs": "Связаться с отделом продаж",
|
||||||
"PE.Controllers.Main.textContinue": "Продолжить",
|
|
||||||
"PE.Controllers.Main.textConvertEquation": "Это уравнение создано в старой версии редактора уравнений, которая больше не поддерживается. Чтобы изменить это уравнение, его необходимо преобразовать в формат Office Math ML.<br>Преобразовать сейчас?",
|
"PE.Controllers.Main.textConvertEquation": "Это уравнение создано в старой версии редактора уравнений, которая больше не поддерживается. Чтобы изменить это уравнение, его необходимо преобразовать в формат Office Math ML.<br>Преобразовать сейчас?",
|
||||||
"PE.Controllers.Main.textCustomLoader": "Обратите внимание, что по условиям лицензии у вас нет прав изменять экран, отображаемый при загрузке.<br>Пожалуйста, обратитесь в наш отдел продаж, чтобы сделать запрос.",
|
"PE.Controllers.Main.textCustomLoader": "Обратите внимание, что по условиям лицензии у вас нет прав изменять экран, отображаемый при загрузке.<br>Пожалуйста, обратитесь в наш отдел продаж, чтобы сделать запрос.",
|
||||||
"PE.Controllers.Main.textDisconnect": "Соединение потеряно",
|
"PE.Controllers.Main.textDisconnect": "Соединение потеряно",
|
||||||
|
|
@ -736,10 +731,8 @@
|
||||||
"PE.Controllers.Main.textRequestMacros": "Макрос делает запрос на URL. Вы хотите разрешить запрос на %1?",
|
"PE.Controllers.Main.textRequestMacros": "Макрос делает запрос на URL. Вы хотите разрешить запрос на %1?",
|
||||||
"PE.Controllers.Main.textShape": "Фигура",
|
"PE.Controllers.Main.textShape": "Фигура",
|
||||||
"PE.Controllers.Main.textStrict": "Строгий режим",
|
"PE.Controllers.Main.textStrict": "Строгий режим",
|
||||||
"PE.Controllers.Main.textTryQuickPrint": "Вы выбрали быструю печать: весь документ будет напечатан на последнем выбранном принтере или на принтере по умолчанию.<br>Вы хотите продолжить?",
|
|
||||||
"PE.Controllers.Main.textTryUndoRedo": "Функции отмены и повтора действий отключены в Быстром режиме совместного редактирования.<br>Нажмите на кнопку 'Строгий режим' для переключения в Строгий режим совместного редактирования, чтобы редактировать файл без вмешательства других пользователей и отправлять изменения только после того, как вы их сохраните. Переключаться между режимами совместного редактирования можно с помощью Дополнительных параметров редактора.",
|
"PE.Controllers.Main.textTryUndoRedo": "Функции отмены и повтора действий отключены в Быстром режиме совместного редактирования.<br>Нажмите на кнопку 'Строгий режим' для переключения в Строгий режим совместного редактирования, чтобы редактировать файл без вмешательства других пользователей и отправлять изменения только после того, как вы их сохраните. Переключаться между режимами совместного редактирования можно с помощью Дополнительных параметров редактора.",
|
||||||
"PE.Controllers.Main.textTryUndoRedoWarn": "Функции отмены и повтора действий отключены в Быстром режиме совместного редактирования.",
|
"PE.Controllers.Main.textTryUndoRedoWarn": "Функции отмены и повтора действий отключены в Быстром режиме совместного редактирования.",
|
||||||
"PE.Controllers.Main.textUndo": "Отменить",
|
|
||||||
"PE.Controllers.Main.titleLicenseExp": "Истек срок действия лицензии",
|
"PE.Controllers.Main.titleLicenseExp": "Истек срок действия лицензии",
|
||||||
"PE.Controllers.Main.titleServerVersion": "Редактор обновлен",
|
"PE.Controllers.Main.titleServerVersion": "Редактор обновлен",
|
||||||
"PE.Controllers.Main.txtAddFirstSlide": "Нажмите, чтобы добавить первый слайд",
|
"PE.Controllers.Main.txtAddFirstSlide": "Нажмите, чтобы добавить первый слайд",
|
||||||
|
|
@ -1014,8 +1007,6 @@
|
||||||
"PE.Controllers.Main.warnNoLicense": "Вы достигли лимита на одновременные подключения к редакторам %1. Этот документ будет открыт на просмотр.<br>Напишите в отдел продаж %1, чтобы обсудить индивидуальные условия лицензирования.",
|
"PE.Controllers.Main.warnNoLicense": "Вы достигли лимита на одновременные подключения к редакторам %1. Этот документ будет открыт на просмотр.<br>Напишите в отдел продаж %1, чтобы обсудить индивидуальные условия лицензирования.",
|
||||||
"PE.Controllers.Main.warnNoLicenseUsers": "Вы достигли лимита на одновременные подключения к редакторам %1.<br>Напишите в отдел продаж %1, чтобы обсудить индивидуальные условия лицензирования.",
|
"PE.Controllers.Main.warnNoLicenseUsers": "Вы достигли лимита на одновременные подключения к редакторам %1.<br>Напишите в отдел продаж %1, чтобы обсудить индивидуальные условия лицензирования.",
|
||||||
"PE.Controllers.Main.warnProcessRightsChange": "Вам было отказано в праве на редактирование этого файла.",
|
"PE.Controllers.Main.warnProcessRightsChange": "Вам было отказано в праве на редактирование этого файла.",
|
||||||
"PE.Controllers.Print.txtPrintRangeInvalid": "Неправильный диапазон печати",
|
|
||||||
"PE.Controllers.Print.txtPrintRangeSingleRange": "Введите или один номер слайда, или один диапазон слайдов (например, 5-12). Или вы можете выбрать печать в PDF.",
|
|
||||||
"PE.Controllers.Search.notcriticalErrorTitle": "Внимание",
|
"PE.Controllers.Search.notcriticalErrorTitle": "Внимание",
|
||||||
"PE.Controllers.Search.textNoTextFound": "Искомые данные не найдены. Пожалуйста, измените параметры поиска.",
|
"PE.Controllers.Search.textNoTextFound": "Искомые данные не найдены. Пожалуйста, измените параметры поиска.",
|
||||||
"PE.Controllers.Search.textReplaceSkipped": "Замена выполнена. Пропущено вхождений - {0}.",
|
"PE.Controllers.Search.textReplaceSkipped": "Замена выполнена. Пропущено вхождений - {0}.",
|
||||||
|
|
@ -1704,8 +1695,6 @@
|
||||||
"PE.Views.FileMenuPanels.Settings.txtNative": "Собственный",
|
"PE.Views.FileMenuPanels.Settings.txtNative": "Собственный",
|
||||||
"PE.Views.FileMenuPanels.Settings.txtProofing": "Правописание",
|
"PE.Views.FileMenuPanels.Settings.txtProofing": "Правописание",
|
||||||
"PE.Views.FileMenuPanels.Settings.txtPt": "Пункт",
|
"PE.Views.FileMenuPanels.Settings.txtPt": "Пункт",
|
||||||
"PE.Views.FileMenuPanels.Settings.txtQuickPrint": "Показывать кнопку Быстрая печать в шапке редактора",
|
|
||||||
"PE.Views.FileMenuPanels.Settings.txtQuickPrintTip": "Документ будет напечатан на последнем выбранном принтере или на принтере по умолчанию",
|
|
||||||
"PE.Views.FileMenuPanels.Settings.txtRunMacros": "Включить все",
|
"PE.Views.FileMenuPanels.Settings.txtRunMacros": "Включить все",
|
||||||
"PE.Views.FileMenuPanels.Settings.txtRunMacrosDesc": "Включить все макросы без уведомления",
|
"PE.Views.FileMenuPanels.Settings.txtRunMacrosDesc": "Включить все макросы без уведомления",
|
||||||
"PE.Views.FileMenuPanels.Settings.txtSpellCheck": "Проверка орфографии",
|
"PE.Views.FileMenuPanels.Settings.txtSpellCheck": "Проверка орфографии",
|
||||||
|
|
@ -1857,18 +1846,6 @@
|
||||||
"PE.Views.ParagraphSettingsAdvanced.textTabRight": "По правому краю",
|
"PE.Views.ParagraphSettingsAdvanced.textTabRight": "По правому краю",
|
||||||
"PE.Views.ParagraphSettingsAdvanced.textTitle": "Абзац - дополнительные параметры",
|
"PE.Views.ParagraphSettingsAdvanced.textTitle": "Абзац - дополнительные параметры",
|
||||||
"PE.Views.ParagraphSettingsAdvanced.txtAutoText": "Авто",
|
"PE.Views.ParagraphSettingsAdvanced.txtAutoText": "Авто",
|
||||||
"PE.Views.PrintWithPreview.txtAllPages": "Все слайды",
|
|
||||||
"PE.Views.PrintWithPreview.txtCurrentPage": "Текущий слайд",
|
|
||||||
"PE.Views.PrintWithPreview.txtCustomPages": "Настраиваемая печать",
|
|
||||||
"PE.Views.PrintWithPreview.txtEmptyTable": "Нечего печатать, так как презентация пустая",
|
|
||||||
"PE.Views.PrintWithPreview.txtOf": "из {0}",
|
|
||||||
"PE.Views.PrintWithPreview.txtPage": "Слайд",
|
|
||||||
"PE.Views.PrintWithPreview.txtPageNumInvalid": "Неправильный номер слайда",
|
|
||||||
"PE.Views.PrintWithPreview.txtPages": "Слайды",
|
|
||||||
"PE.Views.PrintWithPreview.txtPaperSize": "Размер бумаги",
|
|
||||||
"PE.Views.PrintWithPreview.txtPrint": "Печать",
|
|
||||||
"PE.Views.PrintWithPreview.txtPrintPdf": "Печать в PDF",
|
|
||||||
"PE.Views.PrintWithPreview.txtPrintRange": "Диапазон печати",
|
|
||||||
"PE.Views.RightMenu.txtChartSettings": "Параметры диаграммы",
|
"PE.Views.RightMenu.txtChartSettings": "Параметры диаграммы",
|
||||||
"PE.Views.RightMenu.txtImageSettings": "Параметры изображения",
|
"PE.Views.RightMenu.txtImageSettings": "Параметры изображения",
|
||||||
"PE.Views.RightMenu.txtParagraphSettings": "Параметры абзаца",
|
"PE.Views.RightMenu.txtParagraphSettings": "Параметры абзаца",
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
const EditorUIController = () => null;
|
const EditorUIController = () => null;
|
||||||
|
|
||||||
EditorUIController.isSupportEditFeature = () => true;
|
EditorUIController.isSupportEditFeature = () => false;
|
||||||
|
|
||||||
export default EditorUIController;
|
export default EditorUIController;
|
||||||
|
|
|
||||||
|
|
@ -1290,9 +1290,7 @@ define([
|
||||||
(this.editorConfig.canRequestEditRights || this.editorConfig.mode !== 'view'); // if mode=="view" -> canRequestEditRights must be defined
|
(this.editorConfig.canRequestEditRights || this.editorConfig.mode !== 'view'); // if mode=="view" -> canRequestEditRights must be defined
|
||||||
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.canQuickPrint = this.appOptions.canPrint && !Common.Utils.isMac && this.appOptions.isDesktopApp &&
|
|
||||||
!(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);
|
||||||
this.appOptions.forcesave = this.appOptions.canForcesave;
|
this.appOptions.forcesave = this.appOptions.canForcesave;
|
||||||
|
|
@ -2875,39 +2873,6 @@ define([
|
||||||
if (url) this.iframePrint.src = url;
|
if (url) this.iframePrint.src = url;
|
||||||
},
|
},
|
||||||
|
|
||||||
onPrintQuick: function() {
|
|
||||||
if (!this.appOptions.canQuickPrint) return;
|
|
||||||
|
|
||||||
var value = Common.localStorage.getBool("sse-hide-quick-print-warning"),
|
|
||||||
me = this,
|
|
||||||
handler = function () {
|
|
||||||
var printopt = new Asc.asc_CAdjustPrint();
|
|
||||||
printopt.asc_setNativeOptions({quickPrint: true});
|
|
||||||
var opts = new Asc.asc_CDownloadOptions();
|
|
||||||
opts.asc_setAdvancedOptions(printopt);
|
|
||||||
me.api.asc_Print(opts);
|
|
||||||
Common.component.Analytics.trackEvent('Print');
|
|
||||||
};
|
|
||||||
|
|
||||||
if (value) {
|
|
||||||
handler.call(this);
|
|
||||||
} else {
|
|
||||||
Common.UI.warning({
|
|
||||||
msg: this.textTryQuickPrint,
|
|
||||||
buttons: ['yes', 'no'],
|
|
||||||
primary: 'yes',
|
|
||||||
dontshow: true,
|
|
||||||
maxwidth: 500,
|
|
||||||
callback: function(btn, dontshow){
|
|
||||||
dontshow && Common.localStorage.setBool("sse-hide-quick-print-warning", true);
|
|
||||||
if (btn === 'yes') {
|
|
||||||
setTimeout(handler, 1);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
warningDocumentIsLocked: function() {
|
warningDocumentIsLocked: function() {
|
||||||
var me = this;
|
var me = this;
|
||||||
Common.Utils.warningDocumentIsLocked({
|
Common.Utils.warningDocumentIsLocked({
|
||||||
|
|
@ -3688,8 +3653,7 @@ define([
|
||||||
textRememberMacros: 'Remember my choice for all macros',
|
textRememberMacros: 'Remember my choice for all macros',
|
||||||
confirmMaxChangesSize: 'The size of actions exceeds the limitation set for your server.<br>Press "Undo" to cancel your last action or press "Continue" to keep action locally (you need to download the file or copy its content to make sure nothing is lost).',
|
confirmMaxChangesSize: 'The size of actions exceeds the limitation set for your server.<br>Press "Undo" to cancel your last action or press "Continue" to keep action locally (you need to download the file or copy its content to make sure nothing is lost).',
|
||||||
textUndo: 'Undo',
|
textUndo: 'Undo',
|
||||||
textContinue: 'Continue',
|
textContinue: 'Continue'
|
||||||
textTryQuickPrint: 'You have selected Quick print: the entire document will be printed on the last selected or default printer.<br>Do you want to continue?'
|
|
||||||
}
|
}
|
||||||
})(), SSE.Controllers.Main || {}))
|
})(), SSE.Controllers.Main || {}))
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -99,10 +99,6 @@ define([
|
||||||
var _main = this.getApplication().getController('Main');
|
var _main = this.getApplication().getController('Main');
|
||||||
_main.onPrint();
|
_main.onPrint();
|
||||||
},
|
},
|
||||||
'print-quick': function (opts) {
|
|
||||||
var _main = this.getApplication().getController('Main');
|
|
||||||
_main.onPrintQuick();
|
|
||||||
},
|
|
||||||
'save': function (opts) {
|
'save': function (opts) {
|
||||||
this.api.asc_Save();
|
this.api.asc_Save();
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -70,8 +70,7 @@ define([
|
||||||
this.addListeners({
|
this.addListeners({
|
||||||
'FileMenu': {
|
'FileMenu': {
|
||||||
'menu:hide': me.onFileMenu.bind(me, 'hide'),
|
'menu:hide': me.onFileMenu.bind(me, 'hide'),
|
||||||
'menu:show': me.onFileMenu.bind(me, 'show'),
|
'menu:show': me.onFileMenu.bind(me, 'show')
|
||||||
'settings:apply': me.applySettings.bind(me)
|
|
||||||
},
|
},
|
||||||
'Statusbar': {
|
'Statusbar': {
|
||||||
'view:compact': function (statusbar, state) {
|
'view:compact': function (statusbar, state) {
|
||||||
|
|
@ -90,10 +89,6 @@ define([
|
||||||
if ( me.appConfig && me.appConfig.isEdit && !(config.customization && config.customization.compactHeader) && toolbar.btnCollabChanges )
|
if ( me.appConfig && me.appConfig.isEdit && !(config.customization && config.customization.compactHeader) && toolbar.btnCollabChanges )
|
||||||
toolbar.btnCollabChanges = me.header.btnSave;
|
toolbar.btnCollabChanges = me.header.btnSave;
|
||||||
|
|
||||||
var value = Common.localStorage.getBool("sse-settings-quick-print-button", true);
|
|
||||||
Common.Utils.InternalSettings.set("sse-settings-quick-print-button", value);
|
|
||||||
if (me.header && me.header.btnPrintQuick)
|
|
||||||
me.header.btnPrintQuick[value ? 'show' : 'hide']();
|
|
||||||
},
|
},
|
||||||
'view:compact' : function (toolbar, state) {
|
'view:compact' : function (toolbar, state) {
|
||||||
me.viewport.vlayout.getItem('toolbar').height = state ?
|
me.viewport.vlayout.getItem('toolbar').height = state ?
|
||||||
|
|
@ -116,8 +111,6 @@ define([
|
||||||
'print:disabled' : function (state) {
|
'print:disabled' : function (state) {
|
||||||
if ( me.header.btnPrint )
|
if ( me.header.btnPrint )
|
||||||
me.header.btnPrint.setDisabled(state);
|
me.header.btnPrint.setDisabled(state);
|
||||||
if ( me.header.btnPrintQuick )
|
|
||||||
me.header.btnPrintQuick.setDisabled(state);
|
|
||||||
},
|
},
|
||||||
'save:disabled' : function (state) {
|
'save:disabled' : function (state) {
|
||||||
if ( me.header.btnSave )
|
if ( me.header.btnSave )
|
||||||
|
|
@ -292,13 +285,6 @@ define([
|
||||||
me.header.lockHeaderBtns( 'users', _need_disable );
|
me.header.lockHeaderBtns( 'users', _need_disable );
|
||||||
},
|
},
|
||||||
|
|
||||||
applySettings: function () {
|
|
||||||
var value = Common.localStorage.getBool("sse-settings-quick-print-button", true);
|
|
||||||
Common.Utils.InternalSettings.set("sse-settings-quick-print-button", value);
|
|
||||||
if (this.header && this.header.btnPrintQuick)
|
|
||||||
this.header.btnPrintQuick[value ? 'show' : 'hide']();
|
|
||||||
},
|
|
||||||
|
|
||||||
onApiCoAuthoringDisconnect: function(enableDownload) {
|
onApiCoAuthoringDisconnect: function(enableDownload) {
|
||||||
if (this.header) {
|
if (this.header) {
|
||||||
if (this.header.btnDownload && !enableDownload)
|
if (this.header.btnDownload && !enableDownload)
|
||||||
|
|
@ -307,8 +293,6 @@ define([
|
||||||
this.header.btnPrint.hide();
|
this.header.btnPrint.hide();
|
||||||
if (this.header.btnEdit)
|
if (this.header.btnEdit)
|
||||||
this.header.btnEdit.hide();
|
this.header.btnEdit.hide();
|
||||||
if (this.header.btnPrintQuick && !enableDownload)
|
|
||||||
this.header.btnPrintQuick.hide();
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -244,12 +244,6 @@ define([
|
||||||
'<tr>',
|
'<tr>',
|
||||||
'<td colspan="2"><div id="fms-chb-use-alt-key"></div></td>',
|
'<td colspan="2"><div id="fms-chb-use-alt-key"></div></td>',
|
||||||
'</tr>',
|
'</tr>',
|
||||||
'<tr class="quick-print">',
|
|
||||||
'<td colspan="2"><div style="display: flex;"><div id="fms-chb-quick-print"></div>',
|
|
||||||
'<span style ="display: flex; flex-direction: column;"><label><%= scope.txtQuickPrint %></label>',
|
|
||||||
'<label class="comment-text"><%= scope.txtQuickPrintTip %></label></span></div>',
|
|
||||||
'</td>',
|
|
||||||
'</tr>',
|
|
||||||
'<tr class="themes">',
|
'<tr class="themes">',
|
||||||
'<td><label><%= scope.strTheme %></label></td>',
|
'<td><label><%= scope.strTheme %></label></td>',
|
||||||
'<td><span id="fms-cmb-theme"></span></td>',
|
'<td><span id="fms-cmb-theme"></span></td>',
|
||||||
|
|
@ -724,17 +718,6 @@ define([
|
||||||
})).on('click', _.bind(me.applySettings, me));
|
})).on('click', _.bind(me.applySettings, me));
|
||||||
});
|
});
|
||||||
|
|
||||||
this.chQuickPrint = new Common.UI.CheckBox({
|
|
||||||
el: $markup.findById('#fms-chb-quick-print'),
|
|
||||||
labelText: '',
|
|
||||||
dataHint: '2',
|
|
||||||
dataHintDirection: 'left',
|
|
||||||
dataHintOffset: 'small'
|
|
||||||
});
|
|
||||||
this.chQuickPrint.$el.parent().on('click', function (){
|
|
||||||
me.chQuickPrint.setValue(!me.chQuickPrint.isChecked());
|
|
||||||
});
|
|
||||||
|
|
||||||
this.pnlSettings = $markup.find('.flex-settings').addBack().filter('.flex-settings');
|
this.pnlSettings = $markup.find('.flex-settings').addBack().filter('.flex-settings');
|
||||||
this.pnlApply = $markup.find('.fms-flex-apply').addBack().filter('.fms-flex-apply');
|
this.pnlApply = $markup.find('.fms-flex-apply').addBack().filter('.fms-flex-apply');
|
||||||
this.pnlTable = this.pnlSettings.find('table');
|
this.pnlTable = this.pnlSettings.find('table');
|
||||||
|
|
@ -799,7 +782,6 @@ define([
|
||||||
$('tr.coauth.changes', this.el)[mode.isEdit && !mode.isOffline && mode.canCoAuthoring && mode.canChangeCoAuthoring ? 'show' : 'hide']();
|
$('tr.coauth.changes', this.el)[mode.isEdit && !mode.isOffline && mode.canCoAuthoring && mode.canChangeCoAuthoring ? 'show' : 'hide']();
|
||||||
$('tr.live-viewer', this.el)[mode.canLiveView && !mode.isOffline && mode.canChangeCoAuthoring ? 'show' : 'hide']();
|
$('tr.live-viewer', this.el)[mode.canLiveView && !mode.isOffline && mode.canChangeCoAuthoring ? 'show' : 'hide']();
|
||||||
$('tr.macros', this.el)[(mode.customization && mode.customization.macros===false) ? 'hide' : 'show']();
|
$('tr.macros', this.el)[(mode.customization && mode.customization.macros===false) ? 'hide' : 'show']();
|
||||||
$('tr.quick-print', this.el)[mode.canQuickPrint ? 'show' : 'hide']();
|
|
||||||
|
|
||||||
if ( !Common.UI.Themes.available() ) {
|
if ( !Common.UI.Themes.available() ) {
|
||||||
$('tr.themes, tr.themes + tr.divider', this.el).hide();
|
$('tr.themes, tr.themes + tr.divider', this.el).hide();
|
||||||
|
|
@ -895,7 +877,6 @@ define([
|
||||||
this.cmbMacros.setValue(item ? item.get('value') : 0);
|
this.cmbMacros.setValue(item ? item.get('value') : 0);
|
||||||
|
|
||||||
this.chPaste.setValue(Common.Utils.InternalSettings.get("sse-settings-paste-button"));
|
this.chPaste.setValue(Common.Utils.InternalSettings.get("sse-settings-paste-button"));
|
||||||
this.chQuickPrint.setValue(Common.Utils.InternalSettings.get("sse-settings-quick-print-button"));
|
|
||||||
|
|
||||||
var data = [];
|
var data = [];
|
||||||
for (var t in Common.UI.Themes.map()) {
|
for (var t in Common.UI.Themes.map()) {
|
||||||
|
|
@ -996,7 +977,6 @@ define([
|
||||||
Common.Utils.InternalSettings.set("sse-macros-mode", this.cmbMacros.getValue());
|
Common.Utils.InternalSettings.set("sse-macros-mode", this.cmbMacros.getValue());
|
||||||
|
|
||||||
Common.localStorage.setItem("sse-settings-paste-button", this.chPaste.isChecked() ? 1 : 0);
|
Common.localStorage.setItem("sse-settings-paste-button", this.chPaste.isChecked() ? 1 : 0);
|
||||||
Common.localStorage.setBool("sse-settings-quick-print-button", this.chQuickPrint.isChecked());
|
|
||||||
|
|
||||||
Common.localStorage.save();
|
Common.localStorage.save();
|
||||||
if (this.menu) {
|
if (this.menu) {
|
||||||
|
|
@ -1189,9 +1169,7 @@ define([
|
||||||
txtStrictTip: 'Use the \'Save\' button to sync the changes you and others make',
|
txtStrictTip: 'Use the \'Save\' button to sync the changes you and others make',
|
||||||
strShowOthersChanges: 'Show changes from other users',
|
strShowOthersChanges: 'Show changes from other users',
|
||||||
txtCalculating: 'Calculating',
|
txtCalculating: 'Calculating',
|
||||||
strDateFormat1904: 'Use 1904 date system',
|
strDateFormat1904: 'Use 1904 date system'
|
||||||
txtQuickPrint: 'Show the Quick Print button in the editor header',
|
|
||||||
txtQuickPrintTip: 'The document will be printed on the last selected or default printer'
|
|
||||||
|
|
||||||
}, SSE.Views.FileMenuPanels.MainSettingsGeneral || {}));
|
}, SSE.Views.FileMenuPanels.MainSettingsGeneral || {}));
|
||||||
|
|
||||||
|
|
@ -2736,8 +2714,7 @@ SSE.Views.FileMenuPanels.RecentFiles = Common.UI.BaseView.extend({
|
||||||
|
|
||||||
applySettings: function() {
|
applySettings: function() {
|
||||||
if (this.menu) {
|
if (this.menu) {
|
||||||
this.menu.hide();
|
this.menu.fireEvent('settings:apply', [this.menu]);
|
||||||
// this.menu.fireEvent('settings:apply', [this.menu]);
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -101,8 +101,6 @@
|
||||||
"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",
|
||||||
|
|
@ -255,8 +253,6 @@
|
||||||
"Common.Views.Header.tipViewUsers": "View users and manage document access rights",
|
"Common.Views.Header.tipViewUsers": "View users and manage document access rights",
|
||||||
"Common.Views.Header.txtAccessRights": "Change access rights",
|
"Common.Views.Header.txtAccessRights": "Change access rights",
|
||||||
"Common.Views.Header.txtRename": "Rename",
|
"Common.Views.Header.txtRename": "Rename",
|
||||||
"Common.Views.Header.tipPrintQuick": "Quick print",
|
|
||||||
"Common.Views.Header.textReadOnly": "Read only",
|
|
||||||
"Common.Views.History.textCloseHistory": "Close History",
|
"Common.Views.History.textCloseHistory": "Close History",
|
||||||
"Common.Views.History.textHide": "Collapse",
|
"Common.Views.History.textHide": "Collapse",
|
||||||
"Common.Views.History.textHideAll": "Hide detailed changes",
|
"Common.Views.History.textHideAll": "Hide detailed changes",
|
||||||
|
|
@ -1127,7 +1123,6 @@
|
||||||
"SSE.Controllers.Main.confirmMaxChangesSize": "The size of actions exceeds the limitation set for your server.<br>Press \"Undo\" to cancel your last action or press \"Continue\" to keep action locally (you need to download the file or copy its content to make sure nothing is lost).",
|
"SSE.Controllers.Main.confirmMaxChangesSize": "The size of actions exceeds the limitation set for your server.<br>Press \"Undo\" to cancel your last action or press \"Continue\" to keep action locally (you need to download the file or copy its content to make sure nothing is lost).",
|
||||||
"SSE.Controllers.Main.textUndo": "Undo",
|
"SSE.Controllers.Main.textUndo": "Undo",
|
||||||
"SSE.Controllers.Main.textContinue": "Continue",
|
"SSE.Controllers.Main.textContinue": "Continue",
|
||||||
"SSE.Controllers.Main.textTryQuickPrint": "You have selected Quick print: the entire document will be printed on the last selected or default printer.<br>Do you want to continue?",
|
|
||||||
"SSE.Controllers.Print.strAllSheets": "All Sheets",
|
"SSE.Controllers.Print.strAllSheets": "All Sheets",
|
||||||
"SSE.Controllers.Print.textFirstCol": "First column",
|
"SSE.Controllers.Print.textFirstCol": "First column",
|
||||||
"SSE.Controllers.Print.textFirstRow": "First row",
|
"SSE.Controllers.Print.textFirstRow": "First row",
|
||||||
|
|
@ -2234,8 +2229,6 @@
|
||||||
"SSE.Views.FileMenuPanels.MainSettingsGeneral.txtWin": "as Windows",
|
"SSE.Views.FileMenuPanels.MainSettingsGeneral.txtWin": "as Windows",
|
||||||
"SSE.Views.FileMenuPanels.MainSettingsGeneral.txtWorkspace": "Workspace",
|
"SSE.Views.FileMenuPanels.MainSettingsGeneral.txtWorkspace": "Workspace",
|
||||||
"SSE.Views.FileMenuPanels.MainSettingsGeneral.txtZh": "Chinese",
|
"SSE.Views.FileMenuPanels.MainSettingsGeneral.txtZh": "Chinese",
|
||||||
"SSE.Views.FileMenuPanels.MainSettingsGeneral.txtQuickPrint": "Show the Quick Print button in the editor header",
|
|
||||||
"SSE.Views.FileMenuPanels.MainSettingsGeneral.txtQuickPrintTip": "The document will be printed on the last selected or default printer",
|
|
||||||
"SSE.Views.FileMenuPanels.ProtectDoc.notcriticalErrorTitle": "Warning",
|
"SSE.Views.FileMenuPanels.ProtectDoc.notcriticalErrorTitle": "Warning",
|
||||||
"SSE.Views.FileMenuPanels.ProtectDoc.strEncrypt": "With password",
|
"SSE.Views.FileMenuPanels.ProtectDoc.strEncrypt": "With password",
|
||||||
"SSE.Views.FileMenuPanels.ProtectDoc.strProtect": "Protect Spreadsheet",
|
"SSE.Views.FileMenuPanels.ProtectDoc.strProtect": "Protect Spreadsheet",
|
||||||
|
|
|
||||||
|
|
@ -101,8 +101,6 @@
|
||||||
"Common.define.conditionalData.textValue": "Значение равно",
|
"Common.define.conditionalData.textValue": "Значение равно",
|
||||||
"Common.define.conditionalData.textYesterday": "Вчера",
|
"Common.define.conditionalData.textYesterday": "Вчера",
|
||||||
"Common.Translation.textMoreButton": "Ещё",
|
"Common.Translation.textMoreButton": "Ещё",
|
||||||
"Common.Translation.tipFileLocked": "Документ заблокирован на редактирование. Вы можете внести изменения и сохранить его как локальную копию позже.",
|
|
||||||
"Common.Translation.tipFileReadOnly": "Файл доступен только для чтения. Чтобы сохранить изменения, сохраните файл с новым названием или в другом месте.",
|
|
||||||
"Common.Translation.warnFileLocked": "Файл редактируется в другом приложении. Вы можете продолжить редактирование и сохранить его как копию.",
|
"Common.Translation.warnFileLocked": "Файл редактируется в другом приложении. Вы можете продолжить редактирование и сохранить его как копию.",
|
||||||
"Common.Translation.warnFileLockedBtnEdit": "Создать копию",
|
"Common.Translation.warnFileLockedBtnEdit": "Создать копию",
|
||||||
"Common.Translation.warnFileLockedBtnView": "Открыть на просмотр",
|
"Common.Translation.warnFileLockedBtnView": "Открыть на просмотр",
|
||||||
|
|
@ -234,7 +232,6 @@
|
||||||
"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": "Изменен",
|
||||||
|
|
@ -246,7 +243,6 @@
|
||||||
"Common.Views.Header.tipDownload": "Скачать файл",
|
"Common.Views.Header.tipDownload": "Скачать файл",
|
||||||
"Common.Views.Header.tipGoEdit": "Редактировать текущий файл",
|
"Common.Views.Header.tipGoEdit": "Редактировать текущий файл",
|
||||||
"Common.Views.Header.tipPrint": "Напечатать файл",
|
"Common.Views.Header.tipPrint": "Напечатать файл",
|
||||||
"Common.Views.Header.tipPrintQuick": "Быстрая печать",
|
|
||||||
"Common.Views.Header.tipRedo": "Повторить",
|
"Common.Views.Header.tipRedo": "Повторить",
|
||||||
"Common.Views.Header.tipSave": "Сохранить",
|
"Common.Views.Header.tipSave": "Сохранить",
|
||||||
"Common.Views.Header.tipSearch": "Поиск",
|
"Common.Views.Header.tipSearch": "Поиск",
|
||||||
|
|
@ -525,8 +521,8 @@
|
||||||
"SSE.Controllers.DocumentHolder.textChangeColumnWidth": "Ширина столбца {0} символов ({1} пикселей)",
|
"SSE.Controllers.DocumentHolder.textChangeColumnWidth": "Ширина столбца {0} символов ({1} пикселей)",
|
||||||
"SSE.Controllers.DocumentHolder.textChangeRowHeight": "Высота строки {0} пунктов ({1} пикселей)",
|
"SSE.Controllers.DocumentHolder.textChangeRowHeight": "Высота строки {0} пунктов ({1} пикселей)",
|
||||||
"SSE.Controllers.DocumentHolder.textCtrlClick": "Щелкните по ссылке, чтобы открыть ее, или щелкните и удерживайте кнопку мыши, чтобы выделить ячейку.",
|
"SSE.Controllers.DocumentHolder.textCtrlClick": "Щелкните по ссылке, чтобы открыть ее, или щелкните и удерживайте кнопку мыши, чтобы выделить ячейку.",
|
||||||
"SSE.Controllers.DocumentHolder.textInsertLeft": "Добавить столбец слева",
|
"SSE.Controllers.DocumentHolder.textInsertLeft": "Добавить слева",
|
||||||
"SSE.Controllers.DocumentHolder.textInsertTop": "Добавить строку сверху",
|
"SSE.Controllers.DocumentHolder.textInsertTop": "Добавить сверху",
|
||||||
"SSE.Controllers.DocumentHolder.textPasteSpecial": "Специальная вставка",
|
"SSE.Controllers.DocumentHolder.textPasteSpecial": "Специальная вставка",
|
||||||
"SSE.Controllers.DocumentHolder.textStopExpand": "Не развертывать таблицы автоматически",
|
"SSE.Controllers.DocumentHolder.textStopExpand": "Не развертывать таблицы автоматически",
|
||||||
"SSE.Controllers.DocumentHolder.textSym": "симв",
|
"SSE.Controllers.DocumentHolder.textSym": "симв",
|
||||||
|
|
@ -827,7 +823,6 @@
|
||||||
"SSE.Controllers.Main.textCloseTip": "Щелкните, чтобы закрыть эту подсказку",
|
"SSE.Controllers.Main.textCloseTip": "Щелкните, чтобы закрыть эту подсказку",
|
||||||
"SSE.Controllers.Main.textConfirm": "Подтверждение",
|
"SSE.Controllers.Main.textConfirm": "Подтверждение",
|
||||||
"SSE.Controllers.Main.textContactUs": "Связаться с отделом продаж",
|
"SSE.Controllers.Main.textContactUs": "Связаться с отделом продаж",
|
||||||
"SSE.Controllers.Main.textContinue": "Продолжить",
|
|
||||||
"SSE.Controllers.Main.textConvertEquation": "Это уравнение создано в старой версии редактора уравнений, которая больше не поддерживается. Чтобы изменить это уравнение, его необходимо преобразовать в формат Office Math ML.<br>Преобразовать сейчас?",
|
"SSE.Controllers.Main.textConvertEquation": "Это уравнение создано в старой версии редактора уравнений, которая больше не поддерживается. Чтобы изменить это уравнение, его необходимо преобразовать в формат Office Math ML.<br>Преобразовать сейчас?",
|
||||||
"SSE.Controllers.Main.textCustomLoader": "Обратите внимание, что по условиям лицензии у вас нет прав изменять экран, отображаемый при загрузке.<br>Пожалуйста, обратитесь в наш отдел продаж, чтобы сделать запрос.",
|
"SSE.Controllers.Main.textCustomLoader": "Обратите внимание, что по условиям лицензии у вас нет прав изменять экран, отображаемый при загрузке.<br>Пожалуйста, обратитесь в наш отдел продаж, чтобы сделать запрос.",
|
||||||
"SSE.Controllers.Main.textDisconnect": "Соединение потеряно",
|
"SSE.Controllers.Main.textDisconnect": "Соединение потеряно",
|
||||||
|
|
@ -854,10 +849,8 @@
|
||||||
"SSE.Controllers.Main.textRequestMacros": "Макрос делает запрос на URL. Вы хотите разрешить запрос на %1?",
|
"SSE.Controllers.Main.textRequestMacros": "Макрос делает запрос на URL. Вы хотите разрешить запрос на %1?",
|
||||||
"SSE.Controllers.Main.textShape": "Фигура",
|
"SSE.Controllers.Main.textShape": "Фигура",
|
||||||
"SSE.Controllers.Main.textStrict": "Строгий режим",
|
"SSE.Controllers.Main.textStrict": "Строгий режим",
|
||||||
"SSE.Controllers.Main.textTryQuickPrint": "Вы выбрали быструю печать: весь документ будет напечатан на последнем выбранном принтере или на принтере по умолчанию.<br>Вы хотите продолжить?",
|
|
||||||
"SSE.Controllers.Main.textTryUndoRedo": "Функции отмены и повтора действий отключены в Быстром режиме совместного редактирования.<br>Нажмите на кнопку 'Строгий режим' для переключения в Строгий режим совместного редактирования, чтобы редактировать файл без вмешательства других пользователей и отправлять изменения только после того, как вы их сохраните. Переключаться между режимами совместного редактирования можно с помощью Дополнительных параметров редактора.",
|
"SSE.Controllers.Main.textTryUndoRedo": "Функции отмены и повтора действий отключены в Быстром режиме совместного редактирования.<br>Нажмите на кнопку 'Строгий режим' для переключения в Строгий режим совместного редактирования, чтобы редактировать файл без вмешательства других пользователей и отправлять изменения только после того, как вы их сохраните. Переключаться между режимами совместного редактирования можно с помощью Дополнительных параметров редактора.",
|
||||||
"SSE.Controllers.Main.textTryUndoRedoWarn": "Функции отмены и повтора действий отключены в Быстром режиме совместного редактирования.",
|
"SSE.Controllers.Main.textTryUndoRedoWarn": "Функции отмены и повтора действий отключены в Быстром режиме совместного редактирования.",
|
||||||
"SSE.Controllers.Main.textUndo": "Отменить",
|
|
||||||
"SSE.Controllers.Main.textYes": "Да",
|
"SSE.Controllers.Main.textYes": "Да",
|
||||||
"SSE.Controllers.Main.titleLicenseExp": "Истек срок действия лицензии",
|
"SSE.Controllers.Main.titleLicenseExp": "Истек срок действия лицензии",
|
||||||
"SSE.Controllers.Main.titleServerVersion": "Редактор обновлен",
|
"SSE.Controllers.Main.titleServerVersion": "Редактор обновлен",
|
||||||
|
|
@ -2212,8 +2205,6 @@
|
||||||
"SSE.Views.FileMenuPanels.MainSettingsGeneral.txtPt": "Пункт",
|
"SSE.Views.FileMenuPanels.MainSettingsGeneral.txtPt": "Пункт",
|
||||||
"SSE.Views.FileMenuPanels.MainSettingsGeneral.txtPtbr": "Португальский (Бразилия)",
|
"SSE.Views.FileMenuPanels.MainSettingsGeneral.txtPtbr": "Португальский (Бразилия)",
|
||||||
"SSE.Views.FileMenuPanels.MainSettingsGeneral.txtPtlang": "Португальский (Португалия)",
|
"SSE.Views.FileMenuPanels.MainSettingsGeneral.txtPtlang": "Португальский (Португалия)",
|
||||||
"SSE.Views.FileMenuPanels.MainSettingsGeneral.txtQuickPrint": "Показывать кнопку Быстрая печать в шапке редактора",
|
|
||||||
"SSE.Views.FileMenuPanels.MainSettingsGeneral.txtQuickPrintTip": "Документ будет напечатан на последнем выбранном принтере или на принтере по умолчанию",
|
|
||||||
"SSE.Views.FileMenuPanels.MainSettingsGeneral.txtRegion": "Регион",
|
"SSE.Views.FileMenuPanels.MainSettingsGeneral.txtRegion": "Регион",
|
||||||
"SSE.Views.FileMenuPanels.MainSettingsGeneral.txtRo": "Румынский",
|
"SSE.Views.FileMenuPanels.MainSettingsGeneral.txtRo": "Румынский",
|
||||||
"SSE.Views.FileMenuPanels.MainSettingsGeneral.txtRu": "Русский",
|
"SSE.Views.FileMenuPanels.MainSettingsGeneral.txtRu": "Русский",
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
const EditorUIController = () => null;
|
const EditorUIController = () => null;
|
||||||
|
|
||||||
EditorUIController.isSupportEditFeature = () => true;
|
EditorUIController.isSupportEditFeature = () => false;
|
||||||
|
|
||||||
export default EditorUIController;
|
export default EditorUIController;
|
||||||
|
|
|
||||||