asc_onInitEditorShapes and get_PropertyEditorShapes -> asc_getPropertyEditorShapes

This commit is contained in:
Julia Radzhabova 2016-05-10 16:46:51 +03:00
parent 27bd505675
commit 1fe057d4b4
3 changed files with 12 additions and 6 deletions

View file

@ -705,7 +705,7 @@ define([
documentHolderController.getView('DocumentHolder').changePosition();
me.loadLanguages();
var shapes = me.api.get_PropertyEditorShapes();
var shapes = me.api.asc_getPropertyEditorShapes();
if (shapes)
me.fillAutoShapes(shapes[0], shapes[1]);
@ -853,7 +853,7 @@ define([
rightmenuController.createDelayedElements();
var shapes = me.api.get_PropertyEditorShapes();
var shapes = me.api.asc_getPropertyEditorShapes();
if (shapes)
me.fillAutoShapes(shapes[0], shapes[1]);

View file

@ -524,7 +524,7 @@ define([
me.api.asc_registerCallback('asc_onFocusObject', _.bind(me.onFocusObject, me));
me.api.asc_registerCallback('asc_onUpdateLayout', _.bind(me.fillLayoutsStore, me)); // slide layouts loading
me.updateThemeColors();
var shapes = me.api.get_PropertyEditorShapes();
var shapes = me.api.asc_getPropertyEditorShapes();
if (shapes)
me.fillAutoShapes(shapes[0], shapes[1]);
me.fillTextArt(me.api.asc_getTextArtPreviews());
@ -649,7 +649,7 @@ define([
me.api.asc_registerCallback('asc_onFocusObject', _.bind(me.onFocusObject, me));
me.api.asc_registerCallback('asc_onUpdateLayout', _.bind(me.fillLayoutsStore, me)); // slide layouts loading
me.updateThemeColors();
var shapes = me.api.get_PropertyEditorShapes();
var shapes = me.api.asc_getPropertyEditorShapes();
if (shapes)
me.fillAutoShapes(shapes[0], shapes[1]);
me.fillTextArt(me.api.asc_getTextArtPreviews());

View file

@ -512,11 +512,14 @@ define([
application.getController('Statusbar').getView('Statusbar').update();
application.getController('CellEditor').setMode(me.appOptions);
me.api.asc_registerCallback('asc_onInitEditorShapes', _.bind(me.fillAutoShapes, me));
me.api.asc_registerCallback('asc_onSaveUrl', _.bind(me.onSaveUrl, me));
me.api.asc_registerCallback('asc_onDocumentModifiedChanged', _.bind(me.onDocumentModifiedChanged, me));
me.api.asc_registerCallback('asc_onDocumentCanSaveChanged', _.bind(me.onDocumentCanSaveChanged, me));
me.api.asc_registerCallback('asc_onDownloadUrl', _.bind(me.onDownloadUrl, me));
var shapes = me.api.asc_getPropertyEditorShapes();
if (shapes)
me.fillAutoShapes(shapes[0], shapes[1]);
me.fillTextArt(me.api.asc_getTextArtPreviews());
me.updateThemeColors();
@ -630,7 +633,10 @@ define([
rightmenuController.createDelayedElements();
if (!me.appOptions.isEditMailMerge && !me.appOptions.isEditDiagram) {
me.api.asc_registerCallback('asc_onInitEditorShapes', _.bind(me.fillAutoShapes, me));
var shapes = me.api.asc_getPropertyEditorShapes();
if (shapes)
me.fillAutoShapes(shapes[0], shapes[1]);
me.fillTextArt(me.api.asc_getTextArtPreviews());
me.updateThemeColors();
}