Merge remote-tracking branch 'remotes/origin/develop' into feature/sse-pivot-settings

This commit is contained in:
Sergey Konovalov 2019-08-29 14:50:10 +03:00
commit cc05a8ae5b
No known key found for this signature in database
GPG key ID: 9BC70BEFF12CC5AE
28 changed files with 145 additions and 22 deletions

View file

@ -74,7 +74,7 @@ define([
var templateRightBox = '<section>' + var templateRightBox = '<section>' +
'<section id="box-doc-name">' + '<section id="box-doc-name">' +
'<input type="text" id="rib-doc-name" spellcheck="false" data-can-copy="false" style="pointer-events: none;">' + '<input type="text" id="rib-doc-name" spellcheck="false" data-can-copy="false" style="pointer-events: none;" disabled="disabled">' +
'</section>' + '</section>' +
'<a id="rib-save-status" class="status-label locked"><%= textSaveEnd %></a>' + '<a id="rib-save-status" class="status-label locked"><%= textSaveEnd %></a>' +
'<div class="hedset">' + '<div class="hedset">' +
@ -116,7 +116,7 @@ define([
'<div class="btn-slot" id="slot-btn-dt-redo"></div>' + '<div class="btn-slot" id="slot-btn-dt-redo"></div>' +
'</div>' + '</div>' +
'<div class="lr-separator"></div>' + '<div class="lr-separator"></div>' +
'<input type="text" id="title-doc-name" spellcheck="false" data-can-copy="false" style="pointer-events: none;">' + '<input type="text" id="title-doc-name" spellcheck="false" data-can-copy="false" style="pointer-events: none;" disabled="disabled">' +
'<label id="title-user-name" style="pointer-events: none;"></label>' + '<label id="title-user-name" style="pointer-events: none;"></label>' +
'</section>'; '</section>';

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 50 KiB

After

Width:  |  Height:  |  Size: 51 KiB

View file

@ -530,6 +530,7 @@
.button-normal-icon(btn-func-math, 73, @toolbar-big-icon-size); .button-normal-icon(btn-func-math, 73, @toolbar-big-icon-size);
.button-normal-icon(btn-more, 74, @toolbar-big-icon-size); .button-normal-icon(btn-more, 74, @toolbar-big-icon-size);
.button-normal-icon(btn-pagenum, 75, @toolbar-big-icon-size); .button-normal-icon(btn-pagenum, 75, @toolbar-big-icon-size);
.button-normal-icon(btn-calculation, 80, @toolbar-big-icon-size);
[applang=ru] { [applang=ru] {
.btn-toolbar { .btn-toolbar {

View file

@ -398,6 +398,10 @@ DE.ApplicationController = new(function(){
message = me.errorUserDrop; message = me.errorUserDrop;
break; break;
case Asc.c_oAscError.ID.ConvertationOpenLimitError:
message = me.errorFileSizeExceed;
break;
default: default:
message = me.errorDefaultMessage.replace('%1', id); message = me.errorDefaultMessage.replace('%1', id);
break; break;
@ -409,7 +413,7 @@ DE.ApplicationController = new(function(){
Common.Gateway.reportError(id, message); Common.Gateway.reportError(id, message);
$('#id-critical-error-title').text(me.criticalErrorTitle); $('#id-critical-error-title').text(me.criticalErrorTitle);
$('#id-critical-error-message').text(message); $('#id-critical-error-message').html(message);
$('#id-critical-error-close').text(me.txtClose).off().on('click', function(){ $('#id-critical-error-close').text(me.txtClose).off().on('click', function(){
window.location.reload(); window.location.reload();
}); });
@ -418,7 +422,7 @@ DE.ApplicationController = new(function(){
Common.Gateway.reportWarning(id, message); Common.Gateway.reportWarning(id, message);
$('#id-critical-error-title').text(me.notcriticalErrorTitle); $('#id-critical-error-title').text(me.notcriticalErrorTitle);
$('#id-critical-error-message').text(message); $('#id-critical-error-message').html(message);
$('#id-critical-error-close').text(me.txtClose).off().on('click', function(){ $('#id-critical-error-close').text(me.txtClose).off().on('click', function(){
$('#id-critical-error-dialog').modal('hide'); $('#id-critical-error-dialog').modal('hide');
}); });
@ -553,6 +557,7 @@ DE.ApplicationController = new(function(){
downloadTextText: 'Downloading document...', downloadTextText: 'Downloading document...',
waitText: 'Please, wait...', waitText: 'Please, wait...',
textLoadingDocument: 'Loading document', textLoadingDocument: 'Loading document',
txtClose: 'Close' txtClose: 'Close',
errorFileSizeExceed: 'The file size exceeds the limitation set for your server.<br>Please contact your Document Server administrator for details.'
} }
})(); })();

View file

@ -12,6 +12,7 @@
"DE.ApplicationController.errorAccessDeny": "You are trying to perform an action you do not have rights for.<br>Please contact your Document Server administrator.", "DE.ApplicationController.errorAccessDeny": "You are trying to perform an action you do not have rights for.<br>Please contact your Document Server administrator.",
"DE.ApplicationController.errorDefaultMessage": "Error code: %1", "DE.ApplicationController.errorDefaultMessage": "Error code: %1",
"DE.ApplicationController.errorFilePassProtect": "The file is password protected and cannot be opened.", "DE.ApplicationController.errorFilePassProtect": "The file is password protected and cannot be opened.",
"DE.ApplicationController.errorFileSizeExceed": "The file size exceeds the limitation set for your server.<br>Please contact your Document Server administrator for details.",
"DE.ApplicationController.errorUserDrop": "The file cannot be accessed right now.", "DE.ApplicationController.errorUserDrop": "The file cannot be accessed right now.",
"DE.ApplicationController.notcriticalErrorTitle": "Warning", "DE.ApplicationController.notcriticalErrorTitle": "Warning",
"DE.ApplicationController.scriptLoadError": "The connection is too slow, some of the components could not be loaded. Please reload the page.", "DE.ApplicationController.scriptLoadError": "The connection is too slow, some of the components could not be loaded. Please reload the page.",

View file

@ -134,11 +134,14 @@ define([
} }
}, this)); }, this));
diagramEditor.on('hide', _.bind(function(cmp, message) { diagramEditor.on('hide', _.bind(function(cmp, message) {
this.documentHolder.fireEvent('editcomplete', this.documentHolder);
if (this.api) { if (this.api) {
this.api.asc_onCloseChartFrame(); this.api.asc_onCloseChartFrame();
this.api.asc_enableKeyEvents(true); this.api.asc_enableKeyEvents(true);
} }
var me = this;
setTimeout(function(){
me.documentHolder.fireEvent('editcomplete', me.documentHolder);
}, 10);
}, this)); }, this));
} }
@ -151,10 +154,13 @@ define([
this.api.asc_setMailMergeData(data); this.api.asc_setMailMergeData(data);
}, this)); }, this));
mergeEditor.on('hide', _.bind(function(cmp, message) { mergeEditor.on('hide', _.bind(function(cmp, message) {
this.documentHolder.fireEvent('editcomplete', this.documentHolder);
if (this.api) { if (this.api) {
this.api.asc_enableKeyEvents(true); this.api.asc_enableKeyEvents(true);
} }
var me = this;
setTimeout(function(){
me.documentHolder.fireEvent('editcomplete', me.documentHolder);
}, 10);
}, this)); }, this));
} }
}, },

