commit
dfa8cbd80d
|
@ -866,7 +866,8 @@
|
||||||
path += app + "/";
|
path += app + "/";
|
||||||
path += (config.type === "mobile" || isSafari_mobile)
|
path += (config.type === "mobile" || isSafari_mobile)
|
||||||
? "mobile"
|
? "mobile"
|
||||||
: (config.type === "embedded" || (app=='documenteditor') && config.document.permissions && (config.document.permissions.fillForms===true) && (config.document.permissions.edit === false) && (config.editorConfig.mode !== 'view'))
|
: (config.type === "embedded" || (app=='documenteditor') && config.document && config.document.permissions && (config.document.permissions.fillForms===true) &&
|
||||||
|
(config.document.permissions.edit === false) && (config.document.permissions.review !== true) && (config.editorConfig.mode !== 'view'))
|
||||||
? "embed"
|
? "embed"
|
||||||
: "main";
|
: "main";
|
||||||
|
|
||||||
|
|
|
@ -641,6 +641,14 @@ Common.Utils.String = new (function() {
|
||||||
var nTrailingChar = 0xDC00 | (nUnicode & 0x3FF);
|
var nTrailingChar = 0xDC00 | (nUnicode & 0x3FF);
|
||||||
return String.fromCharCode(nLeadingChar) + String.fromCharCode(nTrailingChar);
|
return String.fromCharCode(nLeadingChar) + String.fromCharCode(nTrailingChar);
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
fixedDigits: function(num, digits, fill) {
|
||||||
|
(fill===undefined) && (fill = '0');
|
||||||
|
var strfill = "",
|
||||||
|
str = num.toString();
|
||||||
|
for (var i=str.length; i<digits; i++) strfill += fill;
|
||||||
|
return strfill + str;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})();
|
})();
|
||||||
|
|
|
@ -99,7 +99,7 @@
|
||||||
'<div class="separator horizontal"></div>',
|
'<div class="separator horizontal"></div>',
|
||||||
'<div class="footer right">',
|
'<div class="footer right">',
|
||||||
'<button class="btn normal dlg-btn" result="replace">'+this.txtBtnReplace+'</button>',
|
'<button class="btn normal dlg-btn" result="replace">'+this.txtBtnReplace+'</button>',
|
||||||
'<button class="btn normal dlg-btn" result="replaceall" style="margin-left: 6px;">'+this.txtBtnReplaceAll+'</button>',
|
'<button class="btn normal dlg-btn" result="replaceall" style="margin-left: 6px;width: auto;">'+this.txtBtnReplaceAll+'</button>',
|
||||||
'<button class="btn normal dlg-btn iconic" result="back"><span class="icon img-commonctrl back"></span></button>',
|
'<button class="btn normal dlg-btn iconic" result="back"><span class="icon img-commonctrl back"></span></button>',
|
||||||
'<button class="btn normal dlg-btn iconic" result="next" style="margin-left: 6px;"><span class="icon img-commonctrl next"></span></button>',
|
'<button class="btn normal dlg-btn iconic" result="next" style="margin-left: 6px;"><span class="icon img-commonctrl next"></span></button>',
|
||||||
'</div>'
|
'</div>'
|
||||||
|
|
|
@ -49,6 +49,7 @@
|
||||||
.asc-loadmask-title {
|
.asc-loadmask-title {
|
||||||
.fontsize(@font-size-large);
|
.fontsize(@font-size-large);
|
||||||
margin: 0 8px 0 12px;
|
margin: 0 8px 0 12px;
|
||||||
|
white-space: pre-wrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.left-panel & {
|
.left-panel & {
|
||||||
|
|
|
@ -942,7 +942,7 @@ define([
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case LoadingDocument:
|
case LoadingDocument:
|
||||||
title = this.loadingDocumentTitleText;
|
title = this.loadingDocumentTitleText + ' ';
|
||||||
text = this.loadingDocumentTextText;
|
text = this.loadingDocumentTextText;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
@ -1246,7 +1246,7 @@ define([
|
||||||
onOpenDocument: function(progress) {
|
onOpenDocument: function(progress) {
|
||||||
var elem = document.getElementById('loadmask-text');
|
var elem = document.getElementById('loadmask-text');
|
||||||
var proc = (progress.asc_getCurrentFont() + progress.asc_getCurrentImage())/(progress.asc_getFontsCount() + progress.asc_getImagesCount());
|
var proc = (progress.asc_getCurrentFont() + progress.asc_getCurrentImage())/(progress.asc_getFontsCount() + progress.asc_getImagesCount());
|
||||||
proc = this.textLoadingDocument + ': ' + Math.min(Math.round(proc*100), 100) + '%';
|
proc = this.textLoadingDocument + ': ' + Common.Utils.String.fixedDigits(Math.min(Math.round(proc*100), 100), 3, " ") + "%";
|
||||||
elem ? elem.innerHTML = proc : this.loadMask && this.loadMask.setTitle(proc);
|
elem ? elem.innerHTML = proc : this.loadMask && this.loadMask.setTitle(proc);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -1227,8 +1227,12 @@ define([
|
||||||
|
|
||||||
onHorizontalAlign: function(type, btn, e) {
|
onHorizontalAlign: function(type, btn, e) {
|
||||||
this._state.pralign = undefined;
|
this._state.pralign = undefined;
|
||||||
if (this.api)
|
if (this.api) {
|
||||||
|
if (!btn.pressed) {
|
||||||
|
type = (type==1) ? 3 : 1;
|
||||||
|
}
|
||||||
this.api.put_PrAlign(type);
|
this.api.put_PrAlign(type);
|
||||||
|
}
|
||||||
|
|
||||||
Common.NotificationCenter.trigger('edit:complete', this.toolbar);
|
Common.NotificationCenter.trigger('edit:complete', this.toolbar);
|
||||||
Common.component.Analytics.trackEvent('ToolBar', 'Align');
|
Common.component.Analytics.trackEvent('ToolBar', 'Align');
|
||||||
|
|
|
@ -311,7 +311,6 @@ define([
|
||||||
cls: 'btn-toolbar',
|
cls: 'btn-toolbar',
|
||||||
iconCls: 'toolbar__icon btn-align-left',
|
iconCls: 'toolbar__icon btn-align-left',
|
||||||
enableToggle: true,
|
enableToggle: true,
|
||||||
allowDepress: false,
|
|
||||||
toggleGroup: 'alignGroup'
|
toggleGroup: 'alignGroup'
|
||||||
});
|
});
|
||||||
this.paragraphControls.push(this.btnAlignLeft);
|
this.paragraphControls.push(this.btnAlignLeft);
|
||||||
|
@ -321,7 +320,6 @@ define([
|
||||||
cls: 'btn-toolbar',
|
cls: 'btn-toolbar',
|
||||||
iconCls: 'toolbar__icon btn-align-center',
|
iconCls: 'toolbar__icon btn-align-center',
|
||||||
enableToggle: true,
|
enableToggle: true,
|
||||||
allowDepress: false,
|
|
||||||
toggleGroup: 'alignGroup'
|
toggleGroup: 'alignGroup'
|
||||||
});
|
});
|
||||||
this.paragraphControls.push(this.btnAlignCenter);
|
this.paragraphControls.push(this.btnAlignCenter);
|
||||||
|
@ -331,7 +329,6 @@ define([
|
||||||
cls: 'btn-toolbar',
|
cls: 'btn-toolbar',
|
||||||
iconCls: 'toolbar__icon btn-align-right',
|
iconCls: 'toolbar__icon btn-align-right',
|
||||||
enableToggle: true,
|
enableToggle: true,
|
||||||
allowDepress: false,
|
|
||||||
toggleGroup: 'alignGroup'
|
toggleGroup: 'alignGroup'
|
||||||
});
|
});
|
||||||
this.paragraphControls.push(this.btnAlignRight);
|
this.paragraphControls.push(this.btnAlignRight);
|
||||||
|
@ -341,12 +338,10 @@ define([
|
||||||
cls: 'btn-toolbar',
|
cls: 'btn-toolbar',
|
||||||
iconCls: 'toolbar__icon btn-align-just',
|
iconCls: 'toolbar__icon btn-align-just',
|
||||||
enableToggle: true,
|
enableToggle: true,
|
||||||
allowDepress: false,
|
|
||||||
toggleGroup: 'alignGroup'
|
toggleGroup: 'alignGroup'
|
||||||
});
|
});
|
||||||
this.paragraphControls.push(this.btnAlignJust);
|
this.paragraphControls.push(this.btnAlignJust);
|
||||||
|
|
||||||
|
|
||||||
this.btnDecLeftOffset = new Common.UI.Button({
|
this.btnDecLeftOffset = new Common.UI.Button({
|
||||||
id: 'id-toolbar-btn-decoffset',
|
id: 'id-toolbar-btn-decoffset',
|
||||||
cls: 'btn-toolbar',
|
cls: 'btn-toolbar',
|
||||||
|
|
|
@ -691,7 +691,7 @@ define([
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case LoadingDocument:
|
case LoadingDocument:
|
||||||
title = this.loadingDocumentTitleText;
|
title = this.loadingDocumentTitleText + ' ';
|
||||||
text = this.loadingDocumentTextText;
|
text = this.loadingDocumentTextText;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
@ -981,7 +981,7 @@ define([
|
||||||
onOpenDocument: function(progress) {
|
onOpenDocument: function(progress) {
|
||||||
var elem = document.getElementById('loadmask-text');
|
var elem = document.getElementById('loadmask-text');
|
||||||
var proc = (progress.asc_getCurrentFont() + progress.asc_getCurrentImage())/(progress.asc_getFontsCount() + progress.asc_getImagesCount());
|
var proc = (progress.asc_getCurrentFont() + progress.asc_getCurrentImage())/(progress.asc_getFontsCount() + progress.asc_getImagesCount());
|
||||||
proc = this.textLoadingDocument + ': ' + Math.min(Math.round(proc*100), 100) + '%';
|
proc = this.textLoadingDocument + ': ' + Common.Utils.String.fixedDigits(Math.min(Math.round(proc*100), 100), 3, " ") + "%";
|
||||||
elem ? elem.innerHTML = proc : this.loadMask && this.loadMask.setTitle(proc);
|
elem ? elem.innerHTML = proc : this.loadMask && this.loadMask.setTitle(proc);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -739,7 +739,7 @@ define([
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case LoadingDocument:
|
case LoadingDocument:
|
||||||
title = this.loadingDocumentTitleText;
|
title = this.loadingDocumentTitleText + ' ';
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
if (typeof action.id == 'string'){
|
if (typeof action.id == 'string'){
|
||||||
|
@ -1043,7 +1043,7 @@ define([
|
||||||
onOpenDocument: function(progress) {
|
onOpenDocument: function(progress) {
|
||||||
var elem = document.getElementById('loadmask-text');
|
var elem = document.getElementById('loadmask-text');
|
||||||
var proc = (progress.asc_getCurrentFont() + progress.asc_getCurrentImage())/(progress.asc_getFontsCount() + progress.asc_getImagesCount());
|
var proc = (progress.asc_getCurrentFont() + progress.asc_getCurrentImage())/(progress.asc_getFontsCount() + progress.asc_getImagesCount());
|
||||||
proc = this.textLoadingDocument + ': ' + Math.min(Math.round(proc*100), 100) + '%';
|
proc = this.textLoadingDocument + ': ' + Common.Utils.String.fixedDigits(Math.min(Math.round(proc*100), 100), 3, " ") + "%";
|
||||||
elem ? elem.innerHTML = proc : this.loadMask && this.loadMask.setTitle(proc);
|
elem ? elem.innerHTML = proc : this.loadMask && this.loadMask.setTitle(proc);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -1739,7 +1739,7 @@ define([
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!Common.Utils.ModalWindow.isVisible() || $('.asc-window.modal.alert[data-value=' + id + ']').length<1)
|
if (!Common.Utils.ModalWindow.isVisible() || $('.asc-window.modal.alert[data-value=' + id + ']').length<1)
|
||||||
Common.UI.alert(config).$window.attr('data-value', id);
|
setTimeout(function() {Common.UI.alert(config).$window.attr('data-value', id);}, 1);
|
||||||
|
|
||||||
(id!==undefined) && Common.component.Analytics.trackEvent('Internal Error', id.toString());
|
(id!==undefined) && Common.component.Analytics.trackEvent('Internal Error', id.toString());
|
||||||
},
|
},
|
||||||
|
|
|
@ -1419,6 +1419,8 @@ define([ 'text!spreadsheeteditor/main/app/template/ChartSettingsDlg.template'
|
||||||
this.cmbLegendPos.setValue(props.getLegendPos());
|
this.cmbLegendPos.setValue(props.getLegendPos());
|
||||||
|
|
||||||
this.updateDataLabels(this._state.ChartType, props.getDataLabelsPos());
|
this.updateDataLabels(this._state.ChartType, props.getDataLabelsPos());
|
||||||
|
this.cmbDataLabels.setDisabled(this._state.ChartType==Asc.c_oAscChartTypeSettings.surfaceNormal ||
|
||||||
|
this._state.ChartType == Asc.c_oAscChartTypeSettings.surfaceWireframe);
|
||||||
|
|
||||||
this.chSeriesName.setValue(this.chartSettings.getShowSerName(), true);
|
this.chSeriesName.setValue(this.chartSettings.getShowSerName(), true);
|
||||||
this.chCategoryName.setValue(this.chartSettings.getShowCatName(), true);
|
this.chCategoryName.setValue(this.chartSettings.getShowCatName(), true);
|
||||||
|
|
|
@ -232,8 +232,25 @@ define([
|
||||||
this.mnuChartTypePicker.selectRecord(record, true);
|
this.mnuChartTypePicker.selectRecord(record, true);
|
||||||
if (record) {
|
if (record) {
|
||||||
this.btnChartType.setIconCls('svgicon ' + 'chart-' + record.get('iconCls'));
|
this.btnChartType.setIconCls('svgicon ' + 'chart-' + record.get('iconCls'));
|
||||||
} else
|
} else {
|
||||||
this.btnChartType.setIconCls('svgicon');
|
var iconcls = '';
|
||||||
|
switch (this.currentChartType) {
|
||||||
|
case Asc.c_oAscChartTypeSettings.surfaceNormal:
|
||||||
|
iconcls = 'chart-surface-normal';
|
||||||
|
break;
|
||||||
|
case Asc.c_oAscChartTypeSettings.surfaceWireframe:
|
||||||
|
iconcls = 'chart-surface-wireframe';
|
||||||
|
break;
|
||||||
|
case Asc.c_oAscChartTypeSettings.contourNormal:
|
||||||
|
iconcls = 'chart-contour-wireframe';
|
||||||
|
break;
|
||||||
|
case Asc.c_oAscChartTypeSettings.contourWireframe:
|
||||||
|
iconcls = 'chart-contour-wireframe';
|
||||||
|
break;
|
||||||
|
|
||||||
|
}
|
||||||
|
this.btnChartType.setIconCls('svgicon ' + iconcls);
|
||||||
|
}
|
||||||
this.seriesList.on('item:add', _.bind(this.addControls, this));
|
this.seriesList.on('item:add', _.bind(this.addControls, this));
|
||||||
this.seriesList.on('item:change', _.bind(this.addControls, this));
|
this.seriesList.on('item:change', _.bind(this.addControls, this));
|
||||||
this.ShowHideSettings(this.currentChartType);
|
this.ShowHideSettings(this.currentChartType);
|
||||||
|
|
Loading…
Reference in a new issue