Commit 3d56d43d authored by Sergey Luzyanin's avatar Sergey Luzyanin

CDrwingDocument.SendMathToMenu -> apiBase.SendMathToMenu;

asyncFontEndLoaded_MathDraw, sendMathTypesToMenu -> apiBase
parent d9c668e8
...@@ -1447,6 +1447,7 @@ var editor; ...@@ -1447,6 +1447,7 @@ var editor;
this.asc_ApplyColorScheme(false); this.asc_ApplyColorScheme(false);
this.sendStandartTextures(); this.sendStandartTextures();
this.sendMathToMenu();
// Применяем пришедшие при открытии изменения // Применяем пришедшие при открытии изменения
this._applyFirstLoadChanges(); this._applyFirstLoadChanges();
......
This diff is collapsed.
...@@ -109,6 +109,8 @@ ...@@ -109,6 +109,8 @@
this.isChartEditor = false; this.isChartEditor = false;
this.isOpenedChartFrame = false; this.isOpenedChartFrame = false;
this.MathMenuLoad = false;
// CoAuthoring and Chat // CoAuthoring and Chat
this.User = undefined; this.User = undefined;
this.CoAuthoringApi = new AscCommon.CDocsCoApi(); this.CoAuthoringApi = new AscCommon.CDocsCoApi();
...@@ -991,6 +993,30 @@ ...@@ -991,6 +993,30 @@
this.sendEvent('asc_onInitStandartTextures', arr); this.sendEvent('asc_onInitStandartTextures', arr);
}; };
baseEditorsApi.prototype.sendMathToMenu = function ()
{
if (this.MathMenuLoad)
return;
// GENERATE_IMAGES
//var _MathPainter = new CMathPainter(this.m_oWordControl.m_oApi);
//_MathPainter.StartLoad();
//return;
var _MathPainter = new AscFormat.CMathPainter(this);
_MathPainter.Generate();
this.MathMenuLoad = true;
};
baseEditorsApi.prototype.sendMathTypesToMenu = function(_math)
{
this.sendEvent("asc_onMathTypes", _math);
};
baseEditorsApi.prototype.asyncFontEndLoaded_MathDraw = function(Obj)
{
this.sync_EndAction(c_oAscAsyncActionType.Information, c_oAscAsyncAction.LoadFont);
Obj.Generate2();
};
// plugins // plugins
baseEditorsApi.prototype.asc_pluginsRegister = function(basePath, plugins) baseEditorsApi.prototype.asc_pluginsRegister = function(basePath, plugins)
{ {
......
...@@ -4845,6 +4845,7 @@ background-repeat: no-repeat;\ ...@@ -4845,6 +4845,7 @@ background-repeat: no-repeat;\
if (!this.isViewMode) if (!this.isViewMode)
{ {
this.sendStandartTextures(); this.sendStandartTextures();
this.sendMathToMenu();
if (this.shapeElementId) if (this.shapeElementId)
{ {
this.WordControl.m_oDrawingDocument.InitGuiCanvasShape(this.shapeElementId); this.WordControl.m_oDrawingDocument.InitGuiCanvasShape(this.shapeElementId);
......
This diff is collapsed.
...@@ -1411,15 +1411,7 @@ background-repeat: no-repeat;\ ...@@ -1411,15 +1411,7 @@ background-repeat: no-repeat;\
} }
}; };
asc_docs_api.prototype.asyncFontEndLoaded_MathDraw = function(Obj)
{
this.sync_EndAction(c_oAscAsyncActionType.Information, c_oAscAsyncAction.LoadFont);
Obj.Generate2();
};
asc_docs_api.prototype.sendMathTypesToMenu = function(_math)
{
this.sendEvent("asc_onMathTypes", _math);
};
asc_docs_api.prototype.asyncFontEndLoaded_DropCap = function(Obj) asc_docs_api.prototype.asyncFontEndLoaded_DropCap = function(Obj)
{ {
...@@ -6823,7 +6815,7 @@ background-repeat: no-repeat;\ ...@@ -6823,7 +6815,7 @@ background-repeat: no-repeat;\
if (!this.isViewMode) if (!this.isViewMode)
{ {
this.sendStandartTextures(); this.sendStandartTextures();
this.WordControl.m_oDrawingDocument.SendMathToMenu(); this.sendMathToMenu();
if (this.shapeElementId) if (this.shapeElementId)
{ {
......
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