diff --git a/test/spreadsheeteditor/main/index.html b/test/spreadsheeteditor/main/index.html index 2227b02a98..661c560f06 100644 --- a/test/spreadsheeteditor/main/index.html +++ b/test/spreadsheeteditor/main/index.html @@ -10,6 +10,7 @@ + @@ -204,6 +205,17 @@
+
+ +
+ +
+
+ +
+
+ +
@@ -257,6 +269,7 @@ + + + + + +--> + diff --git a/test/spreadsheeteditor/main/js/ApplicationController.js b/test/spreadsheeteditor/main/js/ApplicationController.js index 1b85ab1623..e97d8dff3a 100644 --- a/test/spreadsheeteditor/main/js/ApplicationController.js +++ b/test/spreadsheeteditor/main/js/ApplicationController.js @@ -134,7 +134,7 @@ SSE.ApplicationController = new(function(){ api.asc_registerCallback('asc_onRunAutostartMacroses', onRunAutostartMacroses); api.asc_setDocInfo(docInfo); api.asc_getEditorPermissions(config.licenseUrl, config.customerId); - api.asc_enableKeyEvents(true); + api.asc_enableKeyEvents(false); // Common.Analytics.trackEvent('Load', 'Start'); } @@ -202,6 +202,7 @@ SSE.ApplicationController = new(function(){ hidePreloader(); onLongActionEnd(Asc.c_oAscAsyncActionType['BlockInteraction'], LoadingDocument); + if ( permissions.print === false) $('#idt-print').hide(); @@ -241,6 +242,8 @@ SSE.ApplicationController = new(function(){ Common.Gateway.on('downloadas', onDownloadAs); Common.Gateway.on('requestclose', onRequestClose); + + SSE.ApplicationView.tools.get('#idt-fullscreen') .on('click', function(){ common.utils.openLink(embedConfig.fullscreenUrl); @@ -379,7 +382,7 @@ SSE.ApplicationController = new(function(){ onLongActionBegin(Asc.c_oAscAsyncActionType['BlockInteraction'], LoadingDocument); - api.asc_setViewMode(true); + //api.asc_setViewMode(true); api.asc_LoadDocument(); } @@ -427,6 +430,8 @@ SSE.ApplicationController = new(function(){ } me.loadMask && me.loadMask.hide(); + /* if (type == Asc.c_oAscAsyncActionType.BlockInteraction && !( (id == Asc.c_oAscAsyncAction['LoadDocumentFonts'] || id == Asc.c_oAscAsyncAction['ApplyChanges']) && (this.dontCloseDummyComment || this.inTextareaControl || Common.Utils.ModalWindow.isVisible() || this.inFormControl) )) + this.onEditComplete(this.loadMask, {restorefocus:true});*/ } } diff --git a/test/spreadsheeteditor/main/js/ApplicationView.js b/test/spreadsheeteditor/main/js/ApplicationView.js index f396aa6888..917609fa59 100644 --- a/test/spreadsheeteditor/main/js/ApplicationView.js +++ b/test/spreadsheeteditor/main/js/ApplicationView.js @@ -36,13 +36,39 @@ if (SSE === undefined) { SSE.ApplicationView = new(function(){ - var $btnTools; + var $btnTools + ,$cellname + ,$btnexpand + ,$btnfunc + ,btnNamedRanges; + + // Initialize view function createView(){ + + $cellname = $('#ce-cell-name'); + $btnexpand = $('#ce-btn-expand'); + $btnfunc = $('#ce-func-label'); + $btnfunc.addClass('disabled'); + /*btnNamedRanges = new Common.UI.Button({ + parentEl: $('#ce-cell-name-menu'), + menu : new Common.UI.Menu({ + style : 'min-width: 70px;max-width:400px;', + maxHeight: 250, + items: [ + { caption: this.textManager, value: 'manager' }, + { caption: '--' } + ] + }) + }); + this.btnNamedRanges.setVisible(false); + this.btnNamedRanges.menu.setOffset(-81);*/ + $btnTools = $('#box-tools button'); + $btnTools.addClass('dropdown-toggle').attr('data-toggle', 'dropdown').attr('aria-expanded', 'true'); $btnTools.parent().append( '