summaryrefslogtreecommitdiff
path: root/cppcanvas/source/mtfrenderer
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-09-02 10:53:14 +0200
committerNoel Grandin <noel@peralex.com>2016-09-05 08:21:46 +0200
commit12569802394fb0a9850fcdb0647a0845a803f1ff (patch)
tree9f5a626852adbf00378fc3dc80475ad896d957f8 /cppcanvas/source/mtfrenderer
parent933c0679d64a5585ebfd233180a1a818b493eec5 (diff)
convert GradientStyle to scoped enum
Change-Id: Ib740da708612df7a5f4b8c82262b9b1bd436604d
Diffstat (limited to 'cppcanvas/source/mtfrenderer')
-rw-r--r--cppcanvas/source/mtfrenderer/implrenderer.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/cppcanvas/source/mtfrenderer/implrenderer.cxx b/cppcanvas/source/mtfrenderer/implrenderer.cxx
index 04c85cd04296..6d7b165da0ca 100644
--- a/cppcanvas/source/mtfrenderer/implrenderer.cxx
+++ b/cppcanvas/source/mtfrenderer/implrenderer.cxx
@@ -552,7 +552,7 @@ namespace cppcanvas
uno::Sequence< uno::Sequence < double > > aColors(2);
uno::Sequence< double > aStops(2);
- if( rGradient.GetStyle() == GradientStyle_AXIAL )
+ if( rGradient.GetStyle() == GradientStyle::Axial )
{
aStops.realloc(3);
aColors.realloc(3);
@@ -589,7 +589,7 @@ namespace cppcanvas
OUString aGradientService;
switch( rGradient.GetStyle() )
{
- case GradientStyle_LINEAR:
+ case GradientStyle::Linear:
aGradInfo = basegfx::tools::createLinearODFGradientInfo(
aBounds,
nSteps,
@@ -601,7 +601,7 @@ namespace cppcanvas
aGradientService = "LinearGradient";
break;
- case GradientStyle_AXIAL:
+ case GradientStyle::Axial:
{
// Adapt the border so that it is suitable
// for the axial gradient. An axial
@@ -635,7 +635,7 @@ namespace cppcanvas
break;
}
- case GradientStyle_RADIAL:
+ case GradientStyle::Radial:
aGradInfo = basegfx::tools::createRadialODFGradientInfo(
aBounds,
aOffset,
@@ -644,7 +644,7 @@ namespace cppcanvas
aGradientService = "EllipticalGradient";
break;
- case GradientStyle_ELLIPTICAL:
+ case GradientStyle::Elliptical:
aGradInfo = basegfx::tools::createEllipticalODFGradientInfo(
aBounds,
aOffset,
@@ -654,7 +654,7 @@ namespace cppcanvas
aGradientService = "EllipticalGradient";
break;
- case GradientStyle_SQUARE:
+ case GradientStyle::Square:
aGradInfo = basegfx::tools::createSquareODFGradientInfo(
aBounds,
aOffset,
@@ -664,7 +664,7 @@ namespace cppcanvas
aGradientService = "RectangularGradient";
break;
- case GradientStyle_RECT:
+ case GradientStyle::Rect:
aGradInfo = basegfx::tools::createRectangularODFGradientInfo(
aBounds,
aOffset,