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 /sd | |
parent | desktop: avoid loading to-be-recovered documents when recovery is disabled (diff) | |
download | core-c69f481d792c7b121479d024cf675f6ddb747422.tar.gz core-c69f481d792c7b121479d024cf675f6ddb747422.zip |
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.cxx | 6 |
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 ()); |