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

git-svn-id:...

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 = ...@@ -7244,9 +7244,6 @@ Paragraph.prototype =
{ {
if ( true === this.Selection.Use || true === this.ApplyToAll ) 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 StartPos = this.Selection.StartPos;
var EndPos = this.Selection.EndPos; var EndPos = this.Selection.EndPos;
...@@ -9084,8 +9081,7 @@ Paragraph.prototype = ...@@ -9084,8 +9081,7 @@ Paragraph.prototype =
Document_Get_AllFontNames : function(AllFonts) Document_Get_AllFontNames : function(AllFonts)
{ {
// Смотрим на знак конца параграфа // Смотрим на знак конца параграфа
if ( undefined != this.TextPr.Value.FontFamily ) this.TextPr.Value.Document_Get_AllFontNames( AllFonts );
AllFonts[this.TextPr.Value.FontFamily.Name] = true;
var Count = this.Content.length; var Count = this.Content.length;
for ( var Index = 0; Index < Count; Index++ ) for ( var Index = 0; Index < Count; Index++ )
...@@ -9093,8 +9089,7 @@ Paragraph.prototype = ...@@ -9093,8 +9089,7 @@ Paragraph.prototype =
var Item = this.Content[Index]; var Item = this.Content[Index];
if ( para_TextPr === Item.Type ) if ( para_TextPr === Item.Type )
{ {
if ( undefined != Item.Value.FontFamily ) Item.Value.Document_Get_AllFontNames( AllFonts );
AllFonts[Item.Value.FontFamily.Name] = true;
} }
else if ( para_Drawing === Item.Type ) else if ( para_Drawing === Item.Type )
{ {
......
...@@ -4914,6 +4914,21 @@ CTextPr.prototype = ...@@ -4914,6 +4914,21 @@ CTextPr.prototype =
} }
return dFontKoef; 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