summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/svx/xenum.hxx2
-rw-r--r--include/svx/xgrad.hxx15
2 files changed, 8 insertions, 9 deletions
diff --git a/include/svx/xenum.hxx b/include/svx/xenum.hxx
index df659f9a7809..52f7a4f59600 100644
--- a/include/svx/xenum.hxx
+++ b/include/svx/xenum.hxx
@@ -21,8 +21,6 @@
#define INCLUDED_SVX_XENUM_HXX
-enum XGradientStyle { XGRAD_LINEAR, XGRAD_AXIAL, XGRAD_RADIAL,
- XGRAD_ELLIPTICAL, XGRAD_SQUARE, XGRAD_RECT };
enum XHatchStyle { XHATCH_SINGLE, XHATCH_DOUBLE, XHATCH_TRIPLE };
enum XFormTextStyle { XFT_ROTATE, XFT_UPRIGHT, XFT_SLANTX, XFT_SLANTY,
XFT_NONE };
diff --git a/include/svx/xgrad.hxx b/include/svx/xgrad.hxx
index b97d0c0d0a6d..9231f915f534 100644
--- a/include/svx/xgrad.hxx
+++ b/include/svx/xgrad.hxx
@@ -23,6 +23,7 @@
#include <svx/xenum.hxx>
#include <tools/color.hxx>
#include <svx/svxdllapi.h>
+#include <com/sun/star/awt/GradientStyle.hpp>
class Gradient;
@@ -33,10 +34,10 @@ class Gradient;
class SVX_DLLPUBLIC XGradient
{
protected:
- XGradientStyle eStyle;
- Color aStartColor;
- Color aEndColor;
- long nAngle;
+ css::awt::GradientStyle eStyle;
+ Color aStartColor;
+ Color aEndColor;
+ long nAngle;
sal_uInt16 nBorder;
sal_uInt16 nOfsX;
sal_uInt16 nOfsY;
@@ -47,14 +48,14 @@ protected:
public:
XGradient();
XGradient( const Color& rStart, const Color& rEnd,
- XGradientStyle eStyle = XGRAD_LINEAR, long nAngle = 0,
+ css::awt::GradientStyle eStyle = css::awt::GradientStyle_LINEAR, long nAngle = 0,
sal_uInt16 nXOfs = 50, sal_uInt16 nYOfs = 50, sal_uInt16 nBorder = 0,
sal_uInt16 nStartIntens = 100, sal_uInt16 nEndIntens = 100,
sal_uInt16 nSteps = 0 );
bool operator==(const XGradient& rGradient) const;
- void SetGradientStyle(XGradientStyle eNewStyle) { eStyle = eNewStyle; }
+ void SetGradientStyle(css::awt::GradientStyle eNewStyle) { eStyle = eNewStyle; }
void SetStartColor(const Color& rColor) { aStartColor = rColor; }
void SetEndColor(const Color& rColor) { aEndColor = rColor; }
void SetAngle(long nNewAngle) { nAngle = nNewAngle; }
@@ -65,7 +66,7 @@ public:
void SetEndIntens(sal_uInt16 nNewIntens) { nIntensEnd = nNewIntens; }
void SetSteps(sal_uInt16 nSteps) { nStepCount = nSteps; }
- XGradientStyle GetGradientStyle() const { return eStyle; }
+ css::awt::GradientStyle GetGradientStyle() const { return eStyle; }
Color GetStartColor() const { return aStartColor; }
Color GetEndColor() const { return aEndColor; }
long GetAngle() const { return nAngle; }