20#ifndef INCLUDED_SVX_XGRAD_HXX
21#define INCLUDED_SVX_XGRAD_HXX
26#include <com/sun/star/awt/GradientStyle.hpp>
27#include <boost/property_tree/ptree_fwd.hpp>
28#include <com/sun/star/awt/Gradient.hpp>
45 static std::string GradientStyleToString(css::awt::GradientStyle eStyle);
50 css::awt::GradientStyle eStyle = css::awt::GradientStyle_LINEAR,
Degree10 nAngle = 0_deg10,
51 sal_uInt16 nXOfs = 50, sal_uInt16 nYOfs = 50, sal_uInt16 nBorder = 0,
52 sal_uInt16 nStartIntens = 100, sal_uInt16 nEndIntens = 100,
53 sal_uInt16 nSteps = 0 );
62 void SetXOffset(sal_uInt16 nNewOffset) { nOfsX = nNewOffset; }
63 void SetYOffset(sal_uInt16 nNewOffset) { nOfsY = nNewOffset; }
65 void SetEndIntens(sal_uInt16 nNewIntens) { nIntensEnd = nNewIntens; }
66 void SetSteps(sal_uInt16 nSteps) { nStepCount = nSteps; }
77 sal_uInt16
GetSteps()
const {
return nStepCount; }
79 boost::property_tree::ptree dumpAsJSON()
const;
80 static XGradient fromJSON(std::u16string_view rJSON);
81 css::awt::Gradient toGradientUNO()
const;
const Color & GetEndColor() const
sal_uInt16 GetYOffset() const
void SetEndIntens(sal_uInt16 nNewIntens)
sal_uInt16 GetStartIntens() const
css::awt::GradientStyle GetGradientStyle() const
void SetBorder(sal_uInt16 nNewBorder)
const Color & GetStartColor() const
css::awt::GradientStyle eStyle
sal_uInt16 GetBorder() const
sal_uInt16 GetEndIntens() const
Degree10 GetAngle() const
void SetStartColor(const Color &rColor)
sal_uInt16 GetSteps() const
void SetGradientStyle(css::awt::GradientStyle eNewStyle)
void SetXOffset(sal_uInt16 nNewOffset)
void SetEndColor(const Color &rColor)
void SetAngle(Degree10 nNewAngle)
void SetStartIntens(sal_uInt16 nNewIntens)
sal_uInt16 GetXOffset() const
void SetYOffset(sal_uInt16 nNewOffset)
void SetSteps(sal_uInt16 nSteps)
tools::Long const nBorder
#define SVXCORE_DLLPUBLIC
bool operator==(const XclFontData &rLeft, const XclFontData &rRight)