commit
4ada95809b
|
@ -895,6 +895,8 @@ define([
|
||||||
if (need_disable != toolbar.btnColumns.isDisabled())
|
if (need_disable != toolbar.btnColumns.isDisabled())
|
||||||
toolbar.btnColumns.setDisabled(need_disable);
|
toolbar.btnColumns.setDisabled(need_disable);
|
||||||
|
|
||||||
|
toolbar.btnLineNumbers.setDisabled(in_image && in_para || this._state.lock_doc);
|
||||||
|
|
||||||
if (toolbar.listStylesAdditionalMenuItem && (frame_pr===undefined) !== toolbar.listStylesAdditionalMenuItem.isDisabled())
|
if (toolbar.listStylesAdditionalMenuItem && (frame_pr===undefined) !== toolbar.listStylesAdditionalMenuItem.isDisabled())
|
||||||
toolbar.listStylesAdditionalMenuItem.setDisabled(frame_pr===undefined);
|
toolbar.listStylesAdditionalMenuItem.setDisabled(frame_pr===undefined);
|
||||||
|
|
||||||
|
@ -1761,6 +1763,7 @@ define([
|
||||||
|
|
||||||
switch (item.value) {
|
switch (item.value) {
|
||||||
case 0:
|
case 0:
|
||||||
|
this._state.linenum = undefined;
|
||||||
this.api.asc_SetLineNumbersProps(Asc.c_oAscSectionApplyType.Current, null);
|
this.api.asc_SetLineNumbersProps(Asc.c_oAscSectionApplyType.Current, null);
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
|
|
|
@ -1006,7 +1006,7 @@ define([
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
this.toolbarControls.push(this.btnLineNumbers);
|
||||||
|
|
||||||
this.btnClearStyle = new Common.UI.Button({
|
this.btnClearStyle = new Common.UI.Button({
|
||||||
id: 'id-toolbar-btn-clearstyle',
|
id: 'id-toolbar-btn-clearstyle',
|
||||||
|
|
Loading…
Reference in a new issue