Commit 5070878b authored by Sergey.Luzyanin's avatar Sergey.Luzyanin Committed by Alexander.Trofimov

Заглушка в getStyles у TextBody

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@68112 954022d7-b5bf-4e40-9824-e11837661b57
parent 27147673
...@@ -663,7 +663,17 @@ CTextBody.prototype = ...@@ -663,7 +663,17 @@ CTextBody.prototype =
Get_Styles: function(level) Get_Styles: function(level)
{ {
return this.parent.getStyles(level); if(this.parent)
{
return this.parent.getStyles(level);
}
return ExecuteNoHistory(function(){
var oStyles = new CStyles(false);
var Style_Para_Def = new CStyle( "Normal", null, null, styletype_Paragraph );
Style_Para_Def.Create_Default_Paragraph();
oStyles.Default.Paragraph = oStyles.Add( Style_Para_Def );
return {styles: oStyles, lastId: oStyles.Default.Paragraph};
}, this, []);
}, },
Is_Cell: function() Is_Cell: function()
......
...@@ -489,6 +489,8 @@ CHistory.prototype.Reset_RecalcIndex = function() ...@@ -489,6 +489,8 @@ CHistory.prototype.Reset_RecalcIndex = function()
this.RecIndex = this.Index; this.RecIndex = this.Index;
}; };
CHistory.prototype.Add_RecalcNumPr = function()
{};
CHistory.prototype.Set_Additional_ExtendDocumentToPos = function() CHistory.prototype.Set_Additional_ExtendDocumentToPos = function()
{ {
......
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