Merge branch 'develop' into feature/resize-toolbar

This commit is contained in:
Julia Radzhabova 2022-01-12 19:49:52 +03:00
commit 0f304cbd6e
47 changed files with 200 additions and 500 deletions

View file

@ -210,8 +210,10 @@ define([
templateBtnIcon + templateBtnIcon +
'</div>' + '</div>' +
'<div class="inner-box-caption">' + '<div class="inner-box-caption">' +
'<span class="caption"><%= caption %></span>' + '<span class="caption"><%= caption %>' +
'<i class="caret"></i>' + '<i class="caret"></i>' +
'</span>' +
'<i class="caret compact-caret"></i>' +
'</div>' + '</div>' +
'</button>' + '</button>' +
'</div>'; '</div>';
@ -225,12 +227,38 @@ define([
'</button>' + '</button>' +
'<button type="button" class="btn <%= cls %> inner-box-caption dropdown-toggle" data-toggle="dropdown" data-hint="<%= dataHint %>" data-hint-direction="<%= dataHintDirection %>" data-hint-offset="<%= dataHintOffset %>" <% if (dataHintTitle) { %> data-hint-title="<%= dataHintTitle %>" <% } %>>' + '<button type="button" class="btn <%= cls %> inner-box-caption dropdown-toggle" data-toggle="dropdown" data-hint="<%= dataHint %>" data-hint-direction="<%= dataHintDirection %>" data-hint-offset="<%= dataHintOffset %>" <% if (dataHintTitle) { %> data-hint-title="<%= dataHintTitle %>" <% } %>>' +
'<span class="btn-fixflex-vcenter">' + '<span class="btn-fixflex-vcenter">' +
'<span class="caption"><%= caption %></span>' + '<span class="caption"><%= caption %>' +
'<i class="caret"></i>' + '<i class="caret"></i>' +
'</span>' +
'<i class="caret compact-caret"></i>' +
'</span>' + '</span>' +
'</button>' + '</button>' +
'</div>'; '</div>';
var getWidthOfCaption = function (txt) {
var el = document.createElement('span');
el.style.fontSize = '11px';
el.style.fontFamily = 'Arial, Helvetica, "Helvetica Neue", sans-serif';
el.style.position = "absolute";
el.style.top = '-1000px';
el.style.left = '-1000px';
el.innerHTML = txt;
document.body.appendChild(el);
var result = el.offsetWidth;
document.body.removeChild(el);
return result;
};
var getShortText = function (txt, max) {
var lastIndex = txt.length - 1,
word = txt;
while (getWidthOfCaption(word) > max) {
word = txt.slice(0, lastIndex).trim() + '...';
lastIndex--;
}
return word;
};
Common.UI.Button = Common.UI.BaseView.extend({ Common.UI.Button = Common.UI.BaseView.extend({
options : { options : {
id : null, id : null,
@ -320,6 +348,37 @@ define([
me.render(me.options.parentEl); me.render(me.options.parentEl);
}, },
getCaptionWithBreaks: function (caption) {
var words = caption.split(' '),
newCaption = null,
maxWidth = 85 - 4;
if (words.length > 1) {
maxWidth = !!this.menu || this.split === true ? maxWidth - 10 : maxWidth;
if (words.length < 3) {
words[1] = getShortText(words[1], maxWidth);
newCaption = words[0] + '<br>' + words[1];
} else {
if (getWidthOfCaption(words[0] + ' ' + words[1]) < maxWidth) { // first and second words in first line
words[2] = getShortText(words[2], maxWidth);
newCaption = words[0] + ' ' + words[1] + '<br>' + words[2];
} else if (getWidthOfCaption(words[1] + ' ' + words[2]) < maxWidth) { // second and third words in second line
words[2] = getShortText(words[2], maxWidth);
newCaption = words[0] + '<br>' + words[1] + ' ' + words[2];
} else {
words[1] = getShortText(words[1] + ' ' + words[2], maxWidth);
newCaption = words[0] + '<br>' + words[1];
}
}
} else {
var width = getWidthOfCaption(caption);
newCaption = width < maxWidth ? caption : getShortText(caption, maxWidth);
if (!!this.menu || this.split === true) {
newCaption += '<br>';
}
}
return newCaption;
},
render: function(parentEl) { render: function(parentEl) {
var me = this; var me = this;
@ -341,6 +400,10 @@ define([
} else { } else {
this.template = _.template(templateHugeCaption); this.template = _.template(templateHugeCaption);
} }
var newCaption = this.getCaptionWithBreaks(this.caption);
if (newCaption) {
me.caption = newCaption;
}
} }
me.cmpEl = $(this.template({ me.cmpEl = $(this.template({
@ -748,15 +811,19 @@ define([
setCaption: function(caption) { setCaption: function(caption) {
if (this.caption != caption) { if (this.caption != caption) {
this.caption = caption; if ( /icon-top/.test(this.cls) && !!this.caption && /huge/.test(this.cls) ) {
var newCaption = this.getCaptionWithBreaks(caption);
this.caption = newCaption || caption;
} else
this.caption = caption;
if (this.rendered) { if (this.rendered) {
var captionNode = this.cmpEl.find('.caption'); var captionNode = this.cmpEl.find('.caption');
if (captionNode.length > 0) { if (captionNode.length > 0) {
captionNode.text(caption); captionNode.html(this.caption);
} else { } else {
this.cmpEl.find('button:first').addBack().filter('button').text(caption); this.cmpEl.find('button:first').addBack().filter('button').html(this.caption);
} }
} }
} }

View file

@ -1,4 +1,4 @@
@x-huge-btn-height: 46px; @x-huge-btn-height: 48px;
@x-huge-btn-icon-size: 28px; @x-huge-btn-icon-size: 28px;
.btn { .btn {
@ -70,6 +70,9 @@
transition: transform 0.2s ease; transition: transform 0.2s ease;
transform: rotate(-135deg) translate(1px,1px); transform: rotate(-135deg) translate(1px,1px);
&.compact-caret {
display: none;
}
} }
//&:active, //&:active,
@ -229,14 +232,23 @@
.inner-box-caption { .inner-box-caption {
line-height: 18px; line-height: 18px;
padding: 0 2px; padding: 0 3px;
display: flex; display: flex;
align-items: center; //align-items: center;
align-items: start;
.caption { .caption {
max-width: 107px; max-width: 85px;
max-height: 22px;
text-overflow: ellipsis; text-overflow: ellipsis;
overflow: hidden;
white-space: pre;
line-height: 10px;
padding: 0 2px;
.caret {
margin: 0 1px 0 4px;
}
} }
} }
@ -267,9 +279,10 @@
&.dropdown-toggle { &.dropdown-toggle {
.caption { .caption {
max-width: 100px; //max-width: 100px;
} }
} }
} }
.inner-box-icon { .inner-box-icon {
@ -295,7 +308,7 @@
.inner-box-caption { .inner-box-caption {
margin: 0; margin: 0;
height: 18px; height: 20px;
} }
div.inner-box-icon { div.inner-box-icon {

View file

@ -131,8 +131,7 @@
.x-huge.icon-top { .x-huge.icon-top {
.caption { .caption {
text-overflow: ellipsis; text-overflow: ellipsis;
max-width: 60px; max-width: 85px;
overflow: hidden;
} }
} }

View file

@ -162,7 +162,7 @@
.box-controls { .box-controls {
//height: @height-controls; // button has strange offset in IE when odd height //height: @height-controls; // button has strange offset in IE when odd height
padding: 10px 0; padding: 9px 0;
display: flex; display: flex;
//background-color: #F2CBBF; //background-color: #F2CBBF;
@ -184,7 +184,7 @@
} }
/* ##adopt-panel-width */ /* ##adopt-panel-width */
.panel:not(#plugns-panel) .compactwidth { .panel .compactwidth {
.btn-group, .btn-toolbar { .btn-group, .btn-toolbar {
&.x-huge { &.x-huge {
.caption { .caption {
@ -193,6 +193,11 @@
.inner-box-caption { .inner-box-caption {
justify-content: center; justify-content: center;
align-items: center;
}
.compact-caret {
display: block;
} }
} }
} }
@ -216,6 +221,10 @@
.inner-box-caption { .inner-box-caption {
justify-content: center; justify-content: center;
align-items: center;
}
.compact-caret {
display: block;
} }
} }
} }
@ -264,7 +273,7 @@
font-size: 0; font-size: 0;
&:not(:first-child) { &:not(:first-child) {
margin-top: 6px; margin-top: 8px;
} }
&.font-normal { &.font-normal {
@ -280,7 +289,7 @@
} }
&.long { &.long {
height: 46px; height: 48px;
} }
&.short { &.short {

View file

@ -787,7 +787,7 @@ define([
} }
} else { } else {
Common.Gateway.requestClose(); Common.Gateway.requestClose();
Common.Controllers.Desktop.requestClose(); DE.Controllers.Desktop.requestClose();
} }
me._openDlg = null; me._openDlg = null;
} }

View file

@ -53,7 +53,7 @@
{ "src": "UsageInstructions/CreateTableOfContents.htm", "name": "Create table of contents" }, { "src": "UsageInstructions/CreateTableOfContents.htm", "name": "Create table of contents" },
{"src": "UsageInstructions/AddTableofFigures.htm", "name": "Add and Format a Table of Figures" }, {"src": "UsageInstructions/AddTableofFigures.htm", "name": "Add and Format a Table of Figures" },
{ "src": "UsageInstructions/CreateFillableForms.htm", "name": "Create fillable forms", "headername": "Fillable forms" }, { "src": "UsageInstructions/CreateFillableForms.htm", "name": "Create fillable forms", "headername": "Fillable forms" },
{ "src": "UsageInstructions/FillingOutForm.htm", "headername": "Filling Out a Form" }, { "src": "UsageInstructions/FillingOutForm.htm", "name": "Filling Out a Form" },
{"src": "UsageInstructions/UseMailMerge.htm", "name": "Use mail merge", "headername": "Mail Merge"}, {"src": "UsageInstructions/UseMailMerge.htm", "name": "Use mail merge", "headername": "Mail Merge"},
{ "src": "UsageInstructions/InsertEquation.htm", "name": "Insert equations", "headername": "Math equations" }, { "src": "UsageInstructions/InsertEquation.htm", "name": "Insert equations", "headername": "Math equations" },
{"src": "HelpfulHints/CollaborativeEditing.htm", "name": "Collaborative document editing", "headername": "Document co-editing"}, {"src": "HelpfulHints/CollaborativeEditing.htm", "name": "Collaborative document editing", "headername": "Document co-editing"},

View file

@ -697,7 +697,7 @@ class MainController extends Component {
const { t } = this.props; const { t } = this.props;
if (found) { if (found) {
f7.dialog.alert(null, !(found - replaced > 0) ? Common.Utils.String.format(t('Main.textReplaceSuccess'), replaced) : Common.Utils.String.format(t('Main.textReplaceSkipped'), found - replaced)); f7.dialog.alert(null, !(found - replaced > 0) ? t('Main.textReplaceSuccess').replace(/\{0\}/, `${replaced}`) : t('Main.textReplaceSkipped').replace(/\{0\}/, `${found - replaced}`));
} else { } else {
f7.dialog.alert(null, t('Main.textNoTextFound')); f7.dialog.alert(null, t('Main.textNoTextFound'));
} }

View file

@ -516,15 +516,18 @@ const EditShape = props => {
|| shapeType=='curvedConnector3' || shapeType=='curvedConnector4' || shapeType=='curvedConnector5' || shapeType=='curvedConnector3' || shapeType=='curvedConnector4' || shapeType=='curvedConnector5'
|| shapeType=='straightConnector1'; || shapeType=='straightConnector1';
let controlProps = api && api.asc_IsContentControl() ? api.asc_GetContentControlProperties() : null, const inControl = api.asc_IsContentControl();
fixedSize = false; const controlProps = (api && inControl) ? api.asc_GetContentControlProperties() : null;
const lockType = controlProps ? controlProps.get_Lock() : Asc.c_oAscSdtLockType.Unlocked;
let fixedSize = false;
if (controlProps) { if (controlProps) {
let spectype = controlProps.get_SpecificType(); let spectype = controlProps.get_SpecificType();
fixedSize = (spectype == Asc.c_oAscContentControlSpecificType.CheckBox || spectype == Asc. c_oAscContentControlSpecificType.ComboBox || spectype == Asc.c_oAscContentControlSpecificType.DropDownList || spectype == Asc.c_oAscContentControlSpecificType.None || spectype == Asc.c_oAscContentControlSpecificType.Picture) && controlProps.get_FormPr() && controlProps.get_FormPr().get_Fixed(); fixedSize = (spectype == Asc.c_oAscContentControlSpecificType.CheckBox || spectype == Asc. c_oAscContentControlSpecificType.ComboBox || spectype == Asc.c_oAscContentControlSpecificType.DropDownList || spectype == Asc.c_oAscContentControlSpecificType.None || spectype == Asc.c_oAscContentControlSpecificType.Picture) && controlProps.get_FormPr() && controlProps.get_FormPr().get_Fixed();
} }
let disableRemove = !!props.storeFocusObjects.paragraphObject; let disableRemove = !!props.storeFocusObjects.paragraphObject || (lockType == Asc.c_oAscSdtLockType.SdtContentLocked || lockType == Asc.c_oAscSdtLockType.SdtLocked);
return ( return (
<Fragment> <Fragment>

View file

@ -83,7 +83,6 @@ define([
'tab:active': _.bind(this.onActiveTab, this) 'tab:active': _.bind(this.onActiveTab, this)
} }
}); });
this.EffectGroups = Common.define.effectData.getEffectGroupData();
}, },
onLaunch: function () { onLaunch: function () {
@ -92,6 +91,7 @@ define([
setConfig: function (config) { setConfig: function (config) {
this.appConfig = config.mode; this.appConfig = config.mode;
this.EffectGroups = Common.define.effectData.getEffectGroupData();
this.view = this.createView('PE.Views.Animation', { this.view = this.createView('PE.Views.Animation', {
toolbar : config.toolbar, toolbar : config.toolbar,
mode : config.mode mode : config.mode

View file

@ -427,7 +427,7 @@ class MainController extends Component {
const { t } = this.props; const { t } = this.props;
if (found) { if (found) {
f7.dialog.alert(null, !(found - replaced > 0) ? Common.Utils.String.format(t('Controller.Main.textReplaceSuccess'), replaced) : Common.Utils.String.format(t('Controller.Main.textReplaceSkipped'), found - replaced)); f7.dialog.alert(null, !(found - replaced > 0) ? t('Controller.Main.textReplaceSuccess').replace(/\{0\}/, `${replaced}`) : t('Controller.Main.textReplaceSkipped').replace(/\{0\}/, `${found - replaced}`));
} else { } else {
f7.dialog.alert(null, t('Controller.Main.textNoTextFound')); f7.dialog.alert(null, t('Controller.Main.textNoTextFound'));
} }

View file

@ -1894,6 +1894,10 @@ define([
config.maxwidth = 400; config.maxwidth = 400;
break; break;
case Asc.c_oAscError.ID.CannotUseCommandProtectedSheet:
config.msg = this.errorCannotUseCommandProtectedSheet;
break;
default: default:
config.msg = (typeof id == 'string') ? id : this.errorDefaultMessage.replace('%1', id); config.msg = (typeof id == 'string') ? id : this.errorDefaultMessage.replace('%1', id);
break; break;
@ -2552,7 +2556,6 @@ define([
this.getApplication().getController('RightMenu').updateMetricUnit(); this.getApplication().getController('RightMenu').updateMetricUnit();
this.getApplication().getController('Toolbar').getView('Toolbar').updateMetricUnit(); this.getApplication().getController('Toolbar').getView('Toolbar').updateMetricUnit();
} }
//this.getApplication().getController('Print').getView('MainSettingsPrint').updateMetricUnit();
this.getApplication().getController('Print').getView('PrintWithPreview').updateMetricUnit(); this.getApplication().getController('Print').getView('PrintWithPreview').updateMetricUnit();
}, },
@ -3448,7 +3451,8 @@ define([
textFormulaFilledAllRowsWithEmpty: 'Formula filled first {0} rows. Filling other empty rows may take a few minutes.', textFormulaFilledAllRowsWithEmpty: 'Formula filled first {0} rows. Filling other empty rows may take a few minutes.',
textFormulaFilledFirstRowsOtherIsEmpty: 'Formula filled only first {0} rows by memory save reason. Other rows in this sheet don\'t have data.', textFormulaFilledFirstRowsOtherIsEmpty: 'Formula filled only first {0} rows by memory save reason. Other rows in this sheet don\'t have data.',
textFormulaFilledFirstRowsOtherHaveData: 'Formula filled only first {0} rows have data by memory save reason. There are other {1} rows have data in this sheet. You can fill them manually.', textFormulaFilledFirstRowsOtherHaveData: 'Formula filled only first {0} rows have data by memory save reason. There are other {1} rows have data in this sheet. You can fill them manually.',
textReconnect: 'Connection is restored' textReconnect: 'Connection is restored',
errorCannotUseCommandProtectedSheet: 'You cannot use this command on a protected sheet. To use this command, unprotect the sheet.<br>You might be requested to enter a password.'
} }
})(), SSE.Controllers.Main || {})) })(), SSE.Controllers.Main || {}))
}); });

View file

@ -62,10 +62,6 @@ define([
this._isPreviewVisible = false; this._isPreviewVisible = false;
this.addListeners({ this.addListeners({
/*'MainSettingsPrint': {
'show': _.bind(this.onShowMainSettingsPrint, this),
'render:after': _.bind(this.onAfterRender, this)
},*/
'PrintWithPreview': { 'PrintWithPreview': {
'show': _.bind(this.onShowMainSettingsPrint, this), 'show': _.bind(this.onShowMainSettingsPrint, this),
'render:after': _.bind(this.onAfterRender, this), 'render:after': _.bind(this.onAfterRender, this),
@ -80,7 +76,6 @@ define([
}, },
onLaunch: function() { onLaunch: function() {
//this.printSettings = this.createView('MainSettingsPrint');
this.printSettings = this.createView('PrintWithPreview'); this.printSettings = this.createView('PrintWithPreview');
}, },

View file

@ -271,7 +271,6 @@ define([
}, },
onApiZoomChange: function(zf, type){ onApiZoomChange: function(zf, type){
console.log('zoom');
var value = Math.floor((zf + .005) * 100); var value = Math.floor((zf + .005) * 100);
this.view.cmbZoom.setValue(value, value + '%'); this.view.cmbZoom.setValue(value, value + '%');
this._state.zoomValue = value; this._state.zoomValue = value;

View file

@ -191,7 +191,6 @@ define([
'<div id="id-settings-menu" style="position: absolute; width:200px; top: 0; bottom: 0;" class="no-padding"></div>', '<div id="id-settings-menu" style="position: absolute; width:200px; top: 0; bottom: 0;" class="no-padding"></div>',
'<div id="id-settings-content" style="position: absolute; left: 200px; top: 0; right: 0; bottom: 0;" class="no-padding">', '<div id="id-settings-content" style="position: absolute; left: 200px; top: 0; right: 0; bottom: 0;" class="no-padding">',
'<div id="panel-settings-general" style="width:100%; height:100%;position:relative;" class="no-padding main-settings-panel active"></div>', '<div id="panel-settings-general" style="width:100%; height:100%;position:relative;" class="no-padding main-settings-panel active"></div>',
'<div id="panel-settings-print" style="width:100%; height:100%;position:relative;" class="no-padding main-settings-panel"></div>',
'<div id="panel-settings-spellcheck" style="width:100%; height:100%;position:relative;" class="no-padding main-settings-panel"></div>', '<div id="panel-settings-spellcheck" style="width:100%; height:100%;position:relative;" class="no-padding main-settings-panel"></div>',
'</div>', '</div>',
'</div>' '</div>'
@ -210,10 +209,6 @@ define([
this.generalSettings.options = {alias:'MainSettingsGeneral'}; this.generalSettings.options = {alias:'MainSettingsGeneral'};
this.generalSettings.render($markup.findById('#panel-settings-general')); this.generalSettings.render($markup.findById('#panel-settings-general'));
//this.printSettings = SSE.getController('Print').getView('MainSettingsPrint');
//this.printSettings.menu = this.menu;
//this.printSettings.render($markup.findById('#panel-settings-print'));
this.spellcheckSettings = new SSE.Views.FileMenuPanels.MainSpellCheckSettings({menu: this.menu}); this.spellcheckSettings = new SSE.Views.FileMenuPanels.MainSpellCheckSettings({menu: this.menu});
this.spellcheckSettings.render($markup.findById('#panel-settings-spellcheck')); this.spellcheckSettings.render($markup.findById('#panel-settings-spellcheck'));
@ -221,7 +216,6 @@ define([
el: $markup.findById('#id-settings-menu'), el: $markup.findById('#id-settings-menu'),
store: new Common.UI.DataViewStore([ store: new Common.UI.DataViewStore([
{name: this.txtGeneral, panel: this.generalSettings, iconCls:'toolbar__icon btn-settings', contentTarget: 'panel-settings-general', selected: true}, {name: this.txtGeneral, panel: this.generalSettings, iconCls:'toolbar__icon btn-settings', contentTarget: 'panel-settings-general', selected: true},
//{name: this.txtPageSettings, panel: this.printSettings, iconCls:'toolbar__icon btn-print', contentTarget: 'panel-settings-print'},
{name: this.txtSpellChecking, panel: this.spellcheckSettings, iconCls:'toolbar__icon btn-ic-docspell', contentTarget: 'panel-settings-spellcheck'} {name: this.txtSpellChecking, panel: this.spellcheckSettings, iconCls:'toolbar__icon btn-ic-docspell', contentTarget: 'panel-settings-spellcheck'}
]), ]),
itemTemplate: _.template([ itemTemplate: _.template([
@ -253,15 +247,10 @@ define([
setMode: function(mode) { setMode: function(mode) {
this.mode = mode; this.mode = mode;
if (!this.mode.canPrint) {
$(this.viewSettingsPicker.dataViewItems[1].el).hide();
if (this.printSettings && this.printSettings.$el && this.printSettings.$el.hasClass('active'))
this.viewSettingsPicker.selectByIndex(0);
}
this.generalSettings && this.generalSettings.setMode(this.mode); this.generalSettings && this.generalSettings.setMode(this.mode);
this.spellcheckSettings && this.spellcheckSettings.setMode(this.mode); this.spellcheckSettings && this.spellcheckSettings.setMode(this.mode);
if (!this.mode.isEdit) { if (!this.mode.isEdit) {
$(this.viewSettingsPicker.dataViewItems[2].el).hide(); $(this.viewSettingsPicker.dataViewItems[1].el).hide();
if (this.spellcheckSettings && this.spellcheckSettings.$el && this.spellcheckSettings.$el.hasClass('active')) if (this.spellcheckSettings && this.spellcheckSettings.$el && this.spellcheckSettings.$el.hasClass('active'))
this.viewSettingsPicker.selectByIndex(0); this.viewSettingsPicker.selectByIndex(0);
} }
@ -275,14 +264,10 @@ define([
SetDisabled: function(disabled) { SetDisabled: function(disabled) {
if ( disabled ) { if ( disabled ) {
$(this.viewSettingsPicker.dataViewItems[1].el).hide(); $(this.viewSettingsPicker.dataViewItems[1].el).hide();
$(this.viewSettingsPicker.dataViewItems[2].el).hide();
this.viewSettingsPicker.selectByIndex(0, true); this.viewSettingsPicker.selectByIndex(0, true);
} else { } else {
if ( this.mode.canPrint )
$(this.viewSettingsPicker.dataViewItems[1].el).show();
if ( this.mode.isEdit ) { if ( this.mode.isEdit ) {
$(this.viewSettingsPicker.dataViewItems[2].el).show(); $(this.viewSettingsPicker.dataViewItems[1].el).show();
} }
} }
}, },
@ -292,423 +277,6 @@ define([
txtSpellChecking: 'Spell checking' txtSpellChecking: 'Spell checking'
}, SSE.Views.FileMenuPanels.Settings || {})); }, SSE.Views.FileMenuPanels.Settings || {}));
SSE.Views.MainSettingsPrint = Common.UI.BaseView.extend(_.extend({
menu: undefined,
template: _.template([
'<div>',
'<div class="flex-settings">',
'<table class="main" style="margin: 30px 0 0;"><tbody>',
'<tr>',
'<td class="left"><label><%= scope.textSettings %></label></td>',
'<td class="right"><div id="advsettings-print-combo-sheets" class="input-group-nr"></div></td>',
'</tr>','<tr class="divider"></tr>','<tr class="divider"></tr>',
'<tr>',
'<td class="left"><label><%= scope.textPageSize %></label></td>',
'<td class="right"><div id="advsettings-print-combo-pages" class="input-group-nr"></div></td>',
'</tr>','<tr class="divider"></tr>',
'<tr>',
'<td class="left"><label><%= scope.textPageOrientation %></label></td>',
'<td class="right"><span id="advsettings-print-combo-orient"></span></td>',
'</tr>','<tr class="divider"></tr>',
'<tr>',
'<td class="left"><label><%= scope.textPageScaling %></label></td>',
'<td class="right"><span id="advsettings-print-combo-layout"></span></td>',
'</tr>','<tr class="divider"></tr>',
'<tr>',
'<td class="left" style="vertical-align: top;"><label><%= scope.strPrintTitles %></label></td>',
'<td class="right" style="vertical-align: top;"><div id="advsettings-print-titles">',
'<table cols="2" class="no-padding">',
'<tr>',
'<td colspan="2" ><label><%= scope.textRepeatTop %></label></td>',
'</tr>',
'<tr>',
'<td class="padding-small" style="padding-right: 10px;"><div id="advsettings-txt-top"></div></td>',
'<td class="padding-small"><div id="advsettings-presets-top"></div></td>',
'</tr>',
'<tr>',
'<td colspan="2" ><label><%= scope.textRepeatLeft %></label></td>',
'</tr>',
'<tr>',
'<td class="padding-small" style="padding-right: 10px;"><div id="advsettings-txt-left"></div></td>',
'<td class="padding-small"><div id="advsettings-presets-left"></div></td>',
'</tr>',
'</table>',
'</div></td>',
'</tr>',
'<tr>',
'<td class="left" style="vertical-align: top;"><label><%= scope.strMargins %></label></td>',
'<td class="right" style="vertical-align: top;"><div id="advsettings-margins">',
'<table cols="2" class="no-padding">',
'<tr>',
'<td><label><%= scope.strTop %></label></td>',
'<td><label><%= scope.strBottom %></label></td>',
'</tr>',
'<tr>',
'<td><div id="advsettings-spin-margin-top"></div></td>',
'<td><div id="advsettings-spin-margin-bottom"></div></td>',
'</tr>',
'<tr>',
'<td><label><%= scope.strLeft %></label></td>',
'<td><label><%= scope.strRight %></label></td>',
'</tr>',
'<tr>',
'<td><div id="advsettings-spin-margin-left"></div></td>',
'<td><div id="advsettings-spin-margin-right"></div></td>',
'</tr>',
'</table>',
'</div></td>',
'</tr>',
'<tr>',
'<td class="left" style="vertical-align: top;"><label><%= scope.strPrint %></label></td>',
'<td class="right" style="vertical-align: top;"><div id="advsettings-print">',
'<div id="advsettings-print-chb-grid" style="margin-bottom: 10px;"></div>',
'<div id="advsettings-print-chb-rows"></div>',
'</div></td>',
'</tr>','<tr class="divider"></tr>',
'</tbody></table>',
'</div>',
'<div>',
'<table class="main" style="margin: 10px 0;"><tbody>',
'<tr>',
'<td class="left"></td>',
'<td class="right"><button id="advsettings-print-button-save" class="btn normal dlg-btn primary" data-hint="3" data-hint-direction="bottom" data-hint-offset="big"><%= scope.okButtonText %></button></td>',
'</tr>',
'</tbody></table>',
'</div>',
'</div>'
].join('')),
initialize: function(options) {
Common.UI.BaseView.prototype.initialize.call(this,arguments);
this.menu = options.menu;
this.spinners = [];
this._initSettings = true;
},
render: function(parentEl) {
var $markup = $(this.template({scope: this}));
this.cmbSheet = new Common.UI.ComboBox({
el : $markup.findById('#advsettings-print-combo-sheets'),
style : 'width: 242px;',
menuStyle : 'min-width: 242px;max-height: 280px;',
editable : false,
cls : 'input-group-nr',
data : [],
dataHint : '3',
dataHintDirection: 'bottom',
dataHintOffset: 'big'
});
this.cmbPaperSize = new Common.UI.ComboBox({
el : $markup.findById('#advsettings-print-combo-pages'),
style : 'width: 242px;',
menuStyle : 'max-height: 280px; min-width: 242px;',
editable : false,
cls : 'input-group-nr',
data : [
{value:'215.9|279.4', displayValue:'US Letter (21,59cm x 27,94cm)', caption: 'US Letter'},
{value:'215.9|355.6', displayValue:'US Legal (21,59cm x 35,56cm)', caption: 'US Legal'},
{value:'210|297', displayValue:'A4 (21cm x 29,7cm)', caption: 'A4'},
{value:'148|210', displayValue:'A5 (14,8cm x 21cm)', caption: 'A5'},
{value:'176|250', displayValue:'B5 (17,6cm x 25cm)', caption: 'B5'},
{value:'104.8|241.3', displayValue:'Envelope #10 (10,48cm x 24,13cm)', caption: 'Envelope #10'},
{value:'110|220', displayValue:'Envelope DL (11cm x 22cm)', caption: 'Envelope DL'},
{value:'279.4|431.8', displayValue:'Tabloid (27,94cm x 43,178m)', caption: 'Tabloid'},
{value:'297|420', displayValue:'A3 (29,7cm x 42cm)', caption: 'A3'},
{value:'304.8|457.1', displayValue:'Tabloid Oversize (30,48cm x 45,71cm)', caption: 'Tabloid Oversize'},
{value:'196.8|273', displayValue:'ROC 16K (19,68cm x 27,3cm)', caption: 'ROC 16K'},
{value:'119.9|234.9', displayValue:'Envelope Choukei 3 (11,99cm x 23,49cm)', caption: 'Envelope Choukei 3'},
{value:'330.2|482.5', displayValue:'Super B/A3 (33,02cm x 48,25cm)', caption: 'Super B/A3'}
],
dataHint : '3',
dataHintDirection: 'bottom',
dataHintOffset: 'big'
});
this.cmbPaperOrientation = new Common.UI.ComboBox({
el : $markup.findById('#advsettings-print-combo-orient'),
style : 'width: 132px;',
menuStyle : 'min-width: 132px;',
editable : false,
cls : 'input-group-nr',
data : [
{ value: Asc.c_oAscPageOrientation.PagePortrait, displayValue: this.strPortrait },
{ value: Asc.c_oAscPageOrientation.PageLandscape, displayValue: this.strLandscape }
],
dataHint : '3',
dataHintDirection: 'bottom',
dataHintOffset: 'big'
});
var itemsTemplate =
_.template([
'<% _.each(items, function(item) { %>',
'<li id="<%= item.id %>" data-value="<%= item.value %>" <% if (item.value === "customoptions") { %> class="border-top" style="margin-top: 5px;padding-top: 5px;" <% } %> ><a tabindex="-1" type="menuitem">',
'<%= scope.getDisplayValue(item) %>',
'</a></li>',
'<% }); %>'
].join(''));
this.cmbLayout = new Common.UI.ComboBox({
el : $markup.findById('#advsettings-print-combo-layout'),
style : 'width: 242px;',
menuStyle : 'min-width: 242px;',
editable : false,
cls : 'input-group-nr',
data : [
{ value: 0, displayValue: this.textActualSize },
{ value: 1, displayValue: this.textFitPage },
{ value: 2, displayValue: this.textFitCols },
{ value: 3, displayValue: this.textFitRows },
{ value: 'customoptions', displayValue: this.textCustomOptions }
],
itemsTemplate: itemsTemplate,
dataHint : '3',
dataHintDirection: 'bottom',
dataHintOffset: 'big'
});
this.chPrintGrid = new Common.UI.CheckBox({
el: $markup.findById('#advsettings-print-chb-grid'),
labelText: this.textPrintGrid,
dataHint: '3',
dataHintDirection: 'left',
dataHintOffset: 'small'
});
this.chPrintRows = new Common.UI.CheckBox({
el: $markup.findById('#advsettings-print-chb-rows'),
labelText: this.textPrintHeadings,
dataHint: '3',
dataHintDirection: 'left',
dataHintOffset: 'small'
});
this.spnMarginTop = new Common.UI.MetricSpinner({
el: $markup.findById('#advsettings-spin-margin-top'),
step: .1,
width: 110,
defaultUnit : "cm",
value: '0 cm',
maxValue: 48.25,
minValue: 0,
dataHint: '3',
dataHintDirection: 'bottom',
dataHintOffset: 'big'
});
this.spinners.push(this.spnMarginTop);
this.spnMarginBottom = new Common.UI.MetricSpinner({
el: $markup.findById('#advsettings-spin-margin-bottom'),
step: .1,
width: 110,
defaultUnit : "cm",
value: '0 cm',
maxValue: 48.25,
minValue: 0,
dataHint: '3',
dataHintDirection: 'bottom',
dataHintOffset: 'big'
});
this.spinners.push(this.spnMarginBottom);
this.spnMarginLeft = new Common.UI.MetricSpinner({
el: $markup.findById('#advsettings-spin-margin-left'),
step: .1,
width: 110,
defaultUnit : "cm",
value: '0.19 cm',
maxValue: 48.25,
minValue: 0,
dataHint: '3',
dataHintDirection: 'bottom',
dataHintOffset: 'big'
});
this.spinners.push(this.spnMarginLeft);
this.spnMarginRight = new Common.UI.MetricSpinner({
el: $markup.findById('#advsettings-spin-margin-right'),
step: .1,
width: 110,
defaultUnit : "cm",
value: '0.19 cm',
maxValue: 48.25,
minValue: 0,
dataHint: '3',
dataHintDirection: 'bottom',
dataHintOffset: 'big'
});
this.spinners.push(this.spnMarginRight);
this.txtRangeTop = new Common.UI.InputField({
el : $markup.findById('#advsettings-txt-top'),
style : 'width: 147px',
allowBlank : true,
validateOnChange: true,
dataHint: '3',
dataHintDirection: 'left',
dataHintOffset: 'small'
});
this.btnPresetsTop = new Common.UI.Button({
parentEl: $markup.findById('#advsettings-presets-top'),
cls: 'btn-text-menu-default',
caption: this.textRepeat,
style: 'width: 85px;',
menu: true,
dataHint: '3',
dataHintDirection: 'bottom',
dataHintOffset: 'big'
});
this.txtRangeLeft = new Common.UI.InputField({
el : $markup.findById('#advsettings-txt-left'),
style : 'width: 147px',
allowBlank : true,
validateOnChange: true,
dataHint: '3',
dataHintDirection: 'left',
dataHintOffset: 'small'
});
this.btnPresetsLeft = new Common.UI.Button({
parentEl: $markup.findById('#advsettings-presets-left'),
cls: 'btn-text-menu-default',
caption: this.textRepeat,
style: 'width: 85px;',
menu: true,
dataHint: '3',
dataHintDirection: 'bottom',
dataHintOffset: 'big'
});
this.btnOk = new Common.UI.Button({
el: $markup.findById('#advsettings-print-button-save')
});
this.pnlSettings = $markup.find('.flex-settings').addBack().filter('.flex-settings');
// if (parentEl)
// this.setElement(parentEl, false);
this.$el = $(parentEl).html($markup);
if (_.isUndefined(this.scroller)) {
this.scroller = new Common.UI.Scroller({
el: this.pnlSettings,
suppressScrollX: true,
alwaysVisibleY: true
});
}
var me = this;
Common.NotificationCenter.on({
'window:resize': function() {
me.isVisible() && me.updateScroller();
}
});
this.fireEvent('render:after', this);
return this;
},
addCustomScale: function (add) {
if (add) {
this.cmbLayout.setData([
{ value: 0, displayValue: this.textActualSize },
{ value: 1, displayValue: this.textFitPage },
{ value: 2, displayValue: this.textFitCols },
{ value: 3, displayValue: this.textFitRows },
{ value: 4, displayValue: this.textCustom },
{ value: 'customoptions', displayValue: this.textCustomOptions }
]);
} else {
this.cmbLayout.setData([
{ value: 0, displayValue: this.textActualSize },
{ value: 1, displayValue: this.textFitPage },
{ value: 2, displayValue: this.textFitCols },
{ value: 3, displayValue: this.textFitRows },
{ value: 'customoptions', displayValue: this.textCustomOptions }
]);
}
},
updateMetricUnit: function() {
if (this.spinners) {
for (var i=0; i<this.spinners.length; i++) {
var spinner = this.spinners[i];
spinner.setDefaultUnit(Common.Utils.Metric.getCurrentMetricName());
spinner.setStep(Common.Utils.Metric.getCurrentMetric()==Common.Utils.Metric.c_MetricUnits.pt ? 1 : 0.1);
}
}
var store = this.cmbPaperSize.store;
for (var i=0; i<store.length; i++) {
var item = store.at(i),
value = item.get('value'),
pagewidth = /^\d{3}\.?\d*/.exec(value),
pageheight = /\d{3}\.?\d*$/.exec(value);
item.set('displayValue', item.get('caption') + ' (' + parseFloat(Common.Utils.Metric.fnRecalcFromMM(pagewidth).toFixed(2)) + Common.Utils.Metric.getCurrentMetricName() + ' x ' +
parseFloat(Common.Utils.Metric.fnRecalcFromMM(pageheight).toFixed(2)) + Common.Utils.Metric.getCurrentMetricName() + ')');
}
this.cmbPaperSize.onResetItems();
},
applySettings: function() {
if (this.menu) {
this.menu.fireEvent('settings:apply', [this.menu]);
}
},
show: function() {
Common.UI.BaseView.prototype.show.call(this,arguments);
if (this._initSettings) {
this.updateMetricUnit();
this._initSettings = false;
}
this.updateScroller();
this.fireEvent('show', this);
},
isVisible: function() {
return (this.$el || $(this.el)).is(":visible");
},
updateScroller: function() {
if (this.scroller) {
this.scroller.update();
this.pnlSettings.toggleClass('bordered', this.scroller.isVisible());
}
},
okButtonText: 'Save',
strPortrait: 'Portrait',
strLandscape: 'Landscape',
textPrintGrid: 'Print Gridlines',
textPrintHeadings: 'Print Rows and Columns Headings',
strLeft: 'Left',
strRight: 'Right',
strTop: 'Top',
strBottom: 'Bottom',
strMargins: 'Margins',
textPageSize: 'Page Size',
textPageOrientation: 'Page Orientation',
strPrint: 'Print',
textSettings: 'Settings for',
textPageScaling: 'Scaling',
textActualSize: 'Actual Size',
textFitPage: 'Fit Sheet on One Page',
textFitCols: 'Fit All Columns on One Page',
textFitRows: 'Fit All Rows on One Page',
textCustomOptions: 'Custom Options',
textCustom: 'Custom',
strPrintTitles: 'Print Titles',
textRepeatTop: 'Repeat rows at top',
textRepeatLeft: 'Repeat columns at left',
textRepeat: 'Repeat...'
}, SSE.Views.MainSettingsPrint || {}));
SSE.Views.FileMenuPanels.MainSettingsGeneral = Common.UI.BaseView.extend(_.extend({ SSE.Views.FileMenuPanels.MainSettingsGeneral = Common.UI.BaseView.extend(_.extend({
el: '#panel-settings-general', el: '#panel-settings-general',
menu: undefined, menu: undefined,

View file

@ -650,6 +650,7 @@
"SSE.Controllers.Main.errorAutoFilterHiddenRange": "The operation cannot be performed because the area contains filtered cells.<br>Please unhide the filtered elements and try again.", "SSE.Controllers.Main.errorAutoFilterHiddenRange": "The operation cannot be performed because the area contains filtered cells.<br>Please unhide the filtered elements and try again.",
"SSE.Controllers.Main.errorBadImageUrl": "Image URL is incorrect", "SSE.Controllers.Main.errorBadImageUrl": "Image URL is incorrect",
"SSE.Controllers.Main.errorCannotUngroup": "Cannot ungroup. To start an outline, select the detail rows or columns and group them.", "SSE.Controllers.Main.errorCannotUngroup": "Cannot ungroup. To start an outline, select the detail rows or columns and group them.",
"SSE.Controllers.Main.errorCannotUseCommandProtectedSheet": "You cannot use this command on a protected sheet. To use this command, unprotect the sheet.<br>You might be requested to enter a password.",
"SSE.Controllers.Main.errorChangeArray": "You cannot change part of an array.", "SSE.Controllers.Main.errorChangeArray": "You cannot change part of an array.",
"SSE.Controllers.Main.errorChangeFilteredRange": "This will change a filtered range on your worksheet.<br>To complete this task, please remove AutoFilters.", "SSE.Controllers.Main.errorChangeFilteredRange": "This will change a filtered range on your worksheet.<br>To complete this task, please remove AutoFilters.",
"SSE.Controllers.Main.errorChangeOnProtectedSheet": "The cell or chart you are trying to change is on a protected sheet.<br>To make a change, unprotect the sheet. You might be requested to enter a password.", "SSE.Controllers.Main.errorChangeOnProtectedSheet": "The cell or chart you are trying to change is on a protected sheet.<br>To make a change, unprotect the sheet. You might be requested to enter a password.",
@ -3156,6 +3157,7 @@
"SSE.Views.Statusbar.textNoColor": "No Color", "SSE.Views.Statusbar.textNoColor": "No Color",
"SSE.Views.Statusbar.textSum": "Sum", "SSE.Views.Statusbar.textSum": "Sum",
"SSE.Views.Statusbar.tipAddTab": "Add worksheet", "SSE.Views.Statusbar.tipAddTab": "Add worksheet",
"SSE.Views.Statusbar.tipListOfSheets": "List of Sheets",
"SSE.Views.Statusbar.tipFirst": "Scroll to first sheet", "SSE.Views.Statusbar.tipFirst": "Scroll to first sheet",
"SSE.Views.Statusbar.tipLast": "Scroll to last sheet", "SSE.Views.Statusbar.tipLast": "Scroll to last sheet",
"SSE.Views.Statusbar.tipNext": "Scroll sheet list right", "SSE.Views.Statusbar.tipNext": "Scroll sheet list right",

View file

@ -232,7 +232,8 @@
"unknownErrorText": "Naməlum xəta.", "unknownErrorText": "Naməlum xəta.",
"uploadImageExtMessage": "Naməlum təsvir formatı.", "uploadImageExtMessage": "Naməlum təsvir formatı.",
"uploadImageFileCountMessage": "Heç bir təsvir yüklənməyib.", "uploadImageFileCountMessage": "Heç bir təsvir yüklənməyib.",
"uploadImageSizeMessage": "Təsvir çox böyükdür. Maksimum ölçü 25 MB-dır." "uploadImageSizeMessage": "Təsvir çox böyükdür. Maksimum ölçü 25 MB-dır.",
"errorCannotUseCommandProtectedSheet": "You cannot use this command on a protected sheet. To use this command, unprotect the sheet.<br>You might be requested to enter a password."
}, },
"LongActions": { "LongActions": {
"advDRMPassword": "Parol", "advDRMPassword": "Parol",

View file

@ -232,7 +232,8 @@
"uploadImageSizeMessage": "The image is too big. The maximum size is 25 MB.", "uploadImageSizeMessage": "The image is too big. The maximum size is 25 MB.",
"errorLoadingFont": "Fonts are not loaded.<br>Please contact your Document Server administrator.", "errorLoadingFont": "Fonts are not loaded.<br>Please contact your Document Server administrator.",
"errorChangeOnProtectedSheet": "The cell or chart you are trying to change is on a protected sheet. To make a change, unprotect the sheet. You might be requested to enter a password.", "errorChangeOnProtectedSheet": "The cell or chart you are trying to change is on a protected sheet. To make a change, unprotect the sheet. You might be requested to enter a password.",
"textErrorPasswordIsNotCorrect": "The password you supplied is not correct.<br>Verify that the CAPS LOCK key is off and be sure to use the correct capitalization." "textErrorPasswordIsNotCorrect": "The password you supplied is not correct.<br>Verify that the CAPS LOCK key is off and be sure to use the correct capitalization.",
"errorCannotUseCommandProtectedSheet": "You cannot use this command on a protected sheet. To use this command, unprotect the sheet.<br>You might be requested to enter a password."
}, },
"LongActions": { "LongActions": {
"applyChangesTextText": "Loading data...", "applyChangesTextText": "Loading data...",

View file

@ -232,7 +232,8 @@
"uploadImageSizeMessage": "The image is too big. The maximum size is 25 MB.", "uploadImageSizeMessage": "The image is too big. The maximum size is 25 MB.",
"errorLoadingFont": "Fonts are not loaded.<br>Please contact your Document Server administrator.", "errorLoadingFont": "Fonts are not loaded.<br>Please contact your Document Server administrator.",
"errorChangeOnProtectedSheet": "The cell or chart you are trying to change is on a protected sheet. To make a change, unprotect the sheet. You might be requested to enter a password.", "errorChangeOnProtectedSheet": "The cell or chart you are trying to change is on a protected sheet. To make a change, unprotect the sheet. You might be requested to enter a password.",
"textErrorPasswordIsNotCorrect": "The password you supplied is not correct.<br>Verify that the CAPS LOCK key is off and be sure to use the correct capitalization." "textErrorPasswordIsNotCorrect": "The password you supplied is not correct.<br>Verify that the CAPS LOCK key is off and be sure to use the correct capitalization.",
"errorCannotUseCommandProtectedSheet": "You cannot use this command on a protected sheet. To use this command, unprotect the sheet.<br>You might be requested to enter a password."
}, },
"LongActions": { "LongActions": {
"applyChangesTextText": "Loading data...", "applyChangesTextText": "Loading data...",

View file

@ -232,7 +232,8 @@
"unknownErrorText": "Error desconegut.", "unknownErrorText": "Error desconegut.",
"uploadImageExtMessage": "Format d'imatge desconegut.", "uploadImageExtMessage": "Format d'imatge desconegut.",
"uploadImageFileCountMessage": "No s'ha carregat cap imatge.", "uploadImageFileCountMessage": "No s'ha carregat cap imatge.",
"uploadImageSizeMessage": "La imatge és massa gran. La mida màxima és de 25 MB." "uploadImageSizeMessage": "La imatge és massa gran. La mida màxima és de 25 MB.",
"errorCannotUseCommandProtectedSheet": "You cannot use this command on a protected sheet. To use this command, unprotect the sheet.<br>You might be requested to enter a password."
}, },
"LongActions": { "LongActions": {
"advDRMPassword": "Contrasenya", "advDRMPassword": "Contrasenya",

View file

@ -232,7 +232,8 @@
"unknownErrorText": "Neznámá chyba.", "unknownErrorText": "Neznámá chyba.",
"uploadImageExtMessage": "Neznámý formát obrázku.", "uploadImageExtMessage": "Neznámý formát obrázku.",
"uploadImageFileCountMessage": "Nenahrány žádné obrázky.", "uploadImageFileCountMessage": "Nenahrány žádné obrázky.",
"uploadImageSizeMessage": "Obrázek je příliš velký. Maximální velikost je 25 MB." "uploadImageSizeMessage": "Obrázek je příliš velký. Maximální velikost je 25 MB.",
"errorCannotUseCommandProtectedSheet": "You cannot use this command on a protected sheet. To use this command, unprotect the sheet.<br>You might be requested to enter a password."
}, },
"LongActions": { "LongActions": {
"advDRMPassword": "Heslo", "advDRMPassword": "Heslo",

View file

@ -232,7 +232,8 @@
"textErrorPasswordIsNotCorrect": "The password you supplied is not correct.<br>Verify that the CAPS LOCK key is off and be sure to use the correct capitalization.", "textErrorPasswordIsNotCorrect": "The password you supplied is not correct.<br>Verify that the CAPS LOCK key is off and be sure to use the correct capitalization.",
"unknownErrorText": "Unknown error.", "unknownErrorText": "Unknown error.",
"uploadImageExtMessage": "Unknown image format.", "uploadImageExtMessage": "Unknown image format.",
"uploadImageSizeMessage": "The image is too big. The maximum size is 25 MB." "uploadImageSizeMessage": "The image is too big. The maximum size is 25 MB.",
"errorCannotUseCommandProtectedSheet": "You cannot use this command on a protected sheet. To use this command, unprotect the sheet.<br>You might be requested to enter a password."
}, },
"LongActions": { "LongActions": {
"advDRMPassword": "Kodeord", "advDRMPassword": "Kodeord",

View file

@ -232,7 +232,8 @@
"unknownErrorText": "Unbekannter Fehler.", "unknownErrorText": "Unbekannter Fehler.",
"uploadImageExtMessage": "Unbekanntes Bildformat.", "uploadImageExtMessage": "Unbekanntes Bildformat.",
"uploadImageFileCountMessage": "Keine Bilder hochgeladen.", "uploadImageFileCountMessage": "Keine Bilder hochgeladen.",
"uploadImageSizeMessage": "Die maximal zulässige Bildgröße von 25 MB ist überschritten." "uploadImageSizeMessage": "Die maximal zulässige Bildgröße von 25 MB ist überschritten.",
"errorCannotUseCommandProtectedSheet": "You cannot use this command on a protected sheet. To use this command, unprotect the sheet.<br>You might be requested to enter a password."
}, },
"LongActions": { "LongActions": {
"advDRMPassword": "Passwort", "advDRMPassword": "Passwort",

View file

@ -232,7 +232,8 @@
"uploadImageSizeMessage": "The image is too big. The maximum size is 25 MB.", "uploadImageSizeMessage": "The image is too big. The maximum size is 25 MB.",
"errorLoadingFont": "Fonts are not loaded.<br>Please contact your Document Server administrator.", "errorLoadingFont": "Fonts are not loaded.<br>Please contact your Document Server administrator.",
"errorChangeOnProtectedSheet": "The cell or chart you are trying to change is on a protected sheet. To make a change, unprotect the sheet. You might be requested to enter a password.", "errorChangeOnProtectedSheet": "The cell or chart you are trying to change is on a protected sheet. To make a change, unprotect the sheet. You might be requested to enter a password.",
"textErrorPasswordIsNotCorrect": "The password you supplied is not correct.<br>Verify that the CAPS LOCK key is off and be sure to use the correct capitalization." "textErrorPasswordIsNotCorrect": "The password you supplied is not correct.<br>Verify that the CAPS LOCK key is off and be sure to use the correct capitalization.",
"errorCannotUseCommandProtectedSheet": "You cannot use this command on a protected sheet. To use this command, unprotect the sheet.<br>You might be requested to enter a password."
}, },
"LongActions": { "LongActions": {
"applyChangesTextText": "Loading data...", "applyChangesTextText": "Loading data...",

View file

@ -174,6 +174,7 @@
"errorAutoFilterDataRange": "The operation could not be done for the selected range of cells.<br>Select a uniform data range inside or outside the table and try again.", "errorAutoFilterDataRange": "The operation could not be done for the selected range of cells.<br>Select a uniform data range inside or outside the table and try again.",
"errorAutoFilterHiddenRange": "The operation cannot be performed because the area contains filtered cells.<br>Please, unhide the filtered elements and try again.", "errorAutoFilterHiddenRange": "The operation cannot be performed because the area contains filtered cells.<br>Please, unhide the filtered elements and try again.",
"errorBadImageUrl": "Image URL is incorrect", "errorBadImageUrl": "Image URL is incorrect",
"errorCannotUseCommandProtectedSheet": "You cannot use this command on a protected sheet. To use this command, unprotect the sheet.<br>You might be requested to enter a password.",
"errorChangeArray": "You cannot change part of an array.", "errorChangeArray": "You cannot change part of an array.",
"errorChangeOnProtectedSheet": "The cell or chart you are trying to change is on a protected sheet. To make a change, unprotect the sheet. You might be requested to enter a password.", "errorChangeOnProtectedSheet": "The cell or chart you are trying to change is on a protected sheet. To make a change, unprotect the sheet. You might be requested to enter a password.",
"errorConnectToServer": "Can't save this doc. Check your connection settings or contact your admin.<br>When you click the 'OK' button, you will be prompted to download the document.", "errorConnectToServer": "Can't save this doc. Check your connection settings or contact your admin.<br>When you click the 'OK' button, you will be prompted to download the document.",

View file

@ -232,7 +232,8 @@
"unknownErrorText": "Error desconocido.", "unknownErrorText": "Error desconocido.",
"uploadImageExtMessage": "Formato de imagen desconocido.", "uploadImageExtMessage": "Formato de imagen desconocido.",
"uploadImageFileCountMessage": "No hay imágenes subidas.", "uploadImageFileCountMessage": "No hay imágenes subidas.",
"uploadImageSizeMessage": "La imagen es demasiado grande. El tamaño máximo es de 25 MB." "uploadImageSizeMessage": "La imagen es demasiado grande. El tamaño máximo es de 25 MB.",
"errorCannotUseCommandProtectedSheet": "You cannot use this command on a protected sheet. To use this command, unprotect the sheet.<br>You might be requested to enter a password."
}, },
"LongActions": { "LongActions": {
"advDRMPassword": "Contraseña", "advDRMPassword": "Contraseña",

View file

@ -232,7 +232,8 @@
"unknownErrorText": "Erreur inconnue.", "unknownErrorText": "Erreur inconnue.",
"uploadImageExtMessage": "Format d'image inconnu.", "uploadImageExtMessage": "Format d'image inconnu.",
"uploadImageFileCountMessage": "Aucune image chargée.", "uploadImageFileCountMessage": "Aucune image chargée.",
"uploadImageSizeMessage": "L'image est trop grande. La taille limite est de 25 Mo." "uploadImageSizeMessage": "L'image est trop grande. La taille limite est de 25 Mo.",
"errorCannotUseCommandProtectedSheet": "You cannot use this command on a protected sheet. To use this command, unprotect the sheet.<br>You might be requested to enter a password."
}, },
"LongActions": { "LongActions": {
"advDRMPassword": "Mot de passe", "advDRMPassword": "Mot de passe",

View file

@ -232,7 +232,8 @@
"unknownErrorText": "Erro descoñecido.", "unknownErrorText": "Erro descoñecido.",
"uploadImageExtMessage": "Formato de imaxe descoñecido.", "uploadImageExtMessage": "Formato de imaxe descoñecido.",
"uploadImageFileCountMessage": "Non hai imaxes subidas.", "uploadImageFileCountMessage": "Non hai imaxes subidas.",
"uploadImageSizeMessage": "A imaxe é demasiado grande. O tamaño máximo é de 25 MB." "uploadImageSizeMessage": "A imaxe é demasiado grande. O tamaño máximo é de 25 MB.",
"errorCannotUseCommandProtectedSheet": "You cannot use this command on a protected sheet. To use this command, unprotect the sheet.<br>You might be requested to enter a password."
}, },
"LongActions": { "LongActions": {
"advDRMPassword": "Contrasinal", "advDRMPassword": "Contrasinal",

View file

@ -232,7 +232,8 @@
"uploadImageSizeMessage": "The image is too big. The maximum size is 25 MB.", "uploadImageSizeMessage": "The image is too big. The maximum size is 25 MB.",
"errorLoadingFont": "Fonts are not loaded.<br>Please contact your Document Server administrator.", "errorLoadingFont": "Fonts are not loaded.<br>Please contact your Document Server administrator.",
"errorChangeOnProtectedSheet": "The cell or chart you are trying to change is on a protected sheet. To make a change, unprotect the sheet. You might be requested to enter a password.", "errorChangeOnProtectedSheet": "The cell or chart you are trying to change is on a protected sheet. To make a change, unprotect the sheet. You might be requested to enter a password.",
"textErrorPasswordIsNotCorrect": "The password you supplied is not correct.<br>Verify that the CAPS LOCK key is off and be sure to use the correct capitalization." "textErrorPasswordIsNotCorrect": "The password you supplied is not correct.<br>Verify that the CAPS LOCK key is off and be sure to use the correct capitalization.",
"errorCannotUseCommandProtectedSheet": "You cannot use this command on a protected sheet. To use this command, unprotect the sheet.<br>You might be requested to enter a password."
}, },
"LongActions": { "LongActions": {
"applyChangesTextText": "Loading data...", "applyChangesTextText": "Loading data...",

View file

@ -232,7 +232,8 @@
"unknownErrorText": "Errore sconosciuto.", "unknownErrorText": "Errore sconosciuto.",
"uploadImageExtMessage": "Formato d'immagine sconosciuto.", "uploadImageExtMessage": "Formato d'immagine sconosciuto.",
"uploadImageFileCountMessage": "Nessuna immagine caricata.", "uploadImageFileCountMessage": "Nessuna immagine caricata.",
"uploadImageSizeMessage": "L'immagine è troppo grande. La dimensione massima è 25 MB." "uploadImageSizeMessage": "L'immagine è troppo grande. La dimensione massima è 25 MB.",
"errorCannotUseCommandProtectedSheet": "You cannot use this command on a protected sheet. To use this command, unprotect the sheet.<br>You might be requested to enter a password."
}, },
"LongActions": { "LongActions": {
"advDRMPassword": "Password", "advDRMPassword": "Password",

View file

@ -232,7 +232,8 @@
"unknownErrorText": "不明なエラー", "unknownErrorText": "不明なエラー",
"uploadImageExtMessage": "不明なイメージ形式", "uploadImageExtMessage": "不明なイメージ形式",
"uploadImageFileCountMessage": "アップロードしたイメージがない", "uploadImageFileCountMessage": "アップロードしたイメージがない",
"uploadImageSizeMessage": "イメージのサイズの上限が超えさせました。サイズの上限がMB。" "uploadImageSizeMessage": "イメージのサイズの上限が超えさせました。サイズの上限がMB。",
"errorCannotUseCommandProtectedSheet": "You cannot use this command on a protected sheet. To use this command, unprotect the sheet.<br>You might be requested to enter a password."
}, },
"LongActions": { "LongActions": {
"advDRMPassword": "パスワード", "advDRMPassword": "パスワード",

View file

@ -232,7 +232,8 @@
"unknownErrorText": "알 수 없는 오류.", "unknownErrorText": "알 수 없는 오류.",
"uploadImageExtMessage": "알수 없는 이미지 형식입니다.", "uploadImageExtMessage": "알수 없는 이미지 형식입니다.",
"uploadImageFileCountMessage": "이미지가 업로드되지 않았습니다.", "uploadImageFileCountMessage": "이미지가 업로드되지 않았습니다.",
"uploadImageSizeMessage": "이미지 크기 제한을 초과했습니다." "uploadImageSizeMessage": "이미지 크기 제한을 초과했습니다.",
"errorCannotUseCommandProtectedSheet": "You cannot use this command on a protected sheet. To use this command, unprotect the sheet.<br>You might be requested to enter a password."
}, },
"LongActions": { "LongActions": {
"advDRMPassword": "암호", "advDRMPassword": "암호",

View file

@ -232,7 +232,8 @@
"uploadImageSizeMessage": "The image is too big. The maximum size is 25 MB.", "uploadImageSizeMessage": "The image is too big. The maximum size is 25 MB.",
"errorLoadingFont": "Fonts are not loaded.<br>Please contact your Document Server administrator.", "errorLoadingFont": "Fonts are not loaded.<br>Please contact your Document Server administrator.",
"errorChangeOnProtectedSheet": "The cell or chart you are trying to change is on a protected sheet. To make a change, unprotect the sheet. You might be requested to enter a password.", "errorChangeOnProtectedSheet": "The cell or chart you are trying to change is on a protected sheet. To make a change, unprotect the sheet. You might be requested to enter a password.",
"textErrorPasswordIsNotCorrect": "The password you supplied is not correct.<br>Verify that the CAPS LOCK key is off and be sure to use the correct capitalization." "textErrorPasswordIsNotCorrect": "The password you supplied is not correct.<br>Verify that the CAPS LOCK key is off and be sure to use the correct capitalization.",
"errorCannotUseCommandProtectedSheet": "You cannot use this command on a protected sheet. To use this command, unprotect the sheet.<br>You might be requested to enter a password."
}, },
"LongActions": { "LongActions": {
"applyChangesTextText": "Loading data...", "applyChangesTextText": "Loading data...",

View file

@ -232,7 +232,8 @@
"uploadImageSizeMessage": "The image is too big. The maximum size is 25 MB.", "uploadImageSizeMessage": "The image is too big. The maximum size is 25 MB.",
"errorLoadingFont": "Fonts are not loaded.<br>Please contact your Document Server administrator.", "errorLoadingFont": "Fonts are not loaded.<br>Please contact your Document Server administrator.",
"errorChangeOnProtectedSheet": "The cell or chart you are trying to change is on a protected sheet. To make a change, unprotect the sheet. You might be requested to enter a password.", "errorChangeOnProtectedSheet": "The cell or chart you are trying to change is on a protected sheet. To make a change, unprotect the sheet. You might be requested to enter a password.",
"textErrorPasswordIsNotCorrect": "The password you supplied is not correct.<br>Verify that the CAPS LOCK key is off and be sure to use the correct capitalization." "textErrorPasswordIsNotCorrect": "The password you supplied is not correct.<br>Verify that the CAPS LOCK key is off and be sure to use the correct capitalization.",
"errorCannotUseCommandProtectedSheet": "You cannot use this command on a protected sheet. To use this command, unprotect the sheet.<br>You might be requested to enter a password."
}, },
"LongActions": { "LongActions": {
"applyChangesTextText": "Loading data...", "applyChangesTextText": "Loading data...",

View file

@ -232,7 +232,8 @@
"uploadImageSizeMessage": "The image is too big. The maximum size is 25 MB.", "uploadImageSizeMessage": "The image is too big. The maximum size is 25 MB.",
"errorLoadingFont": "Fonts are not loaded.<br>Please contact your Document Server administrator.", "errorLoadingFont": "Fonts are not loaded.<br>Please contact your Document Server administrator.",
"errorChangeOnProtectedSheet": "The cell or chart you are trying to change is on a protected sheet. To make a change, unprotect the sheet. You might be requested to enter a password.", "errorChangeOnProtectedSheet": "The cell or chart you are trying to change is on a protected sheet. To make a change, unprotect the sheet. You might be requested to enter a password.",
"textErrorPasswordIsNotCorrect": "The password you supplied is not correct.<br>Verify that the CAPS LOCK key is off and be sure to use the correct capitalization." "textErrorPasswordIsNotCorrect": "The password you supplied is not correct.<br>Verify that the CAPS LOCK key is off and be sure to use the correct capitalization.",
"errorCannotUseCommandProtectedSheet": "You cannot use this command on a protected sheet. To use this command, unprotect the sheet.<br>You might be requested to enter a password."
}, },
"LongActions": { "LongActions": {
"applyChangesTextText": "Loading data...", "applyChangesTextText": "Loading data...",

View file

@ -232,7 +232,8 @@
"unknownErrorText": "Onbekende fout.", "unknownErrorText": "Onbekende fout.",
"uploadImageExtMessage": "Onbekende afbeeldingsindeling.", "uploadImageExtMessage": "Onbekende afbeeldingsindeling.",
"uploadImageFileCountMessage": "Geen afbeeldingen geüpload.", "uploadImageFileCountMessage": "Geen afbeeldingen geüpload.",
"uploadImageSizeMessage": "De afbeelding is te groot. De maximale grootte is 25MB." "uploadImageSizeMessage": "De afbeelding is te groot. De maximale grootte is 25MB.",
"errorCannotUseCommandProtectedSheet": "You cannot use this command on a protected sheet. To use this command, unprotect the sheet.<br>You might be requested to enter a password."
}, },
"LongActions": { "LongActions": {
"advDRMPassword": "Wachtwoord", "advDRMPassword": "Wachtwoord",

View file

@ -232,7 +232,8 @@
"uploadImageSizeMessage": "The image is too big. The maximum size is 25 MB.", "uploadImageSizeMessage": "The image is too big. The maximum size is 25 MB.",
"errorLoadingFont": "Fonts are not loaded.<br>Please contact your Document Server administrator.", "errorLoadingFont": "Fonts are not loaded.<br>Please contact your Document Server administrator.",
"errorChangeOnProtectedSheet": "The cell or chart you are trying to change is on a protected sheet. To make a change, unprotect the sheet. You might be requested to enter a password.", "errorChangeOnProtectedSheet": "The cell or chart you are trying to change is on a protected sheet. To make a change, unprotect the sheet. You might be requested to enter a password.",
"textErrorPasswordIsNotCorrect": "The password you supplied is not correct.<br>Verify that the CAPS LOCK key is off and be sure to use the correct capitalization." "textErrorPasswordIsNotCorrect": "The password you supplied is not correct.<br>Verify that the CAPS LOCK key is off and be sure to use the correct capitalization.",
"errorCannotUseCommandProtectedSheet": "You cannot use this command on a protected sheet. To use this command, unprotect the sheet.<br>You might be requested to enter a password."
}, },
"LongActions": { "LongActions": {
"applyChangesTextText": "Loading data...", "applyChangesTextText": "Loading data...",

View file

@ -232,7 +232,8 @@
"unknownErrorText": "Erro desconhecido.", "unknownErrorText": "Erro desconhecido.",
"uploadImageExtMessage": "Formato de imagem desconhecido.", "uploadImageExtMessage": "Formato de imagem desconhecido.",
"uploadImageFileCountMessage": "Sem imagens carregadas.", "uploadImageFileCountMessage": "Sem imagens carregadas.",
"uploadImageSizeMessage": "Tamanho limite máximo da imagem excedido. O tamanho máximo é de 25 MB." "uploadImageSizeMessage": "Tamanho limite máximo da imagem excedido. O tamanho máximo é de 25 MB.",
"errorCannotUseCommandProtectedSheet": "You cannot use this command on a protected sheet. To use this command, unprotect the sheet.<br>You might be requested to enter a password."
}, },
"LongActions": { "LongActions": {
"advDRMPassword": "Senha", "advDRMPassword": "Senha",

View file

@ -232,7 +232,8 @@
"unknownErrorText": "Eroare necunoscută.", "unknownErrorText": "Eroare necunoscută.",
"uploadImageExtMessage": "Format de imagine nerecunoscut.", "uploadImageExtMessage": "Format de imagine nerecunoscut.",
"uploadImageFileCountMessage": "Nicio imagine nu a fost încărcată.", "uploadImageFileCountMessage": "Nicio imagine nu a fost încărcată.",
"uploadImageSizeMessage": "Imaginea este prea mare. Limita de dimensiune este de 25 MB." "uploadImageSizeMessage": "Imaginea este prea mare. Limita de dimensiune este de 25 MB.",
"errorCannotUseCommandProtectedSheet": "You cannot use this command on a protected sheet. To use this command, unprotect the sheet.<br>You might be requested to enter a password."
}, },
"LongActions": { "LongActions": {
"advDRMPassword": "Parola", "advDRMPassword": "Parola",

View file

@ -232,7 +232,8 @@
"unknownErrorText": "Неизвестная ошибка.", "unknownErrorText": "Неизвестная ошибка.",
"uploadImageExtMessage": "Неизвестный формат рисунка.", "uploadImageExtMessage": "Неизвестный формат рисунка.",
"uploadImageFileCountMessage": "Ни одного рисунка не загружено.", "uploadImageFileCountMessage": "Ни одного рисунка не загружено.",
"uploadImageSizeMessage": "Слишком большой рисунок. Максимальный размер - 25 MB." "uploadImageSizeMessage": "Слишком большой рисунок. Максимальный размер - 25 MB.",
"errorCannotUseCommandProtectedSheet": "You cannot use this command on a protected sheet. To use this command, unprotect the sheet.<br>You might be requested to enter a password."
}, },
"LongActions": { "LongActions": {
"advDRMPassword": "Пароль", "advDRMPassword": "Пароль",

View file

@ -232,7 +232,8 @@
"uploadImageSizeMessage": "The image is too big. The maximum size is 25 MB.", "uploadImageSizeMessage": "The image is too big. The maximum size is 25 MB.",
"errorLoadingFont": "Fonts are not loaded.<br>Please contact your Document Server administrator.", "errorLoadingFont": "Fonts are not loaded.<br>Please contact your Document Server administrator.",
"errorChangeOnProtectedSheet": "The cell or chart you are trying to change is on a protected sheet. To make a change, unprotect the sheet. You might be requested to enter a password.", "errorChangeOnProtectedSheet": "The cell or chart you are trying to change is on a protected sheet. To make a change, unprotect the sheet. You might be requested to enter a password.",
"textErrorPasswordIsNotCorrect": "The password you supplied is not correct.<br>Verify that the CAPS LOCK key is off and be sure to use the correct capitalization." "textErrorPasswordIsNotCorrect": "The password you supplied is not correct.<br>Verify that the CAPS LOCK key is off and be sure to use the correct capitalization.",
"errorCannotUseCommandProtectedSheet": "You cannot use this command on a protected sheet. To use this command, unprotect the sheet.<br>You might be requested to enter a password."
}, },
"LongActions": { "LongActions": {
"applyChangesTextText": "Loading data...", "applyChangesTextText": "Loading data...",

View file

@ -232,7 +232,8 @@
"uploadImageSizeMessage": "The image is too big. The maximum size is 25 MB.", "uploadImageSizeMessage": "The image is too big. The maximum size is 25 MB.",
"errorLoadingFont": "Fonts are not loaded.<br>Please contact your Document Server administrator.", "errorLoadingFont": "Fonts are not loaded.<br>Please contact your Document Server administrator.",
"errorChangeOnProtectedSheet": "The cell or chart you are trying to change is on a protected sheet. To make a change, unprotect the sheet. You might be requested to enter a password.", "errorChangeOnProtectedSheet": "The cell or chart you are trying to change is on a protected sheet. To make a change, unprotect the sheet. You might be requested to enter a password.",
"textErrorPasswordIsNotCorrect": "The password you supplied is not correct.<br>Verify that the CAPS LOCK key is off and be sure to use the correct capitalization." "textErrorPasswordIsNotCorrect": "The password you supplied is not correct.<br>Verify that the CAPS LOCK key is off and be sure to use the correct capitalization.",
"errorCannotUseCommandProtectedSheet": "You cannot use this command on a protected sheet. To use this command, unprotect the sheet.<br>You might be requested to enter a password."
}, },
"LongActions": { "LongActions": {
"applyChangesTextText": "Loading data...", "applyChangesTextText": "Loading data...",

View file

@ -232,7 +232,8 @@
"unknownErrorText": "Bilinmeyen hata.", "unknownErrorText": "Bilinmeyen hata.",
"uploadImageExtMessage": "Bilinmeyen resim formatı.", "uploadImageExtMessage": "Bilinmeyen resim formatı.",
"uploadImageFileCountMessage": "Resim yüklenmedi.", "uploadImageFileCountMessage": "Resim yüklenmedi.",
"uploadImageSizeMessage": "Görüntü çok büyük. Maksimum boyut 25 MB'dir." "uploadImageSizeMessage": "Görüntü çok büyük. Maksimum boyut 25 MB'dir.",
"errorCannotUseCommandProtectedSheet": "You cannot use this command on a protected sheet. To use this command, unprotect the sheet.<br>You might be requested to enter a password."
}, },
"LongActions": { "LongActions": {
"advDRMPassword": "Şifre", "advDRMPassword": "Şifre",

View file

@ -232,7 +232,8 @@
"uploadImageSizeMessage": "The image is too big. The maximum size is 25 MB.", "uploadImageSizeMessage": "The image is too big. The maximum size is 25 MB.",
"errorLoadingFont": "Fonts are not loaded.<br>Please contact your Document Server administrator.", "errorLoadingFont": "Fonts are not loaded.<br>Please contact your Document Server administrator.",
"errorChangeOnProtectedSheet": "The cell or chart you are trying to change is on a protected sheet. To make a change, unprotect the sheet. You might be requested to enter a password.", "errorChangeOnProtectedSheet": "The cell or chart you are trying to change is on a protected sheet. To make a change, unprotect the sheet. You might be requested to enter a password.",
"textErrorPasswordIsNotCorrect": "The password you supplied is not correct.<br>Verify that the CAPS LOCK key is off and be sure to use the correct capitalization." "textErrorPasswordIsNotCorrect": "The password you supplied is not correct.<br>Verify that the CAPS LOCK key is off and be sure to use the correct capitalization.",
"errorCannotUseCommandProtectedSheet": "You cannot use this command on a protected sheet. To use this command, unprotect the sheet.<br>You might be requested to enter a password."
}, },
"LongActions": { "LongActions": {
"applyChangesTextText": "Loading data...", "applyChangesTextText": "Loading data...",

View file

@ -232,7 +232,8 @@
"uploadImageSizeMessage": "The image is too big. The maximum size is 25 MB.", "uploadImageSizeMessage": "The image is too big. The maximum size is 25 MB.",
"errorLoadingFont": "Fonts are not loaded.<br>Please contact your Document Server administrator.", "errorLoadingFont": "Fonts are not loaded.<br>Please contact your Document Server administrator.",
"errorChangeOnProtectedSheet": "The cell or chart you are trying to change is on a protected sheet. To make a change, unprotect the sheet. You might be requested to enter a password.", "errorChangeOnProtectedSheet": "The cell or chart you are trying to change is on a protected sheet. To make a change, unprotect the sheet. You might be requested to enter a password.",
"textErrorPasswordIsNotCorrect": "The password you supplied is not correct.<br>Verify that the CAPS LOCK key is off and be sure to use the correct capitalization." "textErrorPasswordIsNotCorrect": "The password you supplied is not correct.<br>Verify that the CAPS LOCK key is off and be sure to use the correct capitalization.",
"errorCannotUseCommandProtectedSheet": "You cannot use this command on a protected sheet. To use this command, unprotect the sheet.<br>You might be requested to enter a password."
}, },
"LongActions": { "LongActions": {
"applyChangesTextText": "Loading data...", "applyChangesTextText": "Loading data...",

View file

@ -232,7 +232,8 @@
"unknownErrorText": "未知错误。", "unknownErrorText": "未知错误。",
"uploadImageExtMessage": "未知图像格式。", "uploadImageExtMessage": "未知图像格式。",
"uploadImageFileCountMessage": "没有图片上传", "uploadImageFileCountMessage": "没有图片上传",
"uploadImageSizeMessage": "图片太大了。最大允许的大小是 25 MB." "uploadImageSizeMessage": "图片太大了。最大允许的大小是 25 MB.",
"errorCannotUseCommandProtectedSheet": "You cannot use this command on a protected sheet. To use this command, unprotect the sheet.<br>You might be requested to enter a password."
}, },
"LongActions": { "LongActions": {
"advDRMPassword": "密码", "advDRMPassword": "密码",

View file

@ -314,6 +314,10 @@ const ErrorController = inject('storeAppOptions')(({storeAppOptions, LoadingDocu
config.msg = t('Error.textErrorPasswordIsNotCorrect'); config.msg = t('Error.textErrorPasswordIsNotCorrect');
break; break;
case Asc.c_oAscError.ID.CannotUseCommandProtectedSheet:
config.msg = t('Error.errorCannotUseCommandProtectedSheet');
break;
default: default:
config.msg = _t.errorDefaultMessage.replace('%1', id); config.msg = _t.errorDefaultMessage.replace('%1', id);
break; break;

View file

@ -402,11 +402,18 @@ class MainController extends Component {
this.api.asc_registerCallback('asc_onEditCell', (state) => { this.api.asc_registerCallback('asc_onEditCell', (state) => {
if (state == Asc.c_oAscCellEditorState.editStart || state == Asc.c_oAscCellEditorState.editEnd) { if (state == Asc.c_oAscCellEditorState.editStart || state == Asc.c_oAscCellEditorState.editEnd) {
const isEditCell = state === Asc.c_oAscCellEditorState.editStart; const isEditCell = state === Asc.c_oAscCellEditorState.editStart;
const isEditEnd = state === Asc.c_oAscCellEditorState.editEnd;
if (storeFocusObjects.isEditCell !== isEditCell) { if (storeFocusObjects.isEditCell !== isEditCell) {
storeFocusObjects.setEditCell(isEditCell); storeFocusObjects.setEditCell(isEditCell);
} }
if(isEditEnd) {
storeFocusObjects.setEditFormulaMode(false);
}
} else { } else {
const isFormula = state === Asc.c_oAscCellEditorState.editFormula; const isFormula = state === Asc.c_oAscCellEditorState.editFormula;
if (storeFocusObjects.editFormulaMode !== isFormula) { if (storeFocusObjects.editFormulaMode !== isFormula) {
storeFocusObjects.setEditFormulaMode(isFormula); storeFocusObjects.setEditFormulaMode(isFormula);
} }
@ -461,7 +468,7 @@ class MainController extends Component {
const { t } = this.props; const { t } = this.props;
if (this.api.isReplaceAll) { if (this.api.isReplaceAll) {
f7.dialog.alert(null, (found) ? ((!found - replaced) ? Common.Utils.String.format(t('Controller.Main.textReplaceSuccess'), replaced) : Common.Utils.String.format(t('Controller.Main.textReplaceSkipped'), found - replaced)) : t('Controller.Main.textNoTextFound')); f7.dialog.alert(null, (found) ? ((!found - replaced) ? t('Controller.Main.textReplaceSuccess').replace(/\{0\}/, `${replaced}`) : t('Controller.Main.textReplaceSkipped').replace(/\{0\}/, `${found - replaced}`)) : t('Controller.Main.textNoTextFound'));
} }
} }