View file

@ -1486,6 +1486,10 @@ define([
config.msg = this.errorEmailClient; config.msg = this.errorEmailClient;
break; break;
case Asc.c_oAscError.ID.ConvertationOpenLimitError:
config.msg = this.errorFileSizeExceed;
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;
@ -2470,7 +2474,8 @@ define([
errorEmailClient: 'No email client could be found', errorEmailClient: 'No email client could be found',
textCustomLoader: 'Please note that according to the terms of the license you are not entitled to change the loader.<br>Please contact our Sales Department to get a quote.', textCustomLoader: 'Please note that according to the terms of the license you are not entitled to change the loader.<br>Please contact our Sales Department to get a quote.',
txtHyperlink: 'Hyperlink', txtHyperlink: 'Hyperlink',
waitText: 'Please, wait...' waitText: 'Please, wait...',
errorFileSizeExceed: 'The file size exceeds the limitation set for your server.<br>Please contact your Document Server administrator for details.'
} }
})(), DE.Controllers.Main || {})) })(), DE.Controllers.Main || {}))
}); });

View file

@ -665,6 +665,7 @@
"DE.Controllers.Main.warnNoLicense": "This version of %1 editors has certain limitations for concurrent connections to the document server.<br>If you need more please consider purchasing a commercial license.", "DE.Controllers.Main.warnNoLicense": "This version of %1 editors has certain limitations for concurrent connections to the document server.<br>If you need more please consider purchasing a commercial license.",
"DE.Controllers.Main.warnNoLicenseUsers": "This version of %1 editors has certain limitations for concurrent users.<br>If you need more please consider purchasing a commercial license.", "DE.Controllers.Main.warnNoLicenseUsers": "This version of %1 editors has certain limitations for concurrent users.<br>If you need more please consider purchasing a commercial license.",
"DE.Controllers.Main.warnProcessRightsChange": "You have been denied the right to edit the file.", "DE.Controllers.Main.warnProcessRightsChange": "You have been denied the right to edit the file.",
"DE.Controllers.Main.errorFileSizeExceed": "The file size exceeds the limitation set for your server.<br>Please contact your Document Server administrator for details.",
"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.Statusbar.textHasChanges": "New changes have been tracked", "DE.Controllers.Statusbar.textHasChanges": "New changes have been tracked",

View file

