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

отдача в интерфейс заливки параграфа из темы

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@57614 954022d7-b5bf-4e40-9824-e11837661b57
parent 8eaa7a64
...@@ -873,8 +873,15 @@ function asc_CParagraphShd(obj) { ...@@ -873,8 +873,15 @@ function asc_CParagraphShd(obj) {
if (obj) { if (obj) {
this.Value = (undefined != obj.Value) ? obj.Value : null; this.Value = (undefined != obj.Value) ? obj.Value : null;
if(obj.Unifill && obj.Unifill.fill && obj.Unifill.fill.type === FILL_TYPE_SOLID && obj.Unifill.fill.color)
{
this.Color = CreateAscColor(obj.Unifill.fill.color);
}
else
{
this.Color = (undefined != obj.Color && null != obj.Color) ? CreateAscColorCustom( obj.Color.r, obj.Color.g, obj.Color.b ) : null; this.Color = (undefined != obj.Color && null != obj.Color) ? CreateAscColorCustom( obj.Color.r, obj.Color.g, obj.Color.b ) : null;
} }
}
else { else {
this.Value = shd_Nil; this.Value = shd_Nil;
this.Color = CreateAscColorCustom(255, 255, 255); this.Color = CreateAscColorCustom(255, 255, 255);
......
...@@ -1542,19 +1542,10 @@ CGroupShape.prototype = ...@@ -1542,19 +1542,10 @@ CGroupShape.prototype =
updateCoordinatesAfterInternalResize: function() updateCoordinatesAfterInternalResize: function()
{ {
this.normalize(); this.normalize();
//var scale_coeffs = this.getResultScaleCoefficients();
for(var i = 0; i < this.spTree.length; ++i) for(var i = 0; i < this.spTree.length; ++i)
{ {
if(this.spTree[i].isGroup()) if(this.spTree[i].isGroup())
this.spTree[i].updateCoordinatesAfterInternalResize(); this.spTree[i].updateCoordinatesAfterInternalResize();
/* else
{
var xfrm2 = this.spTree[i].spPr.xfrm;
xfrm2.setOffX(xfrm2.offX*scale_coeffs.cx);
xfrm2.setOffY(xfrm2.offY*scale_coeffs.cy);
xfrm2.setExtX(xfrm2.extX*scale_coeffs.cx);
xfrm2.setExtY(xfrm2.extY*scale_coeffs.cy);
}*/
} }
var sp_tree = this.spTree; var sp_tree = this.spTree;
......
...@@ -7486,6 +7486,10 @@ CDocument.prototype = ...@@ -7486,6 +7486,10 @@ CDocument.prototype =
if ( undefined != ParaPr.Tabs ) if ( undefined != ParaPr.Tabs )
editor.Update_ParaTab( Default_Tab_Stop, ParaPr.Tabs ); editor.Update_ParaTab( Default_Tab_Stop, ParaPr.Tabs );
if(ParaPr.Shd && ParaPr.Shd.Unifill)
{
ParaPr.Shd.Unifill.check(this.theme, this.Get_ColorMap());
}
editor.UpdateParagraphProp( ParaPr ); editor.UpdateParagraphProp( ParaPr );
} }
}, },
...@@ -7521,6 +7525,10 @@ CDocument.prototype = ...@@ -7521,6 +7525,10 @@ CDocument.prototype =
var RGBAColor = TextPr.Unifill.getRGBAColor(); var RGBAColor = TextPr.Unifill.getRGBAColor();
TextPr.Color = new CDocumentColor(RGBAColor.R, RGBAColor.G, RGBAColor.B, false); TextPr.Color = new CDocumentColor(RGBAColor.R, RGBAColor.G, RGBAColor.B, false);
} }
if(TextPr.Shd && TextPr.Shd.Unifill)
{
TextPr.Shd.Unifill.check(this.theme, this.Get_ColorMap());
}
editor.UpdateTextPr(TextPr); editor.UpdateTextPr(TextPr);
} }
}, },
......
...@@ -1834,8 +1834,16 @@ function CParagraphShd (obj) ...@@ -1834,8 +1834,16 @@ function CParagraphShd (obj)
if (obj) if (obj)
{ {
this.Value = (undefined != obj.Value) ? obj.Value : null; this.Value = (undefined != obj.Value) ? obj.Value : null;
if(obj.Unifill && obj.Unifill.fill && obj.Unifill.fill.type === FILL_TYPE_SOLID && obj.Unifill.fill.color)
{
this.Color = CreateAscColor(obj.Unifill.fill.color);
}
else
{
this.Color = (undefined != obj.Color && null != obj.Color) ? CreateAscColorCustom( obj.Color.r, obj.Color.g, obj.Color.b ) : null; this.Color = (undefined != obj.Color && null != obj.Color) ? CreateAscColorCustom( obj.Color.r, obj.Color.g, obj.Color.b ) : null;
} }
}
else else
{ {
this.Value = shd_Nil; this.Value = shd_Nil;
......
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