diff options
author | Radu Ioan <ioan.radu.g@gmail.com> | 2014-12-05 20:09:01 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-12-11 18:31:01 +0100 |
commit | c69f481d792c7b121479d024cf675f6ddb747422 (patch) | |
tree | 43f8c056312a1f97ed09c0a309a3c897c74b51b5 /svx/source/svdraw/gradtrns.cxx | |
parent | fbe9accf36ac4c52ef5bcb84d455b4d06c317668 (diff) |
fdo#85486 - Clean up unnecessary enumerations from xenum.hxx
Removed XGradientStyle
Reviewed on:
https://gerrit.libreoffice.org/13320
Change-Id: Iff662c05105c3a939104f658f2d0be7d8cb57995
Diffstat (limited to 'svx/source/svdraw/gradtrns.cxx')
-rw-r--r-- | svx/source/svdraw/gradtrns.cxx | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/svx/source/svdraw/gradtrns.cxx b/svx/source/svdraw/gradtrns.cxx index d010eec5e639..72981d02ae96 100644 --- a/svx/source/svdraw/gradtrns.cxx +++ b/svx/source/svdraw/gradtrns.cxx @@ -53,7 +53,7 @@ void GradTransformer::GradToVec(GradTransGradient& rG, GradTransVector& rV, cons switch(rG.aGradient.GetGradientStyle()) { - case XGRAD_LINEAR : + case css::awt::GradientStyle_LINEAR : { aStartPos = basegfx::B2DPoint(aCenter.getX(), aRange.getMinY()); aEndPos = basegfx::B2DPoint(aCenter.getX(), aRange.getMaximum().getY()); @@ -76,7 +76,7 @@ void GradTransformer::GradToVec(GradTransGradient& rG, GradTransVector& rV, cons } break; } - case XGRAD_AXIAL : + case css::awt::GradientStyle_AXIAL : { aStartPos = aCenter; aEndPos = basegfx::B2DPoint(aCenter.getX(), aRange.getMaximum().getY()); @@ -99,8 +99,8 @@ void GradTransformer::GradToVec(GradTransGradient& rG, GradTransVector& rV, cons } break; } - case XGRAD_RADIAL : - case XGRAD_SQUARE : + case css::awt::GradientStyle_RADIAL : + case css::awt::GradientStyle_SQUARE : { aStartPos = basegfx::B2DPoint(aRange.getMinX(), aRange.getMaximum().getY()); aEndPos = basegfx::B2DPoint(aRange.getMinX(), aRange.getMinY()); @@ -134,8 +134,8 @@ void GradTransformer::GradToVec(GradTransGradient& rG, GradTransVector& rV, cons break; } - case XGRAD_ELLIPTICAL : - case XGRAD_RECT : + case css::awt::GradientStyle_ELLIPTICAL : + case css::awt::GradientStyle_RECT : { aStartPos = basegfx::B2DPoint(aRange.getMinX(), aCenter.getY()); aEndPos = basegfx::B2DPoint(aRange.getMinX(), aRange.getMinY()); @@ -169,6 +169,8 @@ void GradTransformer::GradToVec(GradTransGradient& rG, GradTransVector& rV, cons break; } + default: + break; } // set values for vector positions now @@ -205,7 +207,7 @@ void GradTransformer::VecToGrad(GradTransVector& rV, GradTransGradient& rG, Grad switch(rG.aGradient.GetGradientStyle()) { - case XGRAD_LINEAR : + case css::awt::GradientStyle_LINEAR : { if(!bMoveSingle || (bMoveSingle && !bMoveFirst)) { @@ -274,7 +276,7 @@ void GradTransformer::VecToGrad(GradTransVector& rV, GradTransGradient& rG, Grad break; } - case XGRAD_AXIAL : + case css::awt::GradientStyle_AXIAL : { if(!bMoveSingle || (bMoveSingle && !bMoveFirst)) { @@ -330,8 +332,8 @@ void GradTransformer::VecToGrad(GradTransVector& rV, GradTransGradient& rG, Grad break; } - case XGRAD_RADIAL : - case XGRAD_SQUARE : + case css::awt::GradientStyle_RADIAL : + case css::awt::GradientStyle_SQUARE : { if(!bMoveSingle || (bMoveSingle && !bMoveFirst)) { @@ -426,8 +428,8 @@ void GradTransformer::VecToGrad(GradTransVector& rV, GradTransGradient& rG, Grad break; } - case XGRAD_ELLIPTICAL : - case XGRAD_RECT : + case css::awt::GradientStyle_ELLIPTICAL : + case css::awt::GradientStyle_RECT : { if(!bMoveSingle || (bMoveSingle && !bMoveFirst)) { @@ -522,6 +524,8 @@ void GradTransformer::VecToGrad(GradTransVector& rV, GradTransGradient& rG, Grad break; } + default: + break; } } |