@ -948,6 +948,10 @@ define([
config.msg = this.errorEditingDownloadas; config.msg = this.errorEditingDownloadas;
break; break;
case Asc.c_oAscError.ID.ConvertationOpenLimitError:
config.msg = this.errorFileSizeExceed;
break;
default: default:
config.msg = this.errorDefaultMessage.replace('%1', id); config.msg = this.errorDefaultMessage.replace('%1', id);
break; break;
@ -1432,7 +1436,8 @@ define([
errorEditingDownloadas: 'An error occurred during the work with the document.<br>Use the \'Download\' option to save the file backup copy to your computer hard drive.', errorEditingDownloadas: 'An error occurred during the work with the document.<br>Use the \'Download\' option to save the file backup copy to your computer hard drive.',
textPaidFeature: 'Paid feature', textPaidFeature: 'Paid feature',
textCustomLoader: 'Please note that according to the terms of the license you are not entitled to change the loader.<br>Please contact our Sales Department to get a quote.', textCustomLoader: 'Please note that according to the terms of the license you are not entitled to change the loader.<br>Please contact our Sales Department to get a quote.',
waitText: 'Please, wait...' waitText: 'Please, wait...',
errorFileSizeExceed: 'The file size exceeds the limitation set for your server.<br>Please contact your Document Server administrator for details.'
} }
})(), DE.Controllers.Main || {})) })(), DE.Controllers.Main || {}))
}); });

View file

@ -247,6 +247,7 @@
"DE.Controllers.Main.warnNoLicense": "This version of %1 editors has certain limitations for concurrent connections to the document server.<br>If you need more please consider purchasing a commercial license.", "DE.Controllers.Main.warnNoLicense": "This version of %1 editors has certain limitations for concurrent connections to the document server.<br>If you need more please consider purchasing a commercial license.",
"DE.Controllers.Main.warnNoLicenseUsers": "This version of %1 editors has certain limitations for concurrent users.<br>If you need more please consider purchasing a commercial license.", "DE.Controllers.Main.warnNoLicenseUsers": "This version of %1 editors has certain limitations for concurrent users.<br>If you need more please consider purchasing a commercial license.",
"DE.Controllers.Main.warnProcessRightsChange": "You have been denied the right to edit the file.", "DE.Controllers.Main.warnProcessRightsChange": "You have been denied the right to edit the file.",
"DE.Controllers.Main.errorFileSizeExceed": "The file size exceeds the limitation set for your server.<br>Please contact your Document Server administrator for details.",
"DE.Controllers.Search.textNoTextFound": "Text not Found", "DE.Controllers.Search.textNoTextFound": "Text not Found",
"DE.Controllers.Search.textReplaceAll": "Replace All", "DE.Controllers.Search.textReplaceAll": "Replace All",
"DE.Controllers.Settings.notcriticalErrorTitle": "Warning", "DE.Controllers.Settings.notcriticalErrorTitle": "Warning",

View file

