summaryrefslogtreecommitdiff
path: root/drawinglayer
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@suse.cz>2012-06-11 16:41:34 +0200
committerJan Holesovsky <kendy@suse.cz>2012-06-12 16:31:43 +0200
commit6d78c490b0923c22d125286ebdae2e41edd28f6c (patch)
tree911ec6d9b8ab876db06e296a2e2517da797d8d30 /drawinglayer
parent99ced0bdaedeedd13de73a66e159f45cada6e3b4 (diff)
Get rid of GRADIENT_* defines, they conflict with Windows GDI types.
Change-Id: Ia0bc37f81b7213b20fc5093beb46d7a05b1ac931
Diffstat (limited to 'drawinglayer')
-rw-r--r--drawinglayer/source/primitive2d/metafileprimitive2d.cxx12
-rw-r--r--drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx26
2 files changed, 19 insertions, 19 deletions
diff --git a/drawinglayer/source/primitive2d/metafileprimitive2d.cxx b/drawinglayer/source/primitive2d/metafileprimitive2d.cxx
index 448ae143a493..fa5b1ae1a9f0 100644
--- a/drawinglayer/source/primitive2d/metafileprimitive2d.cxx
+++ b/drawinglayer/source/primitive2d/metafileprimitive2d.cxx
@@ -892,32 +892,32 @@ namespace
switch(rGradient.GetStyle())
{
- case GRADIENT_LINEAR :
+ case GradientStyle_LINEAR :
{
aGradientStyle = drawinglayer::attribute::GRADIENTSTYLE_LINEAR;
break;
}
- case GRADIENT_AXIAL :
+ case GradientStyle_AXIAL :
{
aGradientStyle = drawinglayer::attribute::GRADIENTSTYLE_AXIAL;
break;
}
- case GRADIENT_RADIAL :
+ case GradientStyle_RADIAL :
{
aGradientStyle = drawinglayer::attribute::GRADIENTSTYLE_RADIAL;
break;
}
- case GRADIENT_ELLIPTICAL :
+ case GradientStyle_ELLIPTICAL :
{
aGradientStyle = drawinglayer::attribute::GRADIENTSTYLE_ELLIPTICAL;
break;
}
- case GRADIENT_SQUARE :
+ case GradientStyle_SQUARE :
{
aGradientStyle = drawinglayer::attribute::GRADIENTSTYLE_SQUARE;
break;
}
- default : // GRADIENT_RECT
+ default : // GradientStyle_RECT
{
aGradientStyle = drawinglayer::attribute::GRADIENTSTYLE_RECT;
break;
diff --git a/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx b/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx
index 7387700edaa1..3cad086529f6 100644
--- a/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx
+++ b/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx
@@ -340,32 +340,32 @@ namespace drawinglayer
{
default : // attribute::GRADIENTSTYLE_LINEAR :
{
- o_rVCLGradient.SetStyle(GRADIENT_LINEAR);
+ o_rVCLGradient.SetStyle(GradientStyle_LINEAR);
break;
}
case attribute::GRADIENTSTYLE_AXIAL :
{
- o_rVCLGradient.SetStyle(GRADIENT_AXIAL);
+ o_rVCLGradient.SetStyle(GradientStyle_AXIAL);
break;
}
case attribute::GRADIENTSTYLE_RADIAL :
{
- o_rVCLGradient.SetStyle(GRADIENT_RADIAL);
+ o_rVCLGradient.SetStyle(GradientStyle_RADIAL);
break;
}
case attribute::GRADIENTSTYLE_ELLIPTICAL :
{
- o_rVCLGradient.SetStyle(GRADIENT_ELLIPTICAL);
+ o_rVCLGradient.SetStyle(GradientStyle_ELLIPTICAL);
break;
}
case attribute::GRADIENTSTYLE_SQUARE :
{
- o_rVCLGradient.SetStyle(GRADIENT_SQUARE);
+ o_rVCLGradient.SetStyle(GradientStyle_SQUARE);
break;
}
case attribute::GRADIENTSTYLE_RECT :
{
- o_rVCLGradient.SetStyle(GRADIENT_RECT);
+ o_rVCLGradient.SetStyle(GradientStyle_RECT);
break;
}
}
@@ -1542,16 +1542,16 @@ namespace drawinglayer
switch(aVCLGradient.GetStyle())
{
- default : // GRADIENT_LINEAR:
- case GRADIENT_AXIAL:
+ default : // GradientStyle_LINEAR:
+ case GradientStyle_AXIAL:
eGrad = SvtGraphicFill::gradientLinear;
break;
- case GRADIENT_RADIAL:
- case GRADIENT_ELLIPTICAL:
+ case GradientStyle_RADIAL:
+ case GradientStyle_ELLIPTICAL:
eGrad = SvtGraphicFill::gradientRadial;
break;
- case GRADIENT_SQUARE:
- case GRADIENT_RECT:
+ case GradientStyle_SQUARE:
+ case GradientStyle_RECT:
eGrad = SvtGraphicFill::gradientRectangular;
break;
}
@@ -1828,7 +1828,7 @@ namespace drawinglayer
const sal_uInt8 nTransPercentVcl((sal_uInt8)basegfx::fround(rUniTransparenceCandidate.getTransparence() * 255.0));
const Color aTransColor(nTransPercentVcl, nTransPercentVcl, nTransPercentVcl);
- aVCLGradient.SetStyle(GRADIENT_LINEAR);
+ aVCLGradient.SetStyle(GradientStyle_LINEAR);
aVCLGradient.SetStartColor(aTransColor);
aVCLGradient.SetEndColor(aTransColor);
aVCLGradient.SetAngle(0);