summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorRadu Ioan <ioan.radu.g@gmail.com>2014-12-05 20:09:01 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2014-12-11 18:31:01 +0100
commitc69f481d792c7b121479d024cf675f6ddb747422 (patch)
tree43f8c056312a1f97ed09c0a309a3c897c74b51b5 /sd
parentfbe9accf36ac4c52ef5bcb84d455b4d06c317668 (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 'sd')
-rw-r--r--sd/source/ui/view/drviews9.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sd/source/ui/view/drviews9.cxx b/sd/source/ui/view/drviews9.cxx
index 943448fb6dcb..084f13cdb5c6 100644
--- a/sd/source/ui/view/drviews9.cxx
+++ b/sd/source/ui/view/drviews9.cxx
@@ -494,7 +494,7 @@ void DrawViewShell::AttrExec (SfxRequest &rReq)
SFX_REQUEST_ARG (rReq, pStart, SfxUInt32Item, ID_VAL_STARTINTENS, false);
SFX_REQUEST_ARG (rReq, pEnd, SfxUInt32Item, ID_VAL_ENDINTENS, false);
- if (CHECK_RANGE (XGRAD_LINEAR, (sal_Int32)pStyle->GetValue (), XGRAD_RECT) &&
+ if (CHECK_RANGE (css::awt::GradientStyle_LINEAR, (sal_Int32)pStyle->GetValue (), css::awt::GradientStyle_RECT) &&
CHECK_RANGE (0, (sal_Int32)pAngle->GetValue (), 360) &&
CHECK_RANGE (0, (sal_Int32)pBorder->GetValue (), 100) &&
CHECK_RANGE (0, (sal_Int32)pCenterX->GetValue (), 100) &&
@@ -517,7 +517,7 @@ void DrawViewShell::AttrExec (SfxRequest &rReq)
{
XGradient aGradient(pEntry->GetGradient());
- aGradient.SetGradientStyle ((XGradientStyle) pStyle->GetValue ());
+ aGradient.SetGradientStyle ((css::awt::GradientStyle) pStyle->GetValue ());
aGradient.SetAngle (pAngle->GetValue () * 10);
aGradient.SetBorder ((short) pBorder->GetValue ());
aGradient.SetXOffset ((short) pCenterX->GetValue ());
@@ -534,7 +534,7 @@ void DrawViewShell::AttrExec (SfxRequest &rReq)
if (i >= nCounts)
{
Color aBlack (0, 0, 0);
- XGradient aGradient (aBlack, aBlack, (XGradientStyle) pStyle->GetValue (),
+ XGradient aGradient (aBlack, aBlack, (css::awt::GradientStyle) pStyle->GetValue (),
pAngle->GetValue () * 10, (short) pCenterX->GetValue (),
(short) pCenterY->GetValue (), (short) pBorder->GetValue (),
(short) pStart->GetValue (), (short) pEnd->GetValue ());