diff --git a/apps/api/documents/api.js b/apps/api/documents/api.js index adbc4a6d9..179c2eeb9 100644 --- a/apps/api/documents/api.js +++ b/apps/api/documents/api.js @@ -557,7 +557,7 @@ }; DocsAPI.DocEditor.version = function() { - return '4.2.0'; + return '4.2.4'; }; MessageDispatcher = function(fn, scope) { diff --git a/apps/common/embed/lib/controller/modals.js b/apps/common/embed/lib/controller/modals.js index d31e41f67..f85f39e92 100644 --- a/apps/common/embed/lib/controller/modals.js +++ b/apps/common/embed/lib/controller/modals.js @@ -53,7 +53,7 @@ $dlgShare = common.view.modals.create('share'); var _encoded = encodeURIComponent(appConfig.shareUrl); - var _mailto = 'mailto:?subject=I have shared a document with you: ' + appConfig.docTitle + '&body=I have shared a document with you: ' + _encoded + '"'; + var _mailto = 'mailto:?subject=I have shared a document with you: ' + appConfig.docTitle + '&body=I have shared a document with you: ' + _encoded; $dlgShare.find('#btn-copyshort').on('click', copytext.bind(this, $dlgShare.find('#id-short-url'))); $dlgShare.find('.share-buttons > span').on('click', function(e){ diff --git a/apps/common/main/lib/component/Button.js b/apps/common/main/lib/component/Button.js index 3f251628c..61968da31 100644 --- a/apps/common/main/lib/component/Button.js +++ b/apps/common/main/lib/component/Button.js @@ -430,10 +430,11 @@ define([ isGroup && decorateBtn(el.children('button')); } - if (disabled) { + if (disabled || !Common.Utils.isGecko) { var tip = this.cmpEl.data('bs.tooltip'); if (tip) { - tip.hide(); + disabled && tip.hide(); + !Common.Utils.isGecko && (tip.enabled = !disabled); } } } @@ -466,8 +467,10 @@ define([ var cmpEl = this.cmpEl, modalParents = cmpEl.closest('.asc-window'); + if (cmpEl.data('bs.tooltip')) + cmpEl.removeData('bs.tooltip'); cmpEl.attr('data-toggle', 'tooltip'); - cmpEl.tooltip('destroy').tooltip({ + cmpEl.tooltip({ title : hint, placement : this.options.hintAnchor || 'cursor' }); diff --git a/apps/common/main/lib/component/DataView.js b/apps/common/main/lib/component/DataView.js index b9e68a11f..8ece277ca 100644 --- a/apps/common/main/lib/component/DataView.js +++ b/apps/common/main/lib/component/DataView.js @@ -84,7 +84,9 @@ define([ defaults: function() { return { id: Common.UI.getId(), - caption: '' + caption: '', + inline: false, + headername: undefined } } }); @@ -99,7 +101,8 @@ define([ id: Common.UI.getId(), selected: false, allowSelected: true, - value: null + value: null, + disabled: false } } }); @@ -140,6 +143,7 @@ define([ el.off('click').on('click', _.bind(this.onClick, this)); el.off('dblclick').on('dblclick', _.bind(this.onDblClick, this)); el.off('contextmenu').on('contextmenu', _.bind(this.onContextMenu, this)); + el.toggleClass('disabled', this.model.get('disabled')); if (!_.isUndefined(this.model.get('cls'))) el.addClass(this.model.get('cls')); @@ -157,10 +161,14 @@ define([ }, onClick: function(e) { + if (this.model.get('disabled')) return false; + this.trigger('click', this, this.model, e); }, onDblClick: function(e) { + if (this.model.get('disabled')) return false; + this.trigger('dblclick', this, this.model, e); }, @@ -190,10 +198,15 @@ define([ template: _.template([ '
', + '', + ' | ', + '
', + '', + '', + ' | ', + '
', + '', + ' | ', + '
', + '', + ' | ', + '
',
+ ' ',
+ '',
+ '',
+ ' ','',
+ '',
+ '',
+ ' ',
+ ' | ',
+ '
', + '', + '', + ' | ', + '
', + '', + '', + ' | ', + '
', + '', + ' | ', + '
', + '', + '', + ' | ', + '
+ + | +|
+ + | ++ + | +
+ + | +|
+ + | ++ + | +
+ | |
diff --git a/apps/spreadsheeteditor/main/app/view/CellEditor.js b/apps/spreadsheeteditor/main/app/view/CellEditor.js
index 2e4671261..43f05f074 100644
--- a/apps/spreadsheeteditor/main/app/view/CellEditor.js
+++ b/apps/spreadsheeteditor/main/app/view/CellEditor.js
@@ -102,7 +102,6 @@ define([
cellNameDisabled: function(disabled){
(disabled) ? this.$cellname.attr('disabled', 'disabled') : this.$cellname.removeAttr('disabled');
- this.$btnfunc.toggleClass('disabled', disabled);
this.btnNamedRanges.setDisabled(disabled);
},
diff --git a/apps/spreadsheeteditor/main/app/view/CellRangeDialog.js b/apps/spreadsheeteditor/main/app/view/CellRangeDialog.js
index 9654c6ce7..6a16694b1 100644
--- a/apps/spreadsheeteditor/main/app/view/CellRangeDialog.js
+++ b/apps/spreadsheeteditor/main/app/view/CellRangeDialog.js
@@ -109,20 +109,23 @@ define([
this.inputRange.setValue(settings.range ? settings.range : '');
+ if (settings.type===undefined)
+ settings.type = Asc.c_oAscSelectionDialogType.Chart;
+
if (settings.api) {
me.api = settings.api;
- me.api.asc_setSelectionDialogMode(Asc.c_oAscSelectionDialogType.Chart, settings.range ? settings.range : '');
+ me.api.asc_setSelectionDialogMode(settings.type, settings.range ? settings.range : '');
me.api.asc_unregisterCallback('asc_onSelectionRangeChanged', _.bind(me.onApiRangeChanged, me));
me.api.asc_registerCallback('asc_onSelectionRangeChanged', _.bind(me.onApiRangeChanged, me));
- Common.NotificationCenter.trigger('cells:range', Asc.c_oAscSelectionDialogType.Chart);
+ Common.NotificationCenter.trigger('cells:range', settings.type);
}
me.inputRange.validation = function(value) {
if (settings.validation) {
return settings.validation.call(me, value);
} else {
- var isvalid = me.api.asc_checkDataRange(Asc.c_oAscSelectionDialogType.Chart, value, false);
+ var isvalid = me.api.asc_checkDataRange(settings.type, value, false);
return (isvalid==Asc.c_oAscError.ID.DataRangeError) ? me.txtInvalidRange : true;
}
};
diff --git a/apps/spreadsheeteditor/main/app/view/ChartSettings.js b/apps/spreadsheeteditor/main/app/view/ChartSettings.js
index a422d2bb1..0afaa942c 100644
--- a/apps/spreadsheeteditor/main/app/view/ChartSettings.js
+++ b/apps/spreadsheeteditor/main/app/view/ChartSettings.js
@@ -654,7 +654,7 @@ define([
cls : 'btn-large-dataview',
iconCls : 'item-chartlist bar-normal',
menu : new Common.UI.Menu({
- style: 'width: 560px;',
+ style: 'width: 435px; padding-top: 12px;',
items: [
{ template: _.template('') }
]
@@ -665,15 +665,15 @@ define([
me.mnuChartTypePicker = new Common.UI.DataView({
el: $('#id-chart-menu-type'),
parentMenu: btn.menu,
- restoreHeight: 411,
+ restoreHeight: 421,
groups: new Common.UI.DataViewGroupStore([
{ id: 'menu-chart-group-bar', caption: me.textColumn },
{ id: 'menu-chart-group-line', caption: me.textLine },
{ id: 'menu-chart-group-pie', caption: me.textPie },
{ id: 'menu-chart-group-hbar', caption: me.textBar },
- { id: 'menu-chart-group-area', caption: me.textArea },
- { id: 'menu-chart-group-scatter', caption: me.textPoint },
- { id: 'menu-chart-group-stock', caption: me.textStock }
+ { id: 'menu-chart-group-area', caption: me.textArea, inline: true },
+ { id: 'menu-chart-group-scatter', caption: me.textPoint, inline: true },
+ { id: 'menu-chart-group-stock', caption: me.textStock, inline: true }
]),
store: new Common.UI.DataViewStore([
{ group: 'menu-chart-group-bar', type: Asc.c_oAscChartTypeSettings.barNormal, iconCls: 'column-normal', selected: true},
@@ -762,9 +762,9 @@ define([
cls : 'btn-large-dataview',
iconCls : 'item-chartlist spark-column',
menu : new Common.UI.Menu({
- style: 'width: 210px;',
+ style: 'width: 200px; padding-top: 12px;',
items: [
- { template: _.template('') }
+ { template: _.template('') }
]
})
});
@@ -772,17 +772,17 @@ define([
me.mnuSparkTypePicker = new Common.UI.DataView({
el: $('#id-spark-menu-type'),
parentMenu: btn.menu,
- restoreHeight: 200,
+ restoreHeight: 120,
allowScrollbar: false,
groups: new Common.UI.DataViewGroupStore([
- { id: 'menu-chart-group-sparkcolumn', caption: me.textColumnSpark },
- { id: 'menu-chart-group-sparkline', caption: me.textLineSpark },
- { id: 'menu-chart-group-sparkwin', caption: me.textWinLossSpark }
+ { id: 'menu-chart-group-sparkcolumn', inline: true },
+ { id: 'menu-chart-group-sparkline', inline: true },
+ { id: 'menu-chart-group-sparkwin', inline: true }
]),
store: new Common.UI.DataViewStore([
- { group: 'menu-chart-group-sparkcolumn', type: Asc.c_oAscSparklineType.Column, allowSelected: true, iconCls: 'spark-column'},
- { group: 'menu-chart-group-sparkline', type: Asc.c_oAscSparklineType.Line, allowSelected: true, iconCls: 'spark-line'},
- { group: 'menu-chart-group-sparkwin', type: Asc.c_oAscSparklineType.Stacked, allowSelected: true, iconCls: 'spark-win'}
+ { group: 'menu-chart-group-sparkcolumn', type: Asc.c_oAscSparklineType.Column, allowSelected: true, iconCls: 'spark-column', tip: me.textColumnSpark},
+ { group: 'menu-chart-group-sparkline', type: Asc.c_oAscSparklineType.Line, allowSelected: true, iconCls: 'spark-line', tip: me.textLineSpark},
+ { group: 'menu-chart-group-sparkwin', type: Asc.c_oAscSparklineType.Stacked, allowSelected: true, iconCls: 'spark-win', tip: me.textWinLossSpark}
]),
itemTemplate: _.template('')
});
@@ -979,7 +979,8 @@ define([
win.setSettings({
api : me.api,
range : props.getRange(),
- validation: validation
+ validation: validation,
+ type : Asc.c_oAscSelectionDialogType.Chart
});
}
},
@@ -1305,13 +1306,13 @@ define([
textHeight: 'Height',
textEditData: 'Edit Data and Location',
textChartType: 'Change Chart Type',
- textLine: 'Line Chart',
- textColumn: 'Column Chart',
- textBar: 'Bar Chart',
- textArea: 'Area Chart',
- textPie: 'Pie Chart',
- textPoint: 'XY (Scatter) Chart',
- textStock: 'Stock Chart',
+ textLine: 'Line',
+ textColumn: 'Column',
+ textBar: 'Bar',
+ textArea: 'Area',
+ textPie: 'Pie',
+ textPoint: 'XY (Scatter)',
+ textStock: 'Stock',
textStyle: 'Style',
textAdvanced: 'Show advanced settings',
strSparkColor: 'Color',
diff --git a/apps/spreadsheeteditor/main/app/view/ChartSettingsDlg.js b/apps/spreadsheeteditor/main/app/view/ChartSettingsDlg.js
index 51c240162..92b0b4316 100644
--- a/apps/spreadsheeteditor/main/app/view/ChartSettingsDlg.js
+++ b/apps/spreadsheeteditor/main/app/view/ChartSettingsDlg.js
@@ -94,6 +94,8 @@ define([ 'text!spreadsheeteditor/main/app/template/ChartSettingsDlg.template'
this.horAxisProps = null;
this.currentAxisProps = null;
this.dataRangeValid = '';
+ this.sparkDataRangeValid = '';
+ this.dataLocationRangeValid = '';
this.currentChartType = this._state.ChartType;
this.storageName = (this.isChart) ? 'sse-chart-settings-adv-category' : 'sse-spark-settings-adv-category';
},
@@ -125,7 +127,7 @@ define([ 'text!spreadsheeteditor/main/app/template/ChartSettingsDlg.template'
cls : 'btn-large-dataview',
iconCls : 'item-chartlist bar-normal',
menu : new Common.UI.Menu({
- style: 'width: 560px;',
+ style: 'width: 435px; padding-top: 12px;',
additionalAlign: menuAddAlign,
items: [
{ template: _.template('') }
@@ -136,15 +138,15 @@ define([ 'text!spreadsheeteditor/main/app/template/ChartSettingsDlg.template'
me.mnuChartTypePicker = new Common.UI.DataView({
el: $('#id-chart-dlg-menu-type'),
parentMenu: btn.menu,
- restoreHeight: 411,
+ restoreHeight: 421,
groups: new Common.UI.DataViewGroupStore([
{ id: 'menu-chart-group-bar', caption: me.textColumn },
{ id: 'menu-chart-group-line', caption: me.textLine },
{ id: 'menu-chart-group-pie', caption: me.textPie },
{ id: 'menu-chart-group-hbar', caption: me.textBar },
- { id: 'menu-chart-group-area', caption: me.textArea },
- { id: 'menu-chart-group-scatter', caption: me.textPoint },
- { id: 'menu-chart-group-stock', caption: me.textStock }
+ { id: 'menu-chart-group-area', caption: me.textArea, inline: true },
+ { id: 'menu-chart-group-scatter', caption: me.textPoint, inline: true },
+ { id: 'menu-chart-group-stock', caption: me.textStock, inline: true }
]),
store: new Common.UI.DataViewStore([
{ group: 'menu-chart-group-bar', type: Asc.c_oAscChartTypeSettings.barNormal, iconCls: 'column-normal', selected: true},
@@ -782,10 +784,10 @@ define([ 'text!spreadsheeteditor/main/app/template/ChartSettingsDlg.template'
cls : 'btn-large-dataview',
iconCls : 'item-chartlist spark-column',
menu : new Common.UI.Menu({
- style: 'width: 210px;',
+ style: 'width: 200px; padding-top: 12px;',
additionalAlign: menuAddAlign,
items: [
- { template: _.template('') }
+ { template: _.template('') }
]
})
});
@@ -793,16 +795,16 @@ define([ 'text!spreadsheeteditor/main/app/template/ChartSettingsDlg.template'
me.mnuSparkTypePicker = new Common.UI.DataView({
el: $('#id-spark-dlg-menu-type'),
parentMenu: btn.menu,
- restoreHeight: 200,
+ restoreHeight: 120,
groups: new Common.UI.DataViewGroupStore([
- { id: 'menu-chart-group-sparkcolumn', caption: me.textColumnSpark },
- { id: 'menu-chart-group-sparkline', caption: me.textLineSpark },
- { id: 'menu-chart-group-sparkwin', caption: me.textWinLossSpark }
+ { id: 'menu-chart-group-sparkcolumn', inline: true },
+ { id: 'menu-chart-group-sparkline', inline: true },
+ { id: 'menu-chart-group-sparkwin', inline: true }
]),
store: new Common.UI.DataViewStore([
- { group: 'menu-chart-group-sparkcolumn', type: Asc.c_oAscSparklineType.Column, allowSelected: true, iconCls: 'spark-column'},
- { group: 'menu-chart-group-sparkline', type: Asc.c_oAscSparklineType.Line, allowSelected: true, iconCls: 'spark-line'},
- { group: 'menu-chart-group-sparkwin', type: Asc.c_oAscSparklineType.Stacked, allowSelected: true, iconCls: 'spark-win'}
+ { group: 'menu-chart-group-sparkcolumn', type: Asc.c_oAscSparklineType.Column, allowSelected: true, iconCls: 'spark-column', tip: me.textColumnSpark},
+ { group: 'menu-chart-group-sparkline', type: Asc.c_oAscSparklineType.Line, allowSelected: true, iconCls: 'spark-line', tip: me.textLineSpark},
+ { group: 'menu-chart-group-sparkwin', type: Asc.c_oAscSparklineType.Stacked, allowSelected: true, iconCls: 'spark-win', tip: me.textWinLossSpark}
]),
itemTemplate: _.template('')
});
@@ -840,7 +842,7 @@ define([ 'text!spreadsheeteditor/main/app/template/ChartSettingsDlg.template'
labelText: this.textSingle,
name: 'asc-radio-sparkline'
});
-
+ */
this.txtSparkDataRange = new Common.UI.InputField({
el : $('#spark-dlg-txt-range'),
name : 'range',
@@ -853,7 +855,7 @@ define([ 'text!spreadsheeteditor/main/app/template/ChartSettingsDlg.template'
this.btnSelectSparkData = new Common.UI.Button({
el: $('#spark-dlg-btn-data')
});
-// this.btnSelectSparkData.on('click', _.bind(this.onSelectData, this));
+ this.btnSelectSparkData.on('click', _.bind(this.onSelectSparkData, this));
this.txtSparkDataLocation = new Common.UI.InputField({
el : $('#spark-dlg-txt-location'),
@@ -865,11 +867,10 @@ define([ 'text!spreadsheeteditor/main/app/template/ChartSettingsDlg.template'
});
this.btnSelectLocationData = new Common.UI.Button({
- el: $('#spark-dlg-btn-data')
+ el: $('#spark-dlg-btn-location-data')
});
-// this.btnSelectLocationData.on('click', _.bind(this.onSelectData, this));
- */
-
+ this.btnSelectLocationData.on('click', _.bind(this.onSelectLocationData, this));
+
this._arrEmptyCells = [
{ value: Asc.c_oAscEDispBlanksAs.Gap, displayValue: this.textGaps },
{ value: Asc.c_oAscEDispBlanksAs.Zero, displayValue: this.textZero },
@@ -1371,6 +1372,30 @@ define([ 'text!spreadsheeteditor/main/app/template/ChartSettingsDlg.template'
this.spnSparkMinValue.setValue((props.asc_getManualMin() !== null) ? props.asc_getManualMin() : '', true);
this.spnSparkMaxValue.setValue((props.asc_getManualMax() !== null) ? props.asc_getManualMax() : '', true);
+ var value = props.asc_getDataRanges();
+ if (value && value.length==2) {
+ this.txtSparkDataRange.setValue((value[0]) ? value[0] : '');
+ this.txtSparkDataLocation.setValue((value[1]) ? value[1] : '');
+
+ this.sparkDataRangeValid = value[0];
+ this.txtSparkDataRange.validation = function(value) {
+ if (_.isEmpty(value))
+ return true;
+
+ var isvalid = me.api.asc_checkDataRange(Asc.c_oAscSelectionDialogType.Chart, value, false);
+ return (isvalid==Asc.c_oAscError.ID.DataRangeError) ? me.textInvalidRange : true;
+ };
+
+ this.dataLocationRangeValid = value[1];
+ this.txtSparkDataLocation.validation = function(value) {
+ if (_.isEmpty(value))
+ return true;
+
+ var isvalid = me.api.asc_checkDataRange(Asc.c_oAscSelectionDialogType.FormatTable, value, false);
+ return (isvalid==Asc.c_oAscError.ID.DataRangeError) ? me.textInvalidRange : true;
+ };
+ }
+
this._changedProps = new Asc.sparklineGroup();
this._noApply = false;
}
@@ -1472,7 +1497,8 @@ define([ 'text!spreadsheeteditor/main/app/template/ChartSettingsDlg.template'
win.setSettings({
api : me.api,
isRows : (me.cmbDataDirect.getValue()==0),
- range : (!_.isEmpty(me.txtDataRange.getValue()) && (me.txtDataRange.checkValidate()==true)) ? me.txtDataRange.getValue() : me.dataRangeValid
+ range : (!_.isEmpty(me.txtDataRange.getValue()) && (me.txtDataRange.checkValidate()==true)) ? me.txtDataRange.getValue() : me.dataRangeValid,
+ type : Asc.c_oAscSelectionDialogType.Chart
});
}
},
@@ -1489,6 +1515,63 @@ define([ 'text!spreadsheeteditor/main/app/template/ChartSettingsDlg.template'
}
},
+ onSelectSparkData: function() {
+ var me = this;
+ if (me.api) {
+ var handlerDlg = function(dlg, result) {
+ if (result == 'ok') {
+ me.sparkDataRangeValid = dlg.getSettings();
+ me.txtSparkDataRange.setValue(me.sparkDataRangeValid);
+ me.txtSparkDataRange.checkValidate();
+ }
+ };
+
+ var win = new SSE.Views.CellRangeDialog({
+ handler: handlerDlg
+ }).on('close', function() {
+ me.show();
+ });
+
+ var xy = me.$window.offset();
+ me.hide();
+ win.show(xy.left + 160, xy.top + 125);
+ win.setSettings({
+ api : me.api,
+ range : (!_.isEmpty(me.txtSparkDataRange.getValue()) && (me.txtSparkDataRange.checkValidate()==true)) ? me.txtSparkDataRange.getValue() : me.sparkDataRangeValid,
+ type : Asc.c_oAscSelectionDialogType.Chart
+ });
+ }
+ },
+
+
+ onSelectLocationData: function() {
+ var me = this;
+ if (me.api) {
+ var handlerDlg = function(dlg, result) {
+ if (result == 'ok') {
+ me.dataLocationRangeValid = dlg.getSettings();
+ me.txtSparkDataLocation.setValue(me.dataLocationRangeValid);
+ me.txtSparkDataLocation.checkValidate();
+ }
+ };
+
+ var win = new SSE.Views.CellRangeDialog({
+ handler: handlerDlg
+ }).on('close', function() {
+ me.show();
+ });
+
+ var xy = me.$window.offset();
+ me.hide();
+ win.show(xy.left + 160, xy.top + 125);
+ win.setSettings({
+ api : me.api,
+ range : (!_.isEmpty(me.txtSparkDataLocation.getValue()) && (me.txtSparkDataLocation.checkValidate()==true)) ? me.txtSparkDataLocation.getValue() : me.dataLocationRangeValid,
+ type : Asc.c_oAscSelectionDialogType.FormatTable
+ });
+ }
+ },
+
show: function() {
Common.Views.AdvancedSettingsWindow.prototype.show.apply(this, arguments);
@@ -1511,7 +1594,7 @@ define([ 'text!spreadsheeteditor/main/app/template/ChartSettingsDlg.template'
textBar: 'Bar',
textArea: 'Area',
textPie: 'Pie',
- textPoint: 'Point',
+ textPoint: 'XY (Scatter)',
textStock: 'Stock',
textDataRows: 'in rows',
textDataColumns: 'in columns',
diff --git a/apps/spreadsheeteditor/main/app/view/FileMenu.js b/apps/spreadsheeteditor/main/app/view/FileMenu.js
index ff7b248c5..0c58d1bb3 100644
--- a/apps/spreadsheeteditor/main/app/view/FileMenu.js
+++ b/apps/spreadsheeteditor/main/app/view/FileMenu.js
@@ -162,18 +162,15 @@ define([
);
var me = this;
- this.panels = {};
- require(['spreadsheeteditor/main/app/view/FileMenuPanels'], function(){
- me.panels = {
- 'saveas' : (new SSE.Views.FileMenuPanels.ViewSaveAs({menu:me})).render(),
- 'opts' : (new SSE.Views.FileMenuPanels.Settings({menu:me})).render(),
- 'info' : (new SSE.Views.FileMenuPanels.DocumentInfo({menu:me})).render(),
- 'rights' : (new SSE.Views.FileMenuPanels.DocumentRights({menu:me})).render(),
- 'help' : (new SSE.Views.FileMenuPanels.Help({menu:me})).render()
- };
+ me.panels = {
+ 'saveas' : (new SSE.Views.FileMenuPanels.ViewSaveAs({menu:me})).render(),
+ 'opts' : (new SSE.Views.FileMenuPanels.Settings({menu:me})).render(),
+ 'info' : (new SSE.Views.FileMenuPanels.DocumentInfo({menu:me})).render(),
+ 'rights' : (new SSE.Views.FileMenuPanels.DocumentRights({menu:me})).render(),
+ 'help' : (new SSE.Views.FileMenuPanels.Help({menu:me})).render()
+ };
- me.$el.find('.content-box').hide();
- });
+ me.$el.find('.content-box').hide();
return this;
},
diff --git a/apps/spreadsheeteditor/main/app/view/FileMenuPanels.js b/apps/spreadsheeteditor/main/app/view/FileMenuPanels.js
index d55744713..0551bcda4 100644
--- a/apps/spreadsheeteditor/main/app/view/FileMenuPanels.js
+++ b/apps/spreadsheeteditor/main/app/view/FileMenuPanels.js
@@ -652,7 +652,7 @@ define([
this.lblAutosave.text(this.textAutoRecover);
}
$('tr.coauth', this.el)[mode.canCoAuthoring && mode.isEdit ? 'show' : 'hide']();
- $('tr.coauth.changes', this.el)[mode.isEdit && mode.canLicense && !mode.isOffline && mode.canCoAuthoring? 'show' : 'hide']();
+ $('tr.coauth.changes', this.el)[mode.isEdit && !mode.isOffline && mode.canCoAuthoring? 'show' : 'hide']();
},
setApi: function(api) {
@@ -733,7 +733,7 @@ define([
Common.localStorage.setItem("sse-settings-zoom", this.cmbZoom.getValue());
/** coauthoring begin **/
Common.localStorage.setItem("sse-settings-livecomment", this.chLiveComment.isChecked() ? 1 : 0);
- if (this.mode.isEdit && this.mode.canLicense && !this.mode.isOffline && this.mode.canCoAuthoring)
+ if (this.mode.isEdit && !this.mode.isOffline && this.mode.canCoAuthoring)
Common.localStorage.setItem("sse-settings-coauthmode", this.cmbCoAuthMode.getValue());
/** coauthoring end **/
Common.localStorage.setItem("sse-settings-fontrender", this.cmbFontRender.getValue());
diff --git a/apps/spreadsheeteditor/main/app/view/NamedRangeEditDlg.js b/apps/spreadsheeteditor/main/app/view/NamedRangeEditDlg.js
index 3a8092487..429f06179 100644
--- a/apps/spreadsheeteditor/main/app/view/NamedRangeEditDlg.js
+++ b/apps/spreadsheeteditor/main/app/view/NamedRangeEditDlg.js
@@ -251,7 +251,8 @@ define([
win.show(xy.left + 65, xy.top + 77);
win.setSettings({
api : me.api,
- range : (!_.isEmpty(me.txtDataRange.getValue()) && (me.txtDataRange.checkValidate()==true)) ? me.txtDataRange.getValue() : me.dataRangeValid
+ range : (!_.isEmpty(me.txtDataRange.getValue()) && (me.txtDataRange.checkValidate()==true)) ? me.txtDataRange.getValue() : me.dataRangeValid,
+ type : Asc.c_oAscSelectionDialogType.Chart
});
}
},
diff --git a/apps/spreadsheeteditor/main/app/view/RightMenu.js b/apps/spreadsheeteditor/main/app/view/RightMenu.js
index 14cdd13ed..ce4c6d5d2 100644
--- a/apps/spreadsheeteditor/main/app/view/RightMenu.js
+++ b/apps/spreadsheeteditor/main/app/view/RightMenu.js
@@ -255,6 +255,7 @@ define([
txtShapeSettings: 'Shape Settings',
txtTextArtSettings: 'Text Art Settings',
txtChartSettings: 'Chart Settings',
+ txtSparklineSettings: 'Sparkline Settings',
txtTableSettings: 'Table Settings'
}, SSE.Views.RightMenu || {}));
});
\ No newline at end of file
diff --git a/apps/spreadsheeteditor/main/app/view/TableSettings.js b/apps/spreadsheeteditor/main/app/view/TableSettings.js
index bafa46c25..355b471d0 100644
--- a/apps/spreadsheeteditor/main/app/view/TableSettings.js
+++ b/apps/spreadsheeteditor/main/app/view/TableSettings.js
@@ -140,7 +140,7 @@ define([
setApi: function(o) {
this.api = o;
if (o) {
- this.api.asc_registerCallback('asc_onInitTablePictures', _.bind(this.onApiInitTableTemplates, this));
+ this.api.asc_registerCallback('asc_onSendThemeColors', _.bind(this.onSendThemeColors, this));
}
return this;
},
@@ -347,6 +347,14 @@ define([
}
},
+ onSendThemeColors: function() {
+ // get new table templates
+ if (this.cmbTableTemplate) {
+ this.onApiInitTableTemplates(this.api.asc_getTablePictures(this._originalProps));
+ this.cmbTableTemplate.menuPicker.scroller.update({alwaysVisibleY: true});
+ }
+ },
+
onApiInitTableTemplates: function(Templates){
var self = this;
this._isTemplatesChanged = true;
@@ -387,7 +395,8 @@ define([
type : template.asc_getType(),
imageUrl : template.asc_getImage(),
allowSelected : true,
- selected : false
+ selected : false,
+ tip : template.asc_getDisplayName()
});
});
self.cmbTableTemplate.menuPicker.store.add(arr);
diff --git a/apps/spreadsheeteditor/main/app/view/Toolbar.js b/apps/spreadsheeteditor/main/app/view/Toolbar.js
index fc1f8abb1..79ec7f70c 100644
--- a/apps/spreadsheeteditor/main/app/view/Toolbar.js
+++ b/apps/spreadsheeteditor/main/app/view/Toolbar.js
@@ -505,33 +505,13 @@ define([
id : 'id-toolbar-btn-insertchart',
cls : 'btn-toolbar',
iconCls : 'btn-insertchart',
- lock : [_set.editCell, _set.selChartText, _set.selShape, _set.selShapeText, _set.selImage, _set.lostConnect, _set.coAuth]
- /*,menu : new Common.UI.Menu({
- items : [
- this.mnuInsertChart = new Common.UI.MenuItem({
- caption: this.textInsCharts,
- value: 'chart',
- menu: new Common.UI.Menu({
- menuAlign: 'tl-tr',
- style: 'width: 560px;',
- items: [
- { template: _.template('') }
- ]
- })
- }),
- this.mnuInsertSparkline = new Common.UI.MenuItem({
- caption: this.textInsSparklines,
- value: 'chart',
- menu: new Common.UI.Menu({
- menuAlign: 'tl-tr',
- style: 'width: 210px;',
- items: [
- { template: _.template('') }
- ]
- })
- })
+ lock : [_set.editCell, _set.selChartText, _set.selShape, _set.selShapeText, _set.selImage, _set.lostConnect, _set.coAuth, _set.coAuthText],
+ menu : new Common.UI.Menu({
+ style: 'width: 435px;',
+ items: [
+ { template: _.template('') }
]
- })*/
+ })
});
me.btnEditChart = new Common.UI.Button({
@@ -1304,7 +1284,7 @@ define([
this.btnWrap.updateHint(this.tipWrap);
this.btnTextOrient.updateHint(this.tipTextOrientation);
this.btnInsertImage.updateHint(this.tipInsertImage);
- this.btnInsertChart.updateHint(this.tipInsertChart);
+ this.btnInsertChart.updateHint(this.tipInsertChartSpark);
this.btnInsertText.updateHint(this.tipInsertText);
this.btnInsertHyperlink.updateHint(this.tipInsertHyperlink + Common.Utils.String.platformKey('Ctrl+K'));
this.btnInsertShape.updateHint(this.tipInsertShape);
@@ -1714,20 +1694,22 @@ define([
]
}));
- /*
this.mnuInsertChartPicker = new Common.UI.DataView({
el: $('#id-toolbar-menu-insertchart'),
- parentMenu: this.mnuInsertChart.menu,
+ parentMenu: this.btnInsertChart.menu,
showLast: false,
- restoreHeight: 411,
+ restoreHeight: 539,
groups: new Common.UI.DataViewGroupStore([
- { id: 'menu-chart-group-bar', caption: this.textColumn },
- { id: 'menu-chart-group-line', caption: this.textLine },
- { id: 'menu-chart-group-pie', caption: this.textPie },
- { id: 'menu-chart-group-hbar', caption: this.textBar },
- { id: 'menu-chart-group-area', caption: this.textArea },
- { id: 'menu-chart-group-scatter', caption: this.textPoint },
- { id: 'menu-chart-group-stock', caption: this.textStock }
+ { id: 'menu-chart-group-bar', caption: me.textColumn, headername: me.textCharts },
+ { id: 'menu-chart-group-line', caption: me.textLine },
+ { id: 'menu-chart-group-pie', caption: me.textPie },
+ { id: 'menu-chart-group-hbar', caption: me.textBar },
+ { id: 'menu-chart-group-area', caption: me.textArea, inline: true },
+ { id: 'menu-chart-group-scatter', caption: me.textPoint, inline: true },
+ { id: 'menu-chart-group-stock', caption: me.textStock, inline: true },
+ { id: 'menu-chart-group-sparkcolumn', inline: true, headername: me.textSparks },
+ { id: 'menu-chart-group-sparkline', inline: true },
+ { id: 'menu-chart-group-sparkwin', inline: true }
]),
store: new Common.UI.DataViewStore([
{ group: 'menu-chart-group-bar', type: Asc.c_oAscChartTypeSettings.barNormal, allowSelected: true, iconCls: 'column-normal', selected: true},
@@ -1754,29 +1736,13 @@ define([
{ group: 'menu-chart-group-area', type: Asc.c_oAscChartTypeSettings.areaStacked, allowSelected: true, iconCls: 'area-stack'},
{ group: 'menu-chart-group-area', type: Asc.c_oAscChartTypeSettings.areaStackedPer, allowSelected: true, iconCls: 'area-pstack'},
{ group: 'menu-chart-group-scatter', type: Asc.c_oAscChartTypeSettings.scatter, allowSelected: true, iconCls: 'point-normal'},
- { group: 'menu-chart-group-stock', type: Asc.c_oAscChartTypeSettings.stock, allowSelected: true, iconCls: 'stock-normal'}
+ { group: 'menu-chart-group-stock', type: Asc.c_oAscChartTypeSettings.stock, allowSelected: true, iconCls: 'stock-normal'},
+ { group: 'menu-chart-group-sparkcolumn', type: Asc.c_oAscSparklineType.Column, allowSelected: true, iconCls: 'spark-column', tip: me.textColumnSpark},
+ { group: 'menu-chart-group-sparkline', type: Asc.c_oAscSparklineType.Line, allowSelected: true, iconCls: 'spark-line', tip: me.textLineSpark},
+ { group: 'menu-chart-group-sparkwin', type: Asc.c_oAscSparklineType.Stacked, allowSelected: true, iconCls: 'spark-win', tip: me.textWinLossSpark}
]),
itemTemplate: _.template('')
});
- this.mnuInsertSparkPicker = new Common.UI.DataView({
- el: $('#id-toolbar-menu-insertspark'),
- parentMenu: this.mnuInsertSparkline.menu,
- showLast: false,
- restoreHeight: 200,
- allowScrollbar: false,
- groups: new Common.UI.DataViewGroupStore([
- { id: 'menu-chart-group-sparkcolumn', caption: this.textColumnSpark },
- { id: 'menu-chart-group-sparkline', caption: this.textLineSpark },
- { id: 'menu-chart-group-sparkwin', caption: this.textWinLossSpark }
- ]),
- store: new Common.UI.DataViewStore([
- { group: 'menu-chart-group-sparkcolumn', type: Asc.c_oAscSparklineType.Column, allowSelected: true, iconCls: 'spark-column'},
- { group: 'menu-chart-group-sparkline', type: Asc.c_oAscSparklineType.Line, allowSelected: true, iconCls: 'spark-line'},
- { group: 'menu-chart-group-sparkwin', type: Asc.c_oAscSparklineType.Stacked, allowSelected: true, iconCls: 'spark-win'}
- ]),
- itemTemplate: _.template('')
- })
- */
},
setApi: function(api) {
@@ -2124,17 +2090,19 @@ define([
textInsText: 'Insert text box',
textInsTextArt: 'Insert Text Art',
textInsCharts: 'Charts',
- textLine: 'Line Chart',
- textColumn: 'Column Chart',
- textBar: 'Bar Chart',
- textArea: 'Area Chart',
- textPie: 'Pie Chart',
- textPoint: 'Point Chart',
- textStock: 'Stock Chart',
- textInsSparklines: 'Sparklines',
+ textLine: 'Line',
+ textColumn: 'Column',
+ textBar: 'Bar',
+ textArea: 'Area',
+ textPie: 'Pie',
+ textPoint: 'XY (Scatter)',
+ textStock: 'Stock',
textLineSpark: 'Line',
textColumnSpark: 'Column',
textWinLossSpark: 'Win/Loss',
- tipInsertEquation: 'Insert Equation'
+ tipInsertEquation: 'Insert Equation',
+ textCharts: 'Charts',
+ textSparks: 'Sparklines',
+ tipInsertChartSpark: 'Insert Chart or Sparkline'
}, SSE.Views.Toolbar || {}));
});
\ No newline at end of file
diff --git a/apps/spreadsheeteditor/main/app_dev.js b/apps/spreadsheeteditor/main/app_dev.js
index 74387f0d2..690ac2a92 100644
--- a/apps/spreadsheeteditor/main/app_dev.js
+++ b/apps/spreadsheeteditor/main/app_dev.js
@@ -164,6 +164,7 @@ require([
'spreadsheeteditor/main/app/controller/LeftMenu',
'spreadsheeteditor/main/app/controller/Main',
'spreadsheeteditor/main/app/controller/Print',
+ 'spreadsheeteditor/main/app/view/FileMenuPanels',
'spreadsheeteditor/main/app/view/ParagraphSettings',
'spreadsheeteditor/main/app/view/ImageSettings',
'spreadsheeteditor/main/app/view/ChartSettings',
diff --git a/apps/spreadsheeteditor/main/locale/en.json b/apps/spreadsheeteditor/main/locale/en.json
index 863ccaaf9..5c9560616 100644
--- a/apps/spreadsheeteditor/main/locale/en.json
+++ b/apps/spreadsheeteditor/main/locale/en.json
@@ -721,33 +721,48 @@
"SSE.Views.CellRangeDialog.txtInvalidRange": "ERROR! Invalid cells range",
"SSE.Views.CellRangeDialog.txtTitle": "Select Data Range",
"SSE.Views.ChartSettings.textAdvanced": "Show advanced settings",
- "SSE.Views.ChartSettings.textArea": "Area Chart",
- "SSE.Views.ChartSettings.textBar": "Bar Chart",
+ "SSE.Views.ChartSettings.textArea": "Area",
+ "SSE.Views.ChartSettings.textBar": "Bar",
"SSE.Views.ChartSettings.textChartType": "Change Chart Type",
- "SSE.Views.ChartSettings.textColumn": "Column Chart",
+ "SSE.Views.ChartSettings.textColumn": "Column",
"SSE.Views.ChartSettings.textEditData": "Edit Data and Location",
"SSE.Views.ChartSettings.textHeight": "Height",
"SSE.Views.ChartSettings.textKeepRatio": "Constant Proportions",
- "SSE.Views.ChartSettings.textLine": "Line Chart",
- "SSE.Views.ChartSettings.textPie": "Pie Chart",
- "SSE.Views.ChartSettings.textPoint": "XY (Scatter) Chart",
+ "SSE.Views.ChartSettings.textLine": "Line",
+ "SSE.Views.ChartSettings.textPie": "Pie",
+ "SSE.Views.ChartSettings.textPoint": "XY (Scatter)",
"SSE.Views.ChartSettings.textRanges": "Data Range",
"SSE.Views.ChartSettings.textSelectData": "Select Data",
"SSE.Views.ChartSettings.textSize": "Size",
- "SSE.Views.ChartSettings.textStock": "Stock Chart",
+ "SSE.Views.ChartSettings.textStock": "Stock",
"SSE.Views.ChartSettings.textStyle": "Style",
"SSE.Views.ChartSettings.textType": "Type",
"SSE.Views.ChartSettings.textWidth": "Width",
+ "SSE.Views.ChartSettings.textLineSpark": "Line",
+ "SSE.Views.ChartSettings.textColumnSpark": "Column",
+ "SSE.Views.ChartSettings.textWinLossSpark": "Win/Loss",
+ "SSE.Views.ChartSettings.strSparkColor": "Color",
+ "SSE.Views.ChartSettings.strLineWeight": "Line Weight",
+ "SSE.Views.ChartSettings.textMarkers": "Markers",
+ "SSE.Views.ChartSettings.textNewColor": "Add New Custom Color",
+ "SSE.Views.ChartSettings.textHighPoint": "High Point",
+ "SSE.Views.ChartSettings.textLowPoint": "Low Point",
+ "SSE.Views.ChartSettings.textNegativePoint": "Negative Point",
+ "SSE.Views.ChartSettings.textFirstPoint": "First Point",
+ "SSE.Views.ChartSettings.textLastPoint": "Last Point",
+ "SSE.Views.ChartSettings.strTemplate": "Template",
+ "SSE.Views.ChartSettings.textShow": "Show",
+ "SSE.Views.ChartSettings.textBorderSizeErr": "The entered value is incorrect. Please enter a value between 0 pt and 1584 pt.", "SSE.Views.ChartSettingsDlg.cancelButtonText": "Cancel", "SSE.Views.ChartSettingsDlg.errorMaxRows": "ERROR! The maximum number of data series per chart is 255", "SSE.Views.ChartSettingsDlg.errorStockChart": "Incorrect row order. To build a stock chart place the data on the sheet in the following order: opening price, max price, min price, closing price.", - "SSE.Views.ChartSettingsDlg.textArea": "Area Chart", + "SSE.Views.ChartSettingsDlg.textArea": "Area", "SSE.Views.ChartSettingsDlg.textAuto": "Auto", "SSE.Views.ChartSettingsDlg.textAxisCrosses": "Axis Crosses", "SSE.Views.ChartSettingsDlg.textAxisOptions": "Axis Options", "SSE.Views.ChartSettingsDlg.textAxisPos": "Axis Position", "SSE.Views.ChartSettingsDlg.textAxisSettings": "Axis Settings", - "SSE.Views.ChartSettingsDlg.textBar": "Bar Chart", + "SSE.Views.ChartSettingsDlg.textBar": "Bar", "SSE.Views.ChartSettingsDlg.textBetweenTickMarks": "Between Tick Marks", "SSE.Views.ChartSettingsDlg.textBillions": "Billions", "SSE.Views.ChartSettingsDlg.textBottom": "Bottom", @@ -755,7 +770,7 @@ "SSE.Views.ChartSettingsDlg.textCenter": "Center", "SSE.Views.ChartSettingsDlg.textChartElementsLegend": "Chart Elements & Chart Legend", "SSE.Views.ChartSettingsDlg.textChartTitle": "Chart Title", - "SSE.Views.ChartSettingsDlg.textColumn": "Column Chart", + "SSE.Views.ChartSettingsDlg.textColumn": "Column", "SSE.Views.ChartSettingsDlg.textCross": "Cross", "SSE.Views.ChartSettingsDlg.textCustom": "Custom", "SSE.Views.ChartSettingsDlg.textDataColumns": "in columns", @@ -813,8 +828,8 @@ "SSE.Views.ChartSettingsDlg.textOut": "Out", "SSE.Views.ChartSettingsDlg.textOuterTop": "Outer Top", "SSE.Views.ChartSettingsDlg.textOverlay": "Overlay", - "SSE.Views.ChartSettingsDlg.textPie": "Pie Chart", - "SSE.Views.ChartSettingsDlg.textPoint": "XY (Scatter) Chart", + "SSE.Views.ChartSettingsDlg.textPie": "Pie", + "SSE.Views.ChartSettingsDlg.textPoint": "XY (Scatter)", "SSE.Views.ChartSettingsDlg.textReverse": "Values in reverse order", "SSE.Views.ChartSettingsDlg.textRight": "Right", "SSE.Views.ChartSettingsDlg.textRightOverlay": "Right Overlay", @@ -828,7 +843,7 @@ "SSE.Views.ChartSettingsDlg.textShowGrid": "Grid Lines", "SSE.Views.ChartSettingsDlg.textShowValues": "Display chart values", "SSE.Views.ChartSettingsDlg.textSmooth": "Smooth", - "SSE.Views.ChartSettingsDlg.textStock": "Stock Chart", + "SSE.Views.ChartSettingsDlg.textStock": "Stock", "SSE.Views.ChartSettingsDlg.textStraight": "Straight", "SSE.Views.ChartSettingsDlg.textStyle": "Style", "SSE.Views.ChartSettingsDlg.textTenMillions": "10 000 000", @@ -849,6 +864,24 @@ "SSE.Views.ChartSettingsDlg.textXAxisTitle": "X Axis Title", "SSE.Views.ChartSettingsDlg.textYAxisTitle": "Y Axis Title", "SSE.Views.ChartSettingsDlg.txtEmpty": "This field is required", + "SSE.Views.ChartSettingsDlg.textLineSpark": "Line", + "SSE.Views.ChartSettingsDlg.textColumnSpark": "Column", + "SSE.Views.ChartSettingsDlg.textWinLossSpark": "Win/Loss", + "SSE.Views.ChartSettingsDlg.textSparkRanges": "Sparkline Ranges", + "SSE.Views.ChartSettingsDlg.textLocationRange": "Location Range", + "SSE.Views.ChartSettingsDlg.textEmptyCells": "Hidden and Empty cells", + "SSE.Views.ChartSettingsDlg.textShowEmptyCells": "Show empty cells as", + "SSE.Views.ChartSettingsDlg.textShowData": "Show data in hidden rows and columns", + "SSE.Views.ChartSettingsDlg.textGroup": "Group Sparkline", + "SSE.Views.ChartSettingsDlg.textSingle": "Single Sparkline", + "SSE.Views.ChartSettingsDlg.textGaps": "Gaps", + "SSE.Views.ChartSettingsDlg.textZero": "Zero", + "SSE.Views.ChartSettingsDlg.textEmptyLine": "Connect data points with line", + "SSE.Views.ChartSettingsDlg.textShowSparkAxis": "Show Axis", + "SSE.Views.ChartSettingsDlg.textReverseOrder": "Reverse order", + "SSE.Views.ChartSettingsDlg.textAutoEach": "Auto for Each", + "SSE.Views.ChartSettingsDlg.textSameAll": "Same for All", + "SSE.Views.ChartSettingsDlg.textTitleSparkline": "Sparkline - Advanced Settings", "SSE.Views.DigitalFilterDialog.cancelButtonText": "Cancel", "SSE.Views.DigitalFilterDialog.capAnd": "And", "SSE.Views.DigitalFilterDialog.capCondition1": "equals", @@ -1219,6 +1252,7 @@ "SSE.Views.RightMenu.txtParagraphSettings": "Text Settings", "SSE.Views.RightMenu.txtSettings": "Common Settings", "SSE.Views.RightMenu.txtShapeSettings": "Shape Settings", + "SSE.Views.RightMenu.txtSparklineSettings": "Sparkline Settings", "SSE.Views.RightMenu.txtTableSettings": "Table Settings", "SSE.Views.RightMenu.txtTextArtSettings": "Text Art Settings", "SSE.Views.SetValueDialog.cancelButtonText": "Cancel", @@ -1425,6 +1459,15 @@ "SSE.Views.Toolbar.textBottomBorders": "Bottom Borders", "SSE.Views.Toolbar.textCenterBorders": "Inside Vertical Borders", "SSE.Views.Toolbar.textClockwise": "Angle Clockwise", + "SSE.Views.Toolbar.textArea": "Area", + "SSE.Views.Toolbar.textBar": "Bar", + "SSE.Views.Toolbar.textColumn": "Column", + "SSE.Views.Toolbar.textLine": "Line", + "SSE.Views.Toolbar.textPie": "Pie", + "SSE.Views.Toolbar.textPoint": "XY (Scatter)", + "SSE.Views.Toolbar.textStock": "Stock", + "SSE.Views.Toolbar.textCharts": "Charts", + "SSE.Views.Toolbar.textSparks": "Sparklines", "SSE.Views.Toolbar.textCompactToolbar": "View Compact Toolbar", "SSE.Views.Toolbar.textCounterCw": "Angle Counterclockwise", "SSE.Views.Toolbar.textDelLeft": "Shift Cells Left", @@ -1494,6 +1537,7 @@ "SSE.Views.Toolbar.tipInsertOpt": "Insert Cells", "SSE.Views.Toolbar.tipInsertShape": "Insert Autoshape", "SSE.Views.Toolbar.tipInsertText": "Insert Text", + "SSE.Views.Toolbar.tipInsertChartSpark": "Insert Chart or Sparkline", "SSE.Views.Toolbar.tipMerge": "Merge", "SSE.Views.Toolbar.tipNewDocument": "New Document", "SSE.Views.Toolbar.tipNumFormat": "Number Format", @@ -1578,6 +1622,9 @@ "SSE.Views.Toolbar.txtTime": "Time", "SSE.Views.Toolbar.txtUnmerge": "Unmerge Cells", "SSE.Views.Toolbar.txtYen": "¥ Yen", + "SSE.Views.Toolbar.textLineSpark": "Line", + "SSE.Views.Toolbar.textColumnSpark": "Column", + "SSE.Views.Toolbar.textWinLossSpark": "Win/Loss", "SSE.Views.Top10FilterDialog.cancelButtonText": "Cancel", "SSE.Views.Top10FilterDialog.okButtonText": "OK", "SSE.Views.Top10FilterDialog.textType": "Show", diff --git a/apps/spreadsheeteditor/main/resources/less/leftmenu.less b/apps/spreadsheeteditor/main/resources/less/leftmenu.less index 4c74d623b..df99dd51d 100644 --- a/apps/spreadsheeteditor/main/resources/less/leftmenu.less +++ b/apps/spreadsheeteditor/main/resources/less/leftmenu.less @@ -459,8 +459,6 @@ .header-name { padding: 7px 2px 7px 10px; - font-weight: bold; - cursor: default; } } } diff --git a/apps/spreadsheeteditor/main/resources/less/rightmenu.less b/apps/spreadsheeteditor/main/resources/less/rightmenu.less index 801c35841..2c65f6014 100644 --- a/apps/spreadsheeteditor/main/resources/less/rightmenu.less +++ b/apps/spreadsheeteditor/main/resources/less/rightmenu.less @@ -172,20 +172,12 @@ button:active:not(.disabled) .btn-change-shape {background-position: -56px - .menu-insertchart { .group-description { - float: left; - width: 125px; - line-height: 58px; - padding-left: 6px; + padding-left: 4px; } .group-items-container { float: left; position: relative; - - & > div { - float: left; - margin: 0 0 0 14px; - } } } diff --git a/apps/spreadsheeteditor/sdk_dev_scripts.js b/apps/spreadsheeteditor/sdk_dev_scripts.js index b290dad2c..258055eb2 100644 --- a/apps/spreadsheeteditor/sdk_dev_scripts.js +++ b/apps/spreadsheeteditor/sdk_dev_scripts.js @@ -8,6 +8,9 @@ var sdk_dev_scrpipts = [ "../../../../sdkjs/common/apiCommon.js", "../../../../sdkjs/common/SerializeCommonWordExcel.js", "../../../../sdkjs/common/editorscommon.js", + "../../../../sdkjs/common/HistoryCommon.js", + "../../../../sdkjs/common/TableId.js", + "../../../../sdkjs/common/TableIdChanges.js", "../../../../sdkjs/common/NumFormat.js", "../../../../sdkjs/common/SerializeChart.js", "../../../../sdkjs/common/AdvancedOptions.js", @@ -25,7 +28,6 @@ var sdk_dev_scrpipts = [ "../../../../sdkjs/common/Drawings/Hit.js", "../../../../sdkjs/common/Drawings/ArcTo.js", "../../../../sdkjs/common/Drawings/ColorArray.js", - "../../../../sdkjs/common/Drawings/Format/Constants.js", "../../../../sdkjs/common/Drawings/CommonController.js", "../../../../sdkjs/common/Drawings/States.js", "../../../../sdkjs/common/Drawings/Format/CreateGeometry.js", @@ -61,7 +63,8 @@ var sdk_dev_scrpipts = [ "../../../../sdkjs/common/Overlay.js", "../../../../sdkjs/common/Drawings/HatchPattern.js", "../../../../sdkjs/common/scroll.js", - "../../../../sdkjs/cell/view/iscroll.js", + "../../../../sdkjs/common/Scrolls/iscroll.js", + "../../../../sdkjs/common/Scrolls/mobileTouchManagerBase.js", "../../../../sdkjs/common/wordcopypaste.js", "../../../../sdkjs/cell/apiDefines.js", "../../../../sdkjs/cell/document/empty-workbook.js", @@ -114,12 +117,21 @@ var sdk_dev_scrpipts = [ "../../../../sdkjs/cell/Private/comments.js", "../../../../sdkjs/word/Editor/Common.js", "../../../../sdkjs/word/Editor/Comments.js", + "../../../../sdkjs/word/Editor/CommentsChanges.js", "../../../../sdkjs/word/Editor/Styles.js", + "../../../../sdkjs/word/Editor/StylesChanges.js", "../../../../sdkjs/word/Editor/ParagraphContent.js", + "../../../../sdkjs/word/Editor/Paragraph/ParaTextPr.js", + "../../../../sdkjs/word/Editor/Paragraph/ParaTextPrChanges.js", + "../../../../sdkjs/word/Editor/Paragraph/ParaDrawing.js", + "../../../../sdkjs/word/Editor/Paragraph/ParaDrawingChanges.js", "../../../../sdkjs/word/Editor/Paragraph.js", + "../../../../sdkjs/word/Editor/ParagraphChanges.js", "../../../../sdkjs/word/Editor/DocumentContentBase.js", "../../../../sdkjs/word/Editor/Document.js", + "../../../../sdkjs/word/Editor/DocumentChanges.js", "../../../../sdkjs/word/Editor/DocumentContent.js", + "../../../../sdkjs/word/Editor/DocumentContentChanges.js", "../../../../sdkjs/word/Editor/DocumentControllerBase.js", "../../../../sdkjs/word/Editor/LogicDocumentController.js", "../../../../sdkjs/word/Editor/DrawingsController.js", @@ -127,22 +139,32 @@ var sdk_dev_scrpipts = [ "../../../../sdkjs/word/Editor/FlowObjects.js", "../../../../sdkjs/word/Editor/ParagraphContentBase.js", "../../../../sdkjs/word/Editor/Hyperlink.js", + "../../../../sdkjs/word/Editor/HyperlinkChanges.js", "../../../../sdkjs/word/Editor/Field.js", + "../../../../sdkjs/word/Editor/FieldChanges.js", "../../../../sdkjs/word/Editor/Run.js", + "../../../../sdkjs/word/Editor/RunChanges.js", "../../../../sdkjs/word/Editor/Math.js", + "../../../../sdkjs/word/Editor/MathChanges.js", "../../../../sdkjs/word/Editor/Paragraph_Recalculate.js", "../../../../sdkjs/word/Editor/Sections.js", + "../../../../sdkjs/word/Editor/SectionsChanges.js", "../../../../sdkjs/word/Editor/Numbering.js", + "../../../../sdkjs/word/Editor/NumberingChanges.js", "../../../../sdkjs/word/Editor/HeaderFooter.js", "../../../../sdkjs/word/Editor/Table.js", + "../../../../sdkjs/word/Editor/Table/TableChanges.js", "../../../../sdkjs/word/Editor/Table/TableRecalculate.js", "../../../../sdkjs/word/Editor/Table/TableDraw.js", "../../../../sdkjs/word/Editor/Table/TableRow.js", + "../../../../sdkjs/word/Editor/Table/TableRowChanges.js", "../../../../sdkjs/word/Editor/Table/TableCell.js", + "../../../../sdkjs/word/Editor/Table/TableCellChanges.js", "../../../../sdkjs/word/Editor/Serialize2.js", "../../../../sdkjs/word/Editor/FontClassification.js", "../../../../sdkjs/word/Editor/Spelling.js", "../../../../sdkjs/word/Editor/Footnotes.js", + "../../../../sdkjs/word/Editor/FootnotesChanges.js", "../../../../sdkjs/word/Editor/FootEndNote.js", "../../../../sdkjs/word/Editor/GraphicObjects/WrapManager.js", "../../../../sdkjs/word/Math/mathTypes.js", |