Commit 5fdc47ed authored by Anna.Pavlova's avatar Anna.Pavlova Committed by Alexander.Trofimov

Fix bug 29769

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@64191 954022d7-b5bf-4e40-9824-e11837661b57
parent 28bc0de6
...@@ -461,10 +461,6 @@ CMathPageInfo.prototype.ReverseCurrentMaxW = function(_Line) ...@@ -461,10 +461,6 @@ CMathPageInfo.prototype.ReverseCurrentMaxW = function(_Line)
var Line = this.Info[this.CurPage].GetNumberLine(_Line - this.StartLine); var Line = this.Info[this.CurPage].GetNumberLine(_Line - this.StartLine);
this.Info[this.CurPage].LineWidths.ReverseMaxW(Line); this.Info[this.CurPage].LineWidths.ReverseMaxW(Line);
}; };
CMathPageInfo.prototype.GetCurrentMaxWidth = function()
{
return this.Info[this.CurPage].GetMax();
};
CMathPageInfo.prototype.GetCurrentMaxWidthAllLines = function() CMathPageInfo.prototype.GetCurrentMaxWidthAllLines = function()
{ {
var MaxW = 0; var MaxW = 0;
...@@ -493,22 +489,6 @@ CMathPageInfo.prototype.GetMaxW = function(_Page) // without first page ...@@ -493,22 +489,6 @@ CMathPageInfo.prototype.GetMaxW = function(_Page) // without first page
return this.Info[Page].GetMax(); return this.Info[Page].GetMax();
}; };
CMathPageInfo.prototype.SetCurrentMaxWidth = function(MaxW)
{
this.Info[this.CurPage].MaxW = MaxW;
};
CMathPageInfo.prototype.private_CheckInfo = function(_CurrentPage)
{
var Lng = this.Info.length;
if(_CurrentPage >= Lng)
{
var PrevInfo = this.Info[Lng - 1];
var FirstLineOnPage = Lng == 0 ? 0 : PrevInfo.FirstLineOnPage + PrevInfo.GetCountLines();
this.Info[_CurrentPage] = new CMathInfo();
this.Info[_CurrentPage].FirstLineOnPage = FirstLineOnPage;
}
};
CMathPageInfo.prototype.GetFirstLineOnPage = function(_Page) CMathPageInfo.prototype.GetFirstLineOnPage = function(_Page)
{ {
var Page = _Page - this.StartPage; var Page = _Page - this.StartPage;
...@@ -1904,6 +1884,10 @@ ParaMath.prototype.MathToImageConverter = function(bCopy, _canvasInput, _widthPx ...@@ -1904,6 +1884,10 @@ ParaMath.prototype.MathToImageConverter = function(bCopy, _canvasInput, _widthPx
} }
return null; return null;
}; };
ParaMath.prototype.Get_FirstTextPr = function()
{
return this.Root.Get_FirstTextPr();
};
ParaMath.prototype.GetFirstRPrp = function() ParaMath.prototype.GetFirstRPrp = function()
{ {
return this.Root.getFirstRPrp(); return this.Root.getFirstRPrp();
......
...@@ -1104,6 +1104,11 @@ CMathContent.prototype.hidePlaceholder = function(flag) ...@@ -1104,6 +1104,11 @@ CMathContent.prototype.hidePlaceholder = function(flag)
this.plhHide = flag; this.plhHide = flag;
}; };
///////// RunPrp, CtrPrp ///////// RunPrp, CtrPrp
CMathContent.prototype.Get_FirstTextPr = function()
{
return this.Content[0].Get_FirstTextPr();
};
CMathContent.prototype.getFirstRPrp = function() CMathContent.prototype.getFirstRPrp = function()
{ {
return this.Content[0].Get_CompiledPr(true); return this.Content[0].Get_CompiledPr(true);
......
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