@ -498,6 +498,10 @@ PE.ApplicationController = new(function(){
message = me.errorUserDrop; message = me.errorUserDrop;
break; break;
case Asc.c_oAscError.ID.ConvertationOpenLimitError:
message = me.errorFileSizeExceed;
break;
default: default:
message = me.errorDefaultMessage.replace('%1', id); message = me.errorDefaultMessage.replace('%1', id);
break; break;
@ -509,7 +513,7 @@ PE.ApplicationController = new(function(){
Common.Gateway.reportError(id, message); Common.Gateway.reportError(id, message);
$('#id-critical-error-title').text(me.criticalErrorTitle); $('#id-critical-error-title').text(me.criticalErrorTitle);
$('#id-critical-error-message').text(message); $('#id-critical-error-message').html(message);
$('#id-critical-error-close').text(me.txtClose).off().on('click', function(){ $('#id-critical-error-close').text(me.txtClose).off().on('click', function(){
window.location.reload(); window.location.reload();
}); });
@ -518,7 +522,7 @@ PE.ApplicationController = new(function(){
Common.Gateway.reportWarning(id, message); Common.Gateway.reportWarning(id, message);
$('#id-critical-error-title').text(me.notcriticalErrorTitle); $('#id-critical-error-title').text(me.notcriticalErrorTitle);
$('#id-critical-error-message').text(message); $('#id-critical-error-message').html(message);
$('#id-critical-error-close').text(me.txtClose).off().on('click', function(){ $('#id-critical-error-close').text(me.txtClose).off().on('click', function(){
$('#id-critical-error-dialog').modal('hide'); $('#id-critical-error-dialog').modal('hide');
}); });
@ -624,6 +628,7 @@ PE.ApplicationController = new(function(){
downloadTextText: 'Downloading presentation...', downloadTextText: 'Downloading presentation...',
waitText: 'Please, wait...', waitText: 'Please, wait...',
textLoadingDocument: 'Loading presentation', textLoadingDocument: 'Loading presentation',
txtClose: 'Close' txtClose: 'Close',
errorFileSizeExceed: 'The file size exceeds the limitation set for your server.<br>Please contact your Document Server administrator for details.'
} }
})(); })();

View file

@ -12,6 +12,7 @@
"PE.ApplicationController.errorAccessDeny": "You are trying to perform an action you do not have rights for.<br>Please contact your Document Server administrator.", "PE.ApplicationController.errorAccessDeny": "You are trying to perform an action you do not have rights for.<br>Please contact your Document Server administrator.",
"PE.ApplicationController.errorDefaultMessage": "Error code: %1", "PE.ApplicationController.errorDefaultMessage": "Error code: %1",
"PE.ApplicationController.errorFilePassProtect": "The file is password protected and cannot be opened.", "PE.ApplicationController.errorFilePassProtect": "The file is password protected and cannot be opened.",
"PE.ApplicationController.errorFileSizeExceed": "The file size exceeds the limitation set for your server.<br>Please contact your Document Server administrator for details.",
"PE.ApplicationController.errorUserDrop": "The file cannot be accessed right now.", "PE.ApplicationController.errorUserDrop": "The file cannot be accessed right now.",
"PE.ApplicationController.notcriticalErrorTitle": "Warning", "PE.ApplicationController.notcriticalErrorTitle": "Warning",
"PE.ApplicationController.scriptLoadError": "The connection is too slow, some of the components could not be loaded. Please reload the page.", "PE.ApplicationController.scriptLoadError": "The connection is too slow, some of the components could not be loaded. Please reload the page.",

View file

@ -1193,6 +1193,10 @@ define([
config.msg = this.errorEmailClient; config.msg = this.errorEmailClient;
break; break;
case Asc.c_oAscError.ID.ConvertationOpenLimitError:
config.msg = this.errorFileSizeExceed;
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;
@ -2178,7 +2182,8 @@ define([
txtShape_polyline2: 'Freeform', txtShape_polyline2: 'Freeform',
errorEmailClient: 'No email client could be found', errorEmailClient: 'No email client could be found',
textCustomLoader: 'Please note that according to the terms of the license you are not entitled to change the loader.<br>Please contact our Sales Department to get a quote.', textCustomLoader: 'Please note that according to the terms of the license you are not entitled to change the loader.<br>Please contact our Sales Department to get a quote.',
waitText: 'Please, wait...' waitText: 'Please, wait...',
errorFileSizeExceed: 'The file size exceeds the limitation set for your server.<br>Please contact your Document Server administrator for details.'
} }
})(), PE.Controllers.Main || {})) })(), PE.Controllers.Main || {}))
}); });

View file

@ -586,6 +586,7 @@
"PE.Controllers.Main.warnNoLicense": "This version of %1 editors has certain limitations for concurrent connections to the document server.<br>If you need more please consider purchasing a commercial license.", "PE.Controllers.Main.warnNoLicense": "This version of %1 editors has certain limitations for concurrent connections to the document server.<br>If you need more please consider purchasing a commercial license.",
"PE.Controllers.Main.warnNoLicenseUsers": "This version of %1 editors has certain limitations for concurrent users.<br>If you need more please consider purchasing a commercial license.", "PE.Controllers.Main.warnNoLicenseUsers": "This version of %1 editors has certain limitations for concurrent users.<br>If you need more please consider purchasing a commercial license.",
"PE.Controllers.Main.warnProcessRightsChange": "You have been denied the right to edit the file.", "PE.Controllers.Main.warnProcessRightsChange": "You have been denied the right to edit the file.",
"PE.Controllers.Main.errorFileSizeExceed": "The file size exceeds the limitation set for your server.<br>Please contact your Document Server administrator for details.",
"PE.Controllers.Statusbar.zoomText": "Zoom {0}%", "PE.Controllers.Statusbar.zoomText": "Zoom {0}%",
"PE.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?", "PE.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?",
"PE.Controllers.Toolbar.textAccent": "Accents", "PE.Controllers.Toolbar.textAccent": "Accents",

View file

@ -880,6 +880,10 @@ define([
config.msg = this.errorEditingDownloadas; config.msg = this.errorEditingDownloadas;
break; break;
case Asc.c_oAscError.ID.ConvertationOpenLimitError:
config.msg = this.errorFileSizeExceed;
break;
default: default:
config.msg = this.errorDefaultMessage.replace('%1', id); config.msg = this.errorDefaultMessage.replace('%1', id);
break; break;
@ -1387,7 +1391,8 @@ define([
errorEditingDownloadas: 'An error occurred during the work with the document.<br>Use the \'Download\' option to save the file backup copy to your computer hard drive.', errorEditingDownloadas: 'An error occurred during the work with the document.<br>Use the \'Download\' option to save the file backup copy to your computer hard drive.',
textPaidFeature: 'Paid feature', textPaidFeature: 'Paid feature',
textCustomLoader: 'Please note that according to the terms of the license you are not entitled to change the loader.<br>Please contact our Sales Department to get a quote.', textCustomLoader: 'Please note that according to the terms of the license you are not entitled to change the loader.<br>Please contact our Sales Department to get a quote.',
waitText: 'Please, wait...' waitText: 'Please, wait...',
errorFileSizeExceed: 'The file size exceeds the limitation set for your server.<br>Please contact your Document Server administrator for details.'
} }
})(), PE.Controllers.Main || {})) })(), PE.Controllers.Main || {}))
}); });

