[SSE] Show settings for freeze pane shadow
This commit is contained in:
parent
accbea96e5
commit
c4d080ded2
|
@ -774,7 +774,8 @@ define([
|
|||
leftmenuController.setMode(me.appOptions).createDelayedElements().setApi(me.api);
|
||||
|
||||
if (!me.appOptions.isEditMailMerge && !me.appOptions.isEditDiagram) {
|
||||
pluginsController.setApi(me.api);
|
||||
pluginsController.setApi(me.api);
|
||||
this.api && this.api.asc_setFrozenPaneBorderType(Common.localStorage.getBool('sse-freeze-shadow') ? Asc.c_oAscFrozenPaneBorderType.shadow : Asc.c_oAscFrozenPaneBorderType.line);
|
||||
}
|
||||
|
||||
leftMenuView.disableMenu('all',false);
|
||||
|
|
|
@ -235,6 +235,13 @@ define([
|
|||
value : 'freezepanes'
|
||||
});
|
||||
|
||||
me.header.mnuitemFreezePanesShadow = new Common.UI.MenuItem({
|
||||
caption : me.textFreezePanesShadow,
|
||||
checkable : true,
|
||||
checked : Common.localStorage.getBool('sse-freeze-shadow'),
|
||||
value : 'freezepanesshadow'
|
||||
});
|
||||
|
||||
me.header.mnuZoom = new Common.UI.MenuItem({
|
||||
template: _.template([
|
||||
'<div id="hdr-menu-zoom" class="menu-zoom" style="height: 25px;" ',
|
||||
|
@ -267,6 +274,7 @@ define([
|
|||
me.header.mnuitemHideGridlines,
|
||||
{caption:'--'},
|
||||
me.header.mnuitemFreezePanes,
|
||||
me.header.mnuitemFreezePanesShadow,
|
||||
{caption:'--'},
|
||||
me.header.mnuZoom,
|
||||
{caption:'--'},
|
||||
|
@ -281,7 +289,6 @@ define([
|
|||
me.header.mnuitemHideGridlines.hide();
|
||||
me.header.mnuitemFreezePanes.hide();
|
||||
menu.items[5].hide();
|
||||
menu.items[7].hide();
|
||||
if (!config.canViewComments) { // show advanced settings for editing and commenting mode
|
||||
// mnuitemAdvSettings.hide();
|
||||
// menu.items[9].hide();
|
||||
|
@ -456,6 +463,10 @@ define([
|
|||
case 'headings': me.api.asc_setDisplayHeadings(!item.isChecked()); break;
|
||||
case 'gridlines': me.api.asc_setDisplayGridlines(!item.isChecked()); break;
|
||||
case 'freezepanes': me.api.asc_freezePane(); break;
|
||||
case 'freezepanesshadow':
|
||||
me.api.asc_setFrozenPaneBorderType(item.isChecked() ? Asc.c_oAscFrozenPaneBorderType.shadow : Asc.c_oAscFrozenPaneBorderType.line);
|
||||
Common.localStorage.setBool('sse-freeze-shadow', item.isChecked());
|
||||
break;
|
||||
case 'advanced': me.header.fireEvent('file:settings', me.header); break;
|
||||
}
|
||||
},
|
||||
|
@ -474,6 +485,7 @@ define([
|
|||
textHideFBar: 'Hide Formula Bar',
|
||||
textHideHeadings: 'Hide Headings',
|
||||
textHideGridlines: 'Hide Gridlines',
|
||||
textFreezePanes: 'Freeze Panes'
|
||||
textFreezePanes: 'Freeze Panes',
|
||||
textFreezePanesShadow: 'Show Freezed Panes Shadow'
|
||||
}, SSE.Controllers.Viewport));
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue