Commit e7cea7c8 authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

Убрал guiStyles, tablePictures для отложенной отправки стилей

Убрал get_PropertyEditorStyles

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@66259 954022d7-b5bf-4e40-9824-e11837661b57
parent 9fe4da29
......@@ -52,14 +52,11 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS";
this.DocInfo = null;
// объекты, нужные для отправки в тулбар (шрифты, стили)
this.guiStyles = null; // Переменная для сохранения стилей ячеек
this._gui_control_colors = null;
this._gui_color_schemes = null;
this.GuiControlColorsMap = null;
this.IsSendStandartColors = false;
this.tablePictures = null;
this.asyncMethodCallback = undefined;
// Переменная отвечает, загрузились ли фонты
......@@ -985,13 +982,7 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS";
проверяем, подписан ли кто-то на эвент? Если да, то отправляем и больше ничего не делаем.
Если никто не подписан, то сохраняем у себя переменную и как только кто-то подписывается - отправляем ее
*/
if (null !== this.guiStyles && "asc_onInitEditorStyles" === name) {
this.handlers.trigger("asc_onInitEditorStyles", this.guiStyles);
this.guiStyles = null;
} else if (null !== this.tablePictures && "asc_onInitTablePictures" === name) {
this.handlers.trigger("asc_onInitTablePictures", this.tablePictures);
this.tablePictures = null;
} else if (null !== this._gui_control_colors && "asc_onSendThemeColors" === name) {
if (null !== this._gui_control_colors && "asc_onSendThemeColors" === name) {
this.handlers.trigger("asc_onSendThemeColors", this._gui_control_colors.Colors, this._gui_control_colors.StandartColors);
this._gui_control_colors = null;
} else if (null !== this._gui_color_schemes && "asc_onSendThemeColorSchemes" === name) {
......@@ -1624,14 +1615,9 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS";
}
// Отправка стилей форматированных таблиц
var tablePictures = this.wb.getTablePictures();
var bResult = this.handlers.trigger("asc_onInitTablePictures", tablePictures);
this.tablePictures = (false === bResult) ? tablePictures : null;
this.handlers.trigger("asc_onInitTablePictures", this.wb.getTablePictures());
// Отправка стилей ячеек
var guiStyles = this.wb.getCellStyles();
bResult = this.handlers.trigger("asc_onInitEditorStyles", guiStyles);
this.guiStyles = (false === bResult) ? guiStyles : null;
this.handlers.trigger("asc_onInitEditorStyles", this.wb.getCellStyles());
}
};
......
......@@ -361,7 +361,6 @@ function asc_docs_api(name)
this.CollaborativeMarksShowType = c_oAscCollaborativeMarksShowType.All;
// объекты, нужные для отправки в тулбар (шрифты, стили)
this._gui_styles = null;
this._gui_control_colors = null;
this._gui_color_schemes = null;
......@@ -972,10 +971,6 @@ asc_docs_api.prototype.get_PropertyStandartTextures = function()
}
return arr;
};
asc_docs_api.prototype.get_PropertyEditorStyles = function()
{
return this._gui_styles;
};
asc_docs_api.prototype.get_PropertyThemeColors = function()
{
var _ret = [this._gui_control_colors.Colors, this._gui_control_colors.StandartColors];
......@@ -2886,13 +2881,8 @@ asc_docs_api.prototype.sync_PrLineSpacingCallBack = function(LineSpacing){
this.asc_fireCallback("asc_onLineSpacing", new asc_CParagraphInd( LineSpacing ) );
};
asc_docs_api.prototype.sync_InitEditorStyles = function(styles_painter){
this._gui_styles = styles_painter;
this.asc_fireCallback("asc_onInitEditorStyles", styles_painter);
};
asc_docs_api.prototype.sync_InitEditorStyles2 = function(){
if (null != this._gui_styles)
this.asc_fireCallback("asc_onInitEditorStyles", this._gui_styles);
};
asc_docs_api.prototype.sync_InitEditorTableStyles = function(styles, is_retina_enabled){
this.asc_fireCallback("asc_onInitTableTemplates",styles, is_retina_enabled);
};
......@@ -6507,7 +6497,6 @@ asc_docs_api.prototype.SetViewMode = function(isViewMode) {
this.WordControl.checkNeedRules();
this.WordControl.m_oDrawingDocument.ClearCachePages();
this.WordControl.OnResize(true);
this.sync_InitEditorStyles2();
}
};
......
......@@ -123,7 +123,6 @@ asc_docs_api.prototype['get_PropertyEditorShapes'] = asc_docs_api.prototype.get_
asc_docs_api.prototype['get_PropertyEditorTextArts'] = asc_docs_api.prototype.get_PropertyEditorTextArts;
asc_docs_api.prototype['get_PropertyEditorFonts'] = asc_docs_api.prototype.get_PropertyEditorFonts;
asc_docs_api.prototype['get_PropertyStandartTextures'] = asc_docs_api.prototype.get_PropertyStandartTextures;
asc_docs_api.prototype['get_PropertyEditorStyles'] = asc_docs_api.prototype.get_PropertyEditorStyles;
asc_docs_api.prototype['get_PropertyThemeColors'] = asc_docs_api.prototype.get_PropertyThemeColors;
asc_docs_api.prototype['get_PropertyThemeColorSchemes'] = asc_docs_api.prototype.get_PropertyThemeColorSchemes;
asc_docs_api.prototype['_coAuthoringSetChange'] = asc_docs_api.prototype._coAuthoringSetChange;
......@@ -237,8 +236,6 @@ asc_docs_api.prototype['sync_StrikeoutCallBack'] = asc_docs_api.prototype.sync_S
asc_docs_api.prototype['sync_TextPrFontFamilyCallBack'] = asc_docs_api.prototype.sync_TextPrFontFamilyCallBack;
asc_docs_api.prototype['sync_TextPrFontSizeCallBack'] = asc_docs_api.prototype.sync_TextPrFontSizeCallBack;
asc_docs_api.prototype['sync_PrLineSpacingCallBack'] = asc_docs_api.prototype.sync_PrLineSpacingCallBack;
asc_docs_api.prototype['sync_InitEditorStyles'] = asc_docs_api.prototype.sync_InitEditorStyles;
asc_docs_api.prototype['sync_InitEditorStyles2'] = asc_docs_api.prototype.sync_InitEditorStyles2;
asc_docs_api.prototype['sync_InitEditorTableStyles'] = asc_docs_api.prototype.sync_InitEditorTableStyles;
asc_docs_api.prototype['paraApply'] = asc_docs_api.prototype.paraApply;
asc_docs_api.prototype['put_PrAlign'] = asc_docs_api.prototype.put_PrAlign;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment