[DE] Update line numbering settings
This commit is contained in:
parent
db7d0d1e36
commit
f4e989d412
|
@ -103,7 +103,8 @@ define([
|
||||||
fontsize: undefined,
|
fontsize: undefined,
|
||||||
in_equation: false,
|
in_equation: false,
|
||||||
in_chart: false,
|
in_chart: false,
|
||||||
linenum_apply: Asc.c_oAscSectionApplyType.All
|
linenum_apply: Asc.c_oAscSectionApplyType.All,
|
||||||
|
suppress_num: undefined
|
||||||
};
|
};
|
||||||
this.flg = {};
|
this.flg = {};
|
||||||
this.diagramEditor = null;
|
this.diagramEditor = null;
|
||||||
|
@ -337,6 +338,7 @@ define([
|
||||||
toolbar.mnuNoControlsColor.on('click', _.bind(this.onNoControlsColor, this));
|
toolbar.mnuNoControlsColor.on('click', _.bind(this.onNoControlsColor, this));
|
||||||
toolbar.mnuControlsColorPicker.on('select', _.bind(this.onSelectControlsColor, this));
|
toolbar.mnuControlsColorPicker.on('select', _.bind(this.onSelectControlsColor, this));
|
||||||
toolbar.btnLineNumbers.menu.on('item:click', _.bind(this.onLineNumbersSelect, this));
|
toolbar.btnLineNumbers.menu.on('item:click', _.bind(this.onLineNumbersSelect, this));
|
||||||
|
toolbar.btnLineNumbers.menu.on('show:after', _.bind(this.onLineNumbersShow, this));
|
||||||
Common.Gateway.on('insertimage', _.bind(this.insertImage, this));
|
Common.Gateway.on('insertimage', _.bind(this.insertImage, this));
|
||||||
Common.Gateway.on('setmailmergerecipients', _.bind(this.setMailMergeRecipients, this));
|
Common.Gateway.on('setmailmergerecipients', _.bind(this.setMailMergeRecipients, this));
|
||||||
$('#id-toolbar-menu-new-control-color').on('click', _.bind(this.onNewControlsColor, this));
|
$('#id-toolbar-menu-new-control-color').on('click', _.bind(this.onNewControlsColor, this));
|
||||||
|
@ -890,6 +892,10 @@ define([
|
||||||
|
|
||||||
toolbar.btnWatermark.setDisabled(header_locked);
|
toolbar.btnWatermark.setDisabled(header_locked);
|
||||||
|
|
||||||
|
if (frame_pr) {
|
||||||
|
this._state.suppress_num = !!frame_pr.get_SuppressLineNumbers();
|
||||||
|
}
|
||||||
|
|
||||||
this._state.in_equation = in_equation;
|
this._state.in_equation = in_equation;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -1735,6 +1741,10 @@ define([
|
||||||
this._state.linenum = index;
|
this._state.linenum = index;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
onLineNumbersShow: function(menu) {
|
||||||
|
menu.items[4].setChecked(this._state.suppress_num);
|
||||||
|
},
|
||||||
|
|
||||||
onColorSchemaClick: function(menu, item) {
|
onColorSchemaClick: function(menu, item) {
|
||||||
if (this.api) {
|
if (this.api) {
|
||||||
this.api.asc_ChangeColorSchemeByIdx(item.value);
|
this.api.asc_ChangeColorSchemeByIdx(item.value);
|
||||||
|
|
Loading…
Reference in a new issue