Commit 8b5b260c authored by Ilya.Kirillov's avatar Ilya.Kirillov Committed by Alexander.Trofimov

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@50945 954022d7-b5bf-4e40-9824-e11837661b57
parent 86d14b5d
......@@ -1331,6 +1331,17 @@ CDocument.prototype =
}
},
Recalculate_AllTables : function()
{
var Count = this.Content.length;
for ( var Pos = 0; Pos < Count; Pos++ )
{
var Item = this.Content[Pos];
if ( type_Table === Item.GetType() )
Item.Recalculate_AllTables();
}
},
OnContentReDraw : function(StartPage, EndPage)
{
this.ReDraw( StartPage, EndPage );
......
......@@ -809,6 +809,17 @@ CDocumentContent.prototype =
return { Min : Min, Max : Max };
},
Recalculate_AllTables : function()
{
var Count = this.Content.length;
for ( var Pos = 0; Pos < Count; Pos++ )
{
var Item = this.Content[Pos];
if ( type_Table === Item.GetType() )
Item.Recalculate_AllTables();
}
},
ReDraw : function(StartPage, EndPage)
{
if ( "undefined" === typeof(StartPage) )
......
......@@ -3075,6 +3075,24 @@ CTable.prototype =
return { Min : Min, Max : Max };
},
Recalculate_AllTables : function()
{
this.Internal_RecalculateGrid();
this.Internal_Recalculate_Borders();
var RowsCount = this.Content.length;
for ( var CurRow = 0; CurRow < RowsCount; CurRow++ )
{
var Row = this.Content[CurRow];
var CellsCount = Row.Get_CellsCount();
for ( var CurCell = 0; CurCell < CellsCount; CurCell++ )
{
var Cell = Row.Get_Cell();
Cell.Content.Recalculate_AllTables();
}
}
},
Draw : function(nPageIndex, pGraphics)
{
var PNum = nPageIndex - this.PageNum;
......
......@@ -6147,6 +6147,7 @@ asc_docs_api.prototype.OpenDocumentEndCallback = function()
}
else
{
Document.Recalculate_AllTables();
this.ChangeReaderMode();
}
}
......
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