View file

@ -223,6 +223,7 @@
"PE.Controllers.Main.warnNoLicense": "This version of %1 editors has certain limitations for concurrent connections to the document server.<br>If you need more please consider purchasing a commercial license.", "PE.Controllers.Main.warnNoLicense": "This version of %1 editors has certain limitations for concurrent connections to the document server.<br>If you need more please consider purchasing a commercial license.",
"PE.Controllers.Main.warnNoLicenseUsers": "This version of %1 editors has certain limitations for concurrent users.<br>If you need more please consider purchasing a commercial license.", "PE.Controllers.Main.warnNoLicenseUsers": "This version of %1 editors has certain limitations for concurrent users.<br>If you need more please consider purchasing a commercial license.",
"PE.Controllers.Main.warnProcessRightsChange": "You have been denied the right to edit the file.", "PE.Controllers.Main.warnProcessRightsChange": "You have been denied the right to edit the file.",
"PE.Controllers.Main.errorFileSizeExceed": "The file size exceeds the limitation set for your server.<br>Please contact your Document Server administrator for details.",
"PE.Controllers.Search.textNoTextFound": "Text not Found", "PE.Controllers.Search.textNoTextFound": "Text not Found",
"PE.Controllers.Search.textReplaceAll": "Replace All", "PE.Controllers.Search.textReplaceAll": "Replace All",
"PE.Controllers.Settings.notcriticalErrorTitle": "Warning", "PE.Controllers.Settings.notcriticalErrorTitle": "Warning",

View file

@ -406,6 +406,10 @@ SSE.ApplicationController = new(function(){
message = me.errorUserDrop; message = me.errorUserDrop;
break; break;
case Asc.c_oAscError.ID.ConvertationOpenLimitError:
message = me.errorFileSizeExceed;
break;
default: default:
message = me.errorDefaultMessage.replace('%1', id); message = me.errorDefaultMessage.replace('%1', id);
break; break;
@ -417,7 +421,7 @@ SSE.ApplicationController = new(function(){
Common.Gateway.reportError(id, message); Common.Gateway.reportError(id, message);
$('#id-critical-error-title').text(me.criticalErrorTitle); $('#id-critical-error-title').text(me.criticalErrorTitle);
$('#id-critical-error-message').text(message); $('#id-critical-error-message').html(message);
$('#id-critical-error-close').text(me.txtClose).off().on('click', function(){ $('#id-critical-error-close').text(me.txtClose).off().on('click', function(){
window.location.reload(); window.location.reload();
}); });
@ -426,7 +430,7 @@ SSE.ApplicationController = new(function(){
Common.Gateway.reportWarning(id, message); Common.Gateway.reportWarning(id, message);
$('#id-critical-error-title').text(me.notcriticalErrorTitle); $('#id-critical-error-title').text(me.notcriticalErrorTitle);
$('#id-critical-error-message').text(message); $('#id-critical-error-message').html(message);
$('#id-critical-error-close').text(me.txtClose).off().on('click', function(){ $('#id-critical-error-close').text(me.txtClose).off().on('click', function(){
$('#id-critical-error-dialog').modal('hide'); $('#id-critical-error-dialog').modal('hide');
}); });
@ -571,6 +575,7 @@ SSE.ApplicationController = new(function(){
downloadTextText: 'Downloading spreadsheet...', downloadTextText: 'Downloading spreadsheet...',
waitText: 'Please, wait...', waitText: 'Please, wait...',
textLoadingDocument: 'Loading spreadsheet', textLoadingDocument: 'Loading spreadsheet',
txtClose: 'Close' txtClose: 'Close',
errorFileSizeExceed: 'The file size exceeds the limitation set for your server.<br>Please contact your Document Server administrator for details.'
} }
})(); })();

View file

@ -12,6 +12,7 @@
"SSE.ApplicationController.errorAccessDeny": "You are trying to perform an action you do not have rights for.<br>Please contact your Document Server administrator.", "SSE.ApplicationController.errorAccessDeny": "You are trying to perform an action you do not have rights for.<br>Please contact your Document Server administrator.",
"SSE.ApplicationController.errorDefaultMessage": "Error code: %1", "SSE.ApplicationController.errorDefaultMessage": "Error code: %1",
"SSE.ApplicationController.errorFilePassProtect": "The file is password protected and cannot be opened.", "SSE.ApplicationController.errorFilePassProtect": "The file is password protected and cannot be opened.",
"SSE.ApplicationController.errorFileSizeExceed": "The file size exceeds the limitation set for your server.<br>Please contact your Document Server administrator for details.",
"SSE.ApplicationController.errorUserDrop": "The file cannot be accessed right now.", "SSE.ApplicationController.errorUserDrop": "The file cannot be accessed right now.",
"SSE.ApplicationController.notcriticalErrorTitle": "Warning", "SSE.ApplicationController.notcriticalErrorTitle": "Warning",
"SSE.ApplicationController.scriptLoadError": "The connection is too slow, some of the components could not be loaded. Please reload the page.", "SSE.ApplicationController.scriptLoadError": "The connection is too slow, some of the components could not be loaded. Please reload the page.",

View file

@ -80,7 +80,8 @@ define([
} }
}, },
'FormulaTab': { 'FormulaTab': {
'function:apply': this.applyFunction 'function:apply': this.applyFunction,
'function:calculate': this.onCalculate
}, },
'Toolbar': { 'Toolbar': {
'function:apply': this.applyFunction, 'function:apply': this.applyFunction,
@ -353,6 +354,13 @@ define([
} }
}, },
onCalculate: function(calc) {
var type = calc.type;
if (type === Asc.c_oAscCalculateType.All || type === Asc.c_oAscCalculateType.ActiveSheet) {
this.api && this.api.asc_calculate(type);
}
},
sCategoryAll: 'All', sCategoryAll: 'All',
sCategoryLast10: '10 last used', sCategoryLast10: '10 last used',
sCategoryLogical: 'Logical', sCategoryLogical: 'Logical',

