Commit ad48dce0 authored by Sergey.Luzyanin's avatar Sergey.Luzyanin

В IdCounter добавлен флаг m_bRead для отключения компиляции настроек во время чтения

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@68166 954022d7-b5bf-4e40-9824-e11837661b57
parent f6c72bef
......@@ -1491,6 +1491,7 @@ function CIdCounter ()
{
this.m_sUserId = null;
this.m_bLoad = true;
this.m_bRead = false;
this.m_nIdCounterLoad = 0; // Счетчик Id для загрузки
this.m_nIdCounterEdit = 0; // Счетчик Id для работы
}
......
......@@ -29,6 +29,11 @@ CShape.prototype.setDrawingBase = function(drawingBase)
}
};
CShape.prototype.Get_Numbering = function()
{
return new CNumbering();
};
CShape.prototype.getTextArtTranslate = function()
{
return Asc["editor"].textArtTranslate;
......
......@@ -2714,6 +2714,7 @@
ReadFromBinaryWord : function(sBase64, worksheet)
{
History.TurnOff();
g_oIdCounter.m_bRead = true;
//передавать CDrawingDocument текущего worksheet
var oTempDrawingDocument = worksheet.model.DrawingDocument;
......@@ -2737,6 +2738,7 @@
window.global_pptx_content_loader.End_UseFullUrl();
History.TurnOn();
g_oIdCounter.m_bRead = false;
editor = oOldEditor;
return oRes;
......
......@@ -716,6 +716,10 @@ CShape.prototype.setParent2 = function(parent)
}
}
};
CShape.prototype.Get_Numbering = function()
{
return new CNumbering();
};
CShape.prototype.getIsSingleBody = function(x, y)
{
if(!this.isPlaceholder())
......
......@@ -9780,7 +9780,7 @@ CDocumentContent.prototype.Get_NumberingInfo = function(NumberingEngine, ParaId,
};
CDocumentContent.prototype.private_RecalculateNumbering = function(Elements)
{
if (true === g_oIdCounter.m_bLoad)
if (true === g_oIdCounter.m_bLoad || true === g_oIdCounter.m_bRead)
return;
for (var Index = 0, Count = Elements.length; Index < Count; ++Index)
......
......@@ -7734,7 +7734,7 @@ Paragraph.prototype =
{
if ( true === this.CompiledPr.NeedRecalc )
{
if (undefined !== this.Parent && null !== this.Parent && true !== g_oIdCounter.m_bLoad)
if (undefined !== this.Parent && null !== this.Parent && true !== g_oIdCounter.m_bLoad && true !== g_oIdCounter.m_bRead)
{
this.CompiledPr.Pr = this.Internal_CompileParaPr2();
if(!this.bFromDocument)
......
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