Commit f9ca7d1d authored by Ilya.Kirillov's avatar Ilya.Kirillov

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@47179 954022d7-b5bf-4e40-9824-e11837661b57
parent db9103ca
...@@ -182,24 +182,8 @@ CStyle.prototype = ...@@ -182,24 +182,8 @@ CStyle.prototype =
Document_Get_AllFontNames : function(AllFonts) Document_Get_AllFontNames : function(AllFonts)
{ {
if ( undefined != this.TextPr && undefined != this.TextPr.FontFamily ) if ( undefined != this.TextPr )
AllFonts[this.TextPr.FontFamily.Name] = true; this.TextPr.Document_Get_AllFontNames(AllFonts);
if ( undefined != this.TextPr && undefined != this.TextPr.RFonts )
{
var _rfonts = this.TextPr.RFonts;
if (!_rfonts)
return;
if (_rfonts.Ascii)
AllFonts[_rfonts.Ascii.Name] = true;
if (_rfonts.HAnsi)
AllFonts[_rfonts.HAnsi.Name] = true;
if (_rfonts.CS)
AllFonts[_rfonts.CS.Name] = true;
if (_rfonts.EastAsia)
AllFonts[_rfonts.EastAsia.Name] = true;
}
}, },
Create_Default_Paragraph : function() Create_Default_Paragraph : function()
...@@ -2603,8 +2587,7 @@ CStyles.prototype = ...@@ -2603,8 +2587,7 @@ CStyles.prototype =
Style.Document_Get_AllFontNames(AllFonts); Style.Document_Get_AllFontNames(AllFonts);
} }
if ( undefined != this.Default.TextPr.FontFamily ) this.Default.TextPr.Document_Get_AllFontNames(AllFonts);
AllFonts[this.Default.TextPr.FontFamily.Name] = true;
}, },
Get_AllTableStyles : function() Get_AllTableStyles : 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