View file

@ -1399,6 +1399,10 @@ define([
config.maxwidth = 600; config.maxwidth = 600;
break; break;
case Asc.c_oAscError.ID.ConvertationOpenLimitError:
config.msg = this.errorFileSizeExceed;
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;
@ -2432,7 +2436,8 @@ define([
txtDate: 'Date', txtDate: 'Date',
txtTime: 'Time', txtTime: 'Time',
txtTab: 'Tab', txtTab: 'Tab',
txtFile: 'File' txtFile: 'File',
errorFileSizeExceed: 'The file size exceeds the limitation set for your server.<br>Please contact your Document Server administrator for details.'
} }
})(), SSE.Controllers.Main || {})) })(), SSE.Controllers.Main || {}))
}); });

View file

@ -103,6 +103,7 @@ define([
if (this.api) { if (this.api) {
this.api.asc_nextWord(); this.api.asc_nextWord();
} }
Common.NotificationCenter.trigger('edit:complete', this, {restorefocus:true});
}, },
onDictionary: function() { onDictionary: function() {
@ -172,6 +173,7 @@ define([
this.api.asc_setDefaultLanguage(lang); this.api.asc_setDefaultLanguage(lang);
Common.localStorage.setItem("sse-spellcheck-locale", this.panelSpellcheck.cmbDictionaryLanguage.getValue()); Common.localStorage.setItem("sse-spellcheck-locale", this.panelSpellcheck.cmbDictionaryLanguage.getValue());
} }
Common.NotificationCenter.trigger('edit:complete', this, {restorefocus:true});
}, },
onClickChange: function (btn, e) { onClickChange: function (btn, e) {
@ -179,6 +181,7 @@ define([
var rec = this.panelSpellcheck.suggestionList.getSelectedRec(); var rec = this.panelSpellcheck.suggestionList.getSelectedRec();
rec && this.api.asc_replaceMisspelledWord(rec.get('value'), this._currentSpellObj); rec && this.api.asc_replaceMisspelledWord(rec.get('value'), this._currentSpellObj);
} }
Common.NotificationCenter.trigger('edit:complete', this, {restorefocus:true});
}, },
onClickChangeMenu: function (menu, item) { onClickChangeMenu: function (menu, item) {
@ -190,12 +193,14 @@ define([
rec && this.api.asc_replaceMisspelledWord(rec.get('value'), this._currentSpellObj, true); rec && this.api.asc_replaceMisspelledWord(rec.get('value'), this._currentSpellObj, true);
} }
} }
Common.NotificationCenter.trigger('edit:complete', this, {restorefocus:true});
}, },
onClickIgnore: function () { onClickIgnore: function () {
if (this.api) { if (this.api) {
this.api.asc_ignoreMisspelledWord(this._currentSpellObj, false) this.api.asc_ignoreMisspelledWord(this._currentSpellObj, false)
} }
Common.NotificationCenter.trigger('edit:complete', this, {restorefocus:true});
}, },
onClickIgnoreMenu: function (menu, item) { onClickIgnoreMenu: function (menu, item) {
@ -206,6 +211,7 @@ define([
this.api.asc_ignoreMisspelledWord(this._currentSpellObj, true); this.api.asc_ignoreMisspelledWord(this._currentSpellObj, true);
} }
} }
Common.NotificationCenter.trigger('edit:complete', this, {restorefocus:true});
}, },
onSpellCheckVariantsFound: function (property) { onSpellCheckVariantsFound: function (property) {

View file

@ -172,6 +172,10 @@
<span class="btn-slot text x-huge" id="slot-btn-math"></span> <span class="btn-slot text x-huge" id="slot-btn-math"></span>
<span class="btn-slot text x-huge" id="slot-btn-more"></span> <span class="btn-slot text x-huge" id="slot-btn-more"></span>
</div> </div>
<div class="separator long"></div>
<div class="group">
<span class="btn-slot text x-huge" id="slot-btn-calculate"></span>
</div>
</section> </section>
<section class="panel" data-tab="data"> <section class="panel" data-tab="data">
<div class="group"> <div class="group">

View file

@ -57,6 +57,12 @@ define([
me.btnFormula.on('click', function(){ me.btnFormula.on('click', function(){
me.fireEvent('function:apply', [{name: 'more', origin: 'more'}]); me.fireEvent('function:apply', [{name: 'more', origin: 'more'}]);
}); });
me.btnCalculate.on('click', function () {
me.fireEvent('function:calculate', [{type: Asc.c_oAscCalculateType.All}]);
});
me.btnCalculate.menu.on('item:click', function (menu, item, e) {
me.fireEvent('function:calculate', [{type: item.value}]);
});
} }
return { return {
options: {}, options: {},
@ -214,6 +220,18 @@ define([
Common.Utils.injectComponent($host.find('#slot-btn-more'), this.btnMore); Common.Utils.injectComponent($host.find('#slot-btn-more'), this.btnMore);
this.lockedControls.push(this.btnMore); this.lockedControls.push(this.btnMore);
this.btnCalculate = new Common.UI.Button({
cls: 'btn-toolbar x-huge icon-top',
iconCls: 'btn-calculation',
caption: this.txtCalculation,
split: true,
menu: true,
disabled: true,
lock: [_set.editCell, _set.selRangeEdit, _set.lostConnect, _set.coAuth]
});
Common.Utils.injectComponent($host.find('#slot-btn-calculate'), this.btnCalculate);
this.lockedControls.push(this.btnCalculate);
Common.NotificationCenter.on('app:ready', this.onAppReady.bind(this)); Common.NotificationCenter.on('app:ready', this.onAppReady.bind(this));
}, },
@ -226,6 +244,17 @@ define([
(new Promise(function (accept, reject) { (new Promise(function (accept, reject) {
accept(); accept();
})).then(function(){ })).then(function(){
me.btnCalculate.updateHint([me.tipCalculateTheEntireWorkbook + Common.Utils.String.platformKey('F9'), me.tipCalculate]);
var _menu = new Common.UI.Menu({
items: [
{caption: me.textCalculateWorkbook, value: Asc.c_oAscCalculateType.All},
{caption: me.textCalculateCurrentSheet, value: Asc.c_oAscCalculateType.ActiveSheet},
//{caption: '--'},
//{caption: me.textAutomatic, value: '', toggleGroup: 'menuCalcMode', checkable: true, checked: true},
//{caption: me.textManual, value: '', toggleGroup: 'menuCalcMode', checkable: true, checked: false}
]
});
me.btnCalculate.setMenu(_menu);
setEvents.call(me); setEvents.call(me);
}); });
}, },
@ -480,7 +509,14 @@ define([
txtAdditional: 'Additional', txtAdditional: 'Additional',
txtFormula: 'Function', txtFormula: 'Function',
txtFormulaTip: 'Insert function', txtFormulaTip: 'Insert function',
txtMore: 'More functions' txtMore: 'More functions',
txtCalculation: 'Calculation',
tipCalculate: 'Calculate',
textCalculateWorkbook: 'Calculate workbook',
textCalculateCurrentSheet: 'Calculate current sheet',
textAutomatic: 'Automatic',
textManual: 'Manual',
tipCalculateTheEntireWorkbook: 'Calculate the entire workbook'
} }
}()), SSE.Views.FormulaTab || {})); }()), SSE.Views.FormulaTab || {}));
}); });

