diff --git a/apps/spreadsheeteditor/main/app/controller/Viewport.js b/apps/spreadsheeteditor/main/app/controller/Viewport.js index f74a04734..ae52f7426 100644 --- a/apps/spreadsheeteditor/main/app/controller/Viewport.js +++ b/apps/spreadsheeteditor/main/app/controller/Viewport.js @@ -256,6 +256,19 @@ define([ }) ); + if (!config.isEdit) { + var menu = me.header.btnOptions.menu; + me.header.mnuitemHideHeadings.hide(); + me.header.mnuitemHideGridlines.hide(); + me.header.mnuitemFreezePanes.hide(); + menu.items[5].hide(); + menu.items[7].hide(); + if (!config.canComments) { // show advanced settings for editing and commenting mode + mnuitemAdvSettings.hide(); + menu.items[9].hide(); + } + } + var _on_btn_zoom = function (btn) { if ( btn == 'up' ) { var _f = Math.floor(this.api.asc_getZoom() * 10)/10;