Commit 866a1876 authored by Sergey.Luzyanin's avatar Sergey.Luzyanin Committed by Alexander.Trofimov

добавлены свойства TextOutline и TextFill в CTextPr

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@62563 954022d7-b5bf-4e40-9824-e11837661b57
parent a7b1b8b9
...@@ -8903,7 +8903,7 @@ ClrScheme.prototype = ...@@ -8903,7 +8903,7 @@ ClrScheme.prototype =
} }
for(var _clr_index = g_clr_MIN; _clr_index <= g_clr_MAX; ++_clr_index) for(var _clr_index = g_clr_MIN; _clr_index <= g_clr_MAX; ++_clr_index)
{ {
if(this.colors[i] != clrScheme.colors[i]) if(this.colors[_clr_index] != clrScheme.colors[_clr_index])
{ {
return false; return false;
} }
......
...@@ -6751,6 +6751,9 @@ function CTextPr() ...@@ -6751,6 +6751,9 @@ function CTextPr()
this.Shd = undefined; this.Shd = undefined;
this.Vanish = undefined; this.Vanish = undefined;
this.TextOutline = undefined;
this.TextFill = undefined;
} }
CTextPr.prototype = CTextPr.prototype =
...@@ -6784,6 +6787,8 @@ CTextPr.prototype = ...@@ -6784,6 +6787,8 @@ CTextPr.prototype =
this.FontRef = undefined; this.FontRef = undefined;
this.Shd = undefined; this.Shd = undefined;
this.Vanish = undefined; this.Vanish = undefined;
this.TextOutline = undefined;
this.TextFill = undefined;
}, },
Copy : function(bCopyPrChange) Copy : function(bCopyPrChange)
...@@ -6843,7 +6848,14 @@ CTextPr.prototype = ...@@ -6843,7 +6848,14 @@ CTextPr.prototype =
if (undefined !== this.PrChange) if (undefined !== this.PrChange)
TextPr.PrChange = this.PrChange.Copy(); TextPr.PrChange = this.PrChange.Copy();
} }
if(undefined != this.TextOutline)
{
TextPr.TextOutline = this.TextOutline.createDuplicate();
}
if(undefined != this.TextFill)
{
TextPr.TextFill = this.TextFill.createDuplicate();
}
return TextPr; return TextPr;
}, },
...@@ -6940,6 +6952,23 @@ CTextPr.prototype = ...@@ -6940,6 +6952,23 @@ CTextPr.prototype =
if ( undefined !== TextPr.Vanish ) if ( undefined !== TextPr.Vanish )
this.Vanish = TextPr.Vanish; this.Vanish = TextPr.Vanish;
if(undefined != TextPr.TextOutline)
{
this.TextOutline = TextPr.TextOutline.createDuplicate();
}
else
{
this.TextOutline = undefined;
}
if(undefined != TextPr.TextFill)
{
this.TextFill = TextPr.TextFill.createDuplicate();
}
else
{
this.TextFill = undefined;
}
}, },
Init_Default : function() Init_Default : function()
...@@ -6974,6 +7003,9 @@ CTextPr.prototype = ...@@ -6974,6 +7003,9 @@ CTextPr.prototype =
this.FontRef = undefined; this.FontRef = undefined;
this.Shd = undefined; this.Shd = undefined;
this.Vanish = false; this.Vanish = false;
this.TextOutline = undefined;
this.TextFill = undefined;
}, },
Set_FromObject : function(TextPr) Set_FromObject : function(TextPr)
...@@ -7045,7 +7077,18 @@ CTextPr.prototype = ...@@ -7045,7 +7077,18 @@ CTextPr.prototype =
else else
this.Shd = undefined; this.Shd = undefined;
this.Vanish = TextPr.Vanish; this.Vanish = TextPr.Vanish;
if(undefined != TextPr.TextFill)
{
this.TextFill = TextPr.TextFill;
}
if(undefined != TextPr.TextOutline)
{
this.TextOutline = TextPr.TextOutline;
}
}, },
Check_PresentationPr: function() Check_PresentationPr: function()
...@@ -7181,6 +7224,19 @@ CTextPr.prototype = ...@@ -7181,6 +7224,19 @@ CTextPr.prototype =
if ( undefined !== this.Vanish && this.Vanish !== TextPr.Vanish ) if ( undefined !== this.Vanish && this.Vanish !== TextPr.Vanish )
this.Vanish = undefined; this.Vanish = undefined;
if(undefined !== this.Unifill && !this.Unifill.IsIdentical(TextPr.Unifill))
this.Unifill = undefined;
if(undefined !== this.TextFill && !this.TextFill.IsIdentical(TextPr.TextFill))
this.TextFill = undefined;
if(undefined !== this.TextOutline && !this.TextOutline.IsIdentical(TextPr.TextOutline))
this.TextOutline = undefined;
return this; return this;
}, },
...@@ -7360,6 +7416,16 @@ CTextPr.prototype = ...@@ -7360,6 +7416,16 @@ CTextPr.prototype =
this.PrChange.Write_ToBinary(Writer); this.PrChange.Write_ToBinary(Writer);
Flags |= 67108864; Flags |= 67108864;
} }
if(undefined !== this.TextOutline)
{
this.TextOutline.Write_ToBinary(Writer);
Flags |= 134217728;
}
if(undefined !== this.TextFill)
{
this.TextFill.Write_ToBinary(Writer);
Flags |= 268435456;
}
var EndPos = Writer.GetCurPosition(); var EndPos = Writer.GetCurPosition();
Writer.Seek( StartPos ); Writer.Seek( StartPos );
...@@ -7500,6 +7566,18 @@ CTextPr.prototype = ...@@ -7500,6 +7566,18 @@ CTextPr.prototype =
this.PrChange = new CTextPr(); this.PrChange = new CTextPr();
this.PrChange.Read_FromBinary(Reader); this.PrChange.Read_FromBinary(Reader);
} }
if(Flags & 134217728)
{
this.TextOutline = new CLn();
this.TextOutline.Read_FromBinary(Reader);
}
if(Flags & 268435456)
{
this.TextFill = new CUniFill();
this.TextFill.Read_FromBinary(Reader);
}
}, },
Check_NeedRecalc : function() Check_NeedRecalc : function()
...@@ -7761,6 +7839,13 @@ CTextPr.prototype = ...@@ -7761,6 +7839,13 @@ CTextPr.prototype =
if ((undefined === this.Unifill && undefined !== TextPr.Unifill) || (undefined !== this.Unifill && (undefined === TextPr.Unifill || true !== this.Unifill.IsIdentical(TextPr.Unifill)))) if ((undefined === this.Unifill && undefined !== TextPr.Unifill) || (undefined !== this.Unifill && (undefined === TextPr.Unifill || true !== this.Unifill.IsIdentical(TextPr.Unifill))))
return false; return false;
if ((undefined === this.TextOutline && undefined !== TextPr.TextOutline) || (undefined !== this.TextOutline && (undefined === TextPr.TextOutline || true !== this.TextOutline.IsIdentical(TextPr.TextOutline))))
return false;
if ((undefined === this.TextFill && undefined !== TextPr.TextFill) || (undefined !== this.TextFill && (undefined === TextPr.TextFill || true !== this.TextFill.IsIdentical(TextPr.TextFill))))
return false;
if (this.Vanish !== TextPr.Vanish) if (this.Vanish !== TextPr.Vanish)
return false; return false;
......
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