View file

@ -146,7 +146,8 @@ define([
cls : 'input-group-nr', cls : 'input-group-nr',
scroller : { scroller : {
suppressScrollX: true suppressScrollX: true
} },
search: true
}); });
this.btnToDictionary = new Common.UI.Button({ this.btnToDictionary = new Common.UI.Button({

View file

@ -751,6 +751,7 @@
"SSE.Controllers.Main.warnNoLicense": "This version of %1 editors has certain limitations for concurrent connections to the document server.<br>If you need more please consider purchasing a commercial license.", "SSE.Controllers.Main.warnNoLicense": "This version of %1 editors has certain limitations for concurrent connections to the document server.<br>If you need more please consider purchasing a commercial license.",
"SSE.Controllers.Main.warnNoLicenseUsers": "This version of %1 editors has certain limitations for concurrent users.<br>If you need more please consider purchasing a commercial license.", "SSE.Controllers.Main.warnNoLicenseUsers": "This version of %1 editors has certain limitations for concurrent users.<br>If you need more please consider purchasing a commercial license.",
"SSE.Controllers.Main.warnProcessRightsChange": "You have been denied the right to edit the file.", "SSE.Controllers.Main.warnProcessRightsChange": "You have been denied the right to edit the file.",
"SSE.Controllers.Main.errorFileSizeExceed": "The file size exceeds the limitation set for your server.<br>Please contact your Document Server administrator for details.",
"SSE.Controllers.Print.strAllSheets": "All Sheets", "SSE.Controllers.Print.strAllSheets": "All Sheets",
"SSE.Controllers.Print.textWarning": "Warning", "SSE.Controllers.Print.textWarning": "Warning",
"SSE.Controllers.Print.txtCustom": "Custom", "SSE.Controllers.Print.txtCustom": "Custom",
@ -1633,6 +1634,13 @@
"SSE.Views.FormulaTab.txtFormulaTip": "Insert function", "SSE.Views.FormulaTab.txtFormulaTip": "Insert function",
"SSE.Views.FormulaTab.txtMore": "More functions", "SSE.Views.FormulaTab.txtMore": "More functions",
"SSE.Views.FormulaTab.txtRecent": "Recently used", "SSE.Views.FormulaTab.txtRecent": "Recently used",
"SSE.Views.FormulaTab.txtCalculation": "Calculation",
"SSE.Views.FormulaTab.tipCalculate": "Calculate",
"SSE.Views.FormulaTab.textCalculateWorkbook": "Calculate workbook",
"SSE.Views.FormulaTab.textCalculateCurrentSheet": "Calculate current sheet",
"SSE.Views.FormulaTab.textAutomatic": "Automatic",
"SSE.Views.FormulaTab.textManual": "Manual",
"SSE.Views.FormulaTab.tipCalculateTheEntireWorkbook": "Calculate the entire workbook",
"SSE.Views.GroupDialog.cancelButtonText": "Cancel", "SSE.Views.GroupDialog.cancelButtonText": "Cancel",
"SSE.Views.GroupDialog.okButtonText": "OK", "SSE.Views.GroupDialog.okButtonText": "OK",
"SSE.Views.GroupDialog.textColumns": "Columns", "SSE.Views.GroupDialog.textColumns": "Columns",

View file

@ -1034,6 +1034,10 @@ define([
config.msg = this.errorFrmlMaxTextLength; config.msg = this.errorFrmlMaxTextLength;
break; break;
case Asc.c_oAscError.ID.ConvertationOpenLimitError:
config.msg = this.errorFileSizeExceed;
break;
default: default:
config.msg = this.errorDefaultMessage.replace('%1', id); config.msg = this.errorDefaultMessage.replace('%1', id);
break; break;
@ -1615,7 +1619,8 @@ define([
textPaidFeature: 'Paid feature', textPaidFeature: 'Paid feature',
textCustomLoader: 'Please note that according to the terms of the license you are not entitled to change the loader.<br>Please contact our Sales Department to get a quote.', textCustomLoader: 'Please note that according to the terms of the license you are not entitled to change the loader.<br>Please contact our Sales Department to get a quote.',
errorFrmlMaxTextLength: 'Text values in formulas are limited to 255 characters.<br>Use the CONCATENATE function or concatenation operator (&)', errorFrmlMaxTextLength: 'Text values in formulas are limited to 255 characters.<br>Use the CONCATENATE function or concatenation operator (&)',
waitText: 'Please, wait...' waitText: 'Please, wait...',
errorFileSizeExceed: 'The file size exceeds the limitation set for your server.<br>Please contact your Document Server administrator for details.'
} }
})(), SSE.Controllers.Main || {})) })(), SSE.Controllers.Main || {}))
}); });

