Commit 16733c8b authored by Ilya.Kirillov's avatar Ilya.Kirillov Committed by Alexander.Trofimov

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@55917 954022d7-b5bf-4e40-9824-e11837661b57
parent 39f48f6b
...@@ -4566,6 +4566,9 @@ CDocumentShd.prototype = ...@@ -4566,6 +4566,9 @@ CDocumentShd.prototype =
Compare : function(Shd) Compare : function(Shd)
{ {
if ( undefined === Shd )
return false;
if ( this.Value === Shd.Value ) if ( this.Value === Shd.Value )
{ {
switch ( this.Value ) switch ( this.Value )
...@@ -4583,6 +4586,18 @@ CDocumentShd.prototype = ...@@ -4583,6 +4586,18 @@ CDocumentShd.prototype =
return false; return false;
}, },
Get_Color : function(Paragraph)
{
if ( undefined !== this.Unifill )
{
this.Unifill.check(Paragraph.Get_Theme(), Paragraph.Get_ColorMap());
var RGBA = this.Unifill.getRGBAColor();
return new CDocumentColor( RGBA.R, RGBA.G, RGBA.B, false );
}
else
return this.Color;
},
Init_Default : function() Init_Default : function()
{ {
this.Value = shd_Nil; this.Value = shd_Nil;
...@@ -4592,6 +4607,12 @@ CDocumentShd.prototype = ...@@ -4592,6 +4607,12 @@ CDocumentShd.prototype =
Set_FromObject : function(Shd) Set_FromObject : function(Shd)
{ {
if ( undefined === Shd )
{
this.Value = shd_Nil;
return;
}
this.Value = Shd.Value; this.Value = Shd.Value;
if ( shd_Nil != Shd.Value ) if ( shd_Nil != Shd.Value )
{ {
......
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