Commit e91eeafe authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander.Trofimov

change theme colors -> resend styles

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@55958 954022d7-b5bf-4e40-9824-e11837661b57
parent 0b55822d
...@@ -4600,6 +4600,13 @@ function CDrawingDocument() ...@@ -4600,6 +4600,13 @@ function CDrawingDocument()
} }
this.m_oWordControl.m_oApi.sync_SendThemeColors(_ret_array, standart_colors); this.m_oWordControl.m_oApi.sync_SendThemeColors(_ret_array, standart_colors);
// regenerate styles
if (null == this.m_oWordControl.m_oApi._gui_styles)
{
var StylesPainter = new CStylesPainter();
StylesPainter.GenerateStyles(this.m_oWordControl.m_oApi, this.m_oWordControl.m_oLogicDocument.Get_Styles().Style);
}
} }
this.SendThemeColorScheme = function() this.SendThemeColorScheme = function()
......
...@@ -3457,6 +3457,7 @@ asc_docs_api.prototype.sync_InitEditorFonts = function(gui_fonts){ ...@@ -3457,6 +3457,7 @@ asc_docs_api.prototype.sync_InitEditorFonts = function(gui_fonts){
} }
asc_docs_api.prototype.sync_InitEditorStyles = function(styles_painter){ asc_docs_api.prototype.sync_InitEditorStyles = function(styles_painter){
this._gui_styles = styles_painter; this._gui_styles = styles_painter;
this.asc_fireCallback("asc_onInitEditorStyles", styles_painter);
} }
asc_docs_api.prototype.sync_InitEditorTableStyles = function(styles, is_retina_enabled){ asc_docs_api.prototype.sync_InitEditorTableStyles = function(styles, is_retina_enabled){
this.asc_fireCallback("asc_onInitTableTemplates",styles, is_retina_enabled); this.asc_fireCallback("asc_onInitTableTemplates",styles, is_retina_enabled);
......
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