View file

@ -284,6 +284,7 @@
"SSE.Controllers.Main.warnNoLicense": "This version of %1 editors has certain limitations for concurrent connections to the document server.<br>If you need more please consider purchasing a commercial license.", "SSE.Controllers.Main.warnNoLicense": "This version of %1 editors has certain limitations for concurrent connections to the document server.<br>If you need more please consider purchasing a commercial license.",
"SSE.Controllers.Main.warnNoLicenseUsers": "This version of %1 editors has certain limitations for concurrent users.<br>If you need more please consider purchasing a commercial license.", "SSE.Controllers.Main.warnNoLicenseUsers": "This version of %1 editors has certain limitations for concurrent users.<br>If you need more please consider purchasing a commercial license.",
"SSE.Controllers.Main.warnProcessRightsChange": "You have been denied the right to edit the file.", "SSE.Controllers.Main.warnProcessRightsChange": "You have been denied the right to edit the file.",
"SSE.Controllers.Main.errorFileSizeExceed": "The file size exceeds the limitation set for your server.<br>Please contact your Document Server administrator for details.",
"SSE.Controllers.Search.textNoTextFound": "Text not found", "SSE.Controllers.Search.textNoTextFound": "Text not found",
"SSE.Controllers.Search.textReplaceAll": "Replace All", "SSE.Controllers.Search.textReplaceAll": "Replace All",
"SSE.Controllers.Settings.notcriticalErrorTitle": "Warning", "SSE.Controllers.Settings.notcriticalErrorTitle": "Warning",