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

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@47178 954022d7-b5bf-4e40-9824-e11837661b57
parent 13bb30d5
......@@ -7244,9 +7244,6 @@ Paragraph.prototype =
{
if ( true === this.Selection.Use || true === this.ApplyToAll )
{
if ( pararecalc_0_None != this.RecalcInfo.Recalc_0_Type )
this.Internal_Recalculate_0();
var StartPos = this.Selection.StartPos;
var EndPos = this.Selection.EndPos;
......@@ -9084,8 +9081,7 @@ Paragraph.prototype =
Document_Get_AllFontNames : function(AllFonts)
{
// Смотрим на знак конца параграфа
if ( undefined != this.TextPr.Value.FontFamily )
AllFonts[this.TextPr.Value.FontFamily.Name] = true;
this.TextPr.Value.Document_Get_AllFontNames( AllFonts );
var Count = this.Content.length;
for ( var Index = 0; Index < Count; Index++ )
......@@ -9093,8 +9089,7 @@ Paragraph.prototype =
var Item = this.Content[Index];
if ( para_TextPr === Item.Type )
{
if ( undefined != Item.Value.FontFamily )
AllFonts[Item.Value.FontFamily.Name] = true;
Item.Value.Document_Get_AllFontNames( AllFonts );
}
else if ( para_Drawing === Item.Type )
{
......
......@@ -4914,6 +4914,21 @@ CTextPr.prototype =
}
return dFontKoef;
},
Document_Get_AllFontNames : function(AllFonts)
{
if ( undefined != this.RFonts.Ascii )
AllFonts[this.RFonts.Ascii.Name] = true;
if ( undefined != this.RFonts.HAnsi )
AllFonts[this.RFonts.HAnsi.Name] = true;
if ( undefined != this.RFonts.EastAsia )
AllFonts[this.RFonts.EastAsia.Name] = true;
if ( undefined != this.RFonts.CS )
AllFonts[this.RFonts.CS.Name] = 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