LibreOffice Module svx (master) 1
Public Member Functions | Static Public Member Functions | Static Private Member Functions | Private Attributes | List of all members
XGradient Class Referencefinal

#include <xgrad.hxx>

Collaboration diagram for XGradient:
[legend]

Public Member Functions

 XGradient ()
 
 XGradient (const Color &rStart, const Color &rEnd, css::awt::GradientStyle eStyle=css::awt::GradientStyle_LINEAR, Degree10 nAngle=0_deg10, 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 (css::awt::GradientStyle eNewStyle)
 
void SetStartColor (const Color &rColor)
 
void SetEndColor (const Color &rColor)
 
void SetAngle (Degree10 nNewAngle)
 
void SetBorder (sal_uInt16 nNewBorder)
 
void SetXOffset (sal_uInt16 nNewOffset)
 
void SetYOffset (sal_uInt16 nNewOffset)
 
void SetStartIntens (sal_uInt16 nNewIntens)
 
void SetEndIntens (sal_uInt16 nNewIntens)
 
void SetSteps (sal_uInt16 nSteps)
 
css::awt::GradientStyle GetGradientStyle () const
 
const ColorGetStartColor () const
 
const ColorGetEndColor () const
 
Degree10 GetAngle () const
 
sal_uInt16 GetBorder () const
 
sal_uInt16 GetXOffset () const
 
sal_uInt16 GetYOffset () const
 
sal_uInt16 GetStartIntens () const
 
sal_uInt16 GetEndIntens () const
 
sal_uInt16 GetSteps () const
 
boost::property_tree::ptree dumpAsJSON () const
 
css::awt::Gradient toGradientUNO () const
 

Static Public Member Functions

static XGradient fromJSON (std::u16string_view rJSON)
 

Static Private Member Functions

static std::string GradientStyleToString (css::awt::GradientStyle eStyle)
 

Private Attributes

css::awt::GradientStyle eStyle
 
Color aStartColor
 
Color aEndColor
 
Degree10 nAngle
 
sal_uInt16 nBorder
 
sal_uInt16 nOfsX
 
sal_uInt16 nOfsY
 
sal_uInt16 nIntensStart
 
sal_uInt16 nIntensEnd
 
sal_uInt16 nStepCount
 

Detailed Description

Definition at line 32 of file xgrad.hxx.

Constructor & Destructor Documentation

◆ XGradient() [1/2]

XGradient::XGradient ( )

Definition at line 2123 of file xattr.cxx.

References COL_BLACK(), COL_WHITE(), and nBorder.

◆ XGradient() [2/2]

XGradient::XGradient ( const Color rStart,
const Color rEnd,
css::awt::GradientStyle  eStyle = css::awt::GradientStyle_LINEAR,
Degree10  nAngle = 0_deg10,
sal_uInt16  nXOfs = 50,
sal_uInt16  nYOfs = 50,
sal_uInt16  nBorder = 0,
sal_uInt16  nStartIntens = 100,
sal_uInt16  nEndIntens = 100,
sal_uInt16  nSteps = 0 
)

Definition at line 2137 of file xattr.cxx.

References nBorder.

Member Function Documentation

◆ dumpAsJSON()

boost::property_tree::ptree XGradient::dumpAsJSON ( ) const

◆ fromJSON()

XGradient XGradient::fromJSON ( std::u16string_view  rJSON)
static

Definition at line 2099 of file xattr.cxx.

References aMap.

◆ GetAngle()

Degree10 XGradient::GetAngle ( ) const
inline

◆ GetBorder()

sal_uInt16 XGradient::GetBorder ( ) const
inline

◆ GetEndColor()

const Color & XGradient::GetEndColor ( ) const
inline

◆ GetEndIntens()

sal_uInt16 XGradient::GetEndIntens ( ) const
inline

◆ GetGradientStyle()

css::awt::GradientStyle XGradient::GetGradientStyle ( ) const
inline

◆ GetStartColor()

const Color & XGradient::GetStartColor ( ) const
inline

◆ GetStartIntens()

sal_uInt16 XGradient::GetStartIntens ( ) const
inline

◆ GetSteps()

sal_uInt16 XGradient::GetSteps ( ) const
inline

Definition at line 77 of file xgrad.hxx.

Referenced by XFillGradientItem::QueryValue(), and toGradientUNO().

◆ GetXOffset()

sal_uInt16 XGradient::GetXOffset ( ) const
inline

◆ GetYOffset()

sal_uInt16 XGradient::GetYOffset ( ) const
inline

◆ GradientStyleToString()

std::string XGradient::GradientStyleToString ( css::awt::GradientStyle  eStyle)
staticprivate

Definition at line 2020 of file xattr.cxx.

References eStyle.

Referenced by dumpAsJSON().

◆ operator==()

bool XGradient::operator== ( const XGradient rGradient) const

Definition at line 2155 of file xattr.cxx.

References aEndColor, aStartColor, eStyle, nAngle, nBorder, nIntensEnd, nIntensStart, nOfsX, nOfsY, and nStepCount.

◆ SetAngle()

void XGradient::SetAngle ( Degree10  nNewAngle)
inline

◆ SetBorder()

void XGradient::SetBorder ( sal_uInt16  nNewBorder)
inline

◆ SetEndColor()

void XGradient::SetEndColor ( const Color rColor)
inline

◆ SetEndIntens()

void XGradient::SetEndIntens ( sal_uInt16  nNewIntens)
inline

◆ SetGradientStyle()

void XGradient::SetGradientStyle ( css::awt::GradientStyle  eNewStyle)
inline

◆ SetStartColor()

void XGradient::SetStartColor ( const Color rColor)
inline

◆ SetStartIntens()

void XGradient::SetStartIntens ( sal_uInt16  nNewIntens)
inline

◆ SetSteps()

void XGradient::SetSteps ( sal_uInt16  nSteps)
inline

Definition at line 66 of file xgrad.hxx.

Referenced by ImpSdrGDIMetaFileImport::DoAction(), and XFillGradientItem::PutValue().

◆ SetXOffset()

void XGradient::SetXOffset ( sal_uInt16  nNewOffset)
inline

◆ SetYOffset()

void XGradient::SetYOffset ( sal_uInt16  nNewOffset)
inline

◆ toGradientUNO()

css::awt::Gradient XGradient::toGradientUNO ( ) const

Member Data Documentation

◆ aEndColor

Color XGradient::aEndColor
private

Definition at line 36 of file xgrad.hxx.

Referenced by dumpAsJSON(), and operator==().

◆ aStartColor

Color XGradient::aStartColor
private

Definition at line 35 of file xgrad.hxx.

Referenced by dumpAsJSON(), and operator==().

◆ eStyle

css::awt::GradientStyle XGradient::eStyle
private

Definition at line 34 of file xgrad.hxx.

Referenced by dumpAsJSON(), GradientStyleToString(), and operator==().

◆ nAngle

Degree10 XGradient::nAngle
private

Definition at line 37 of file xgrad.hxx.

Referenced by dumpAsJSON(), and operator==().

◆ nBorder

sal_uInt16 XGradient::nBorder
private

Definition at line 38 of file xgrad.hxx.

Referenced by dumpAsJSON(), and operator==().

◆ nIntensEnd

sal_uInt16 XGradient::nIntensEnd
private

Definition at line 42 of file xgrad.hxx.

Referenced by dumpAsJSON(), and operator==().

◆ nIntensStart

sal_uInt16 XGradient::nIntensStart
private

Definition at line 41 of file xgrad.hxx.

Referenced by dumpAsJSON(), and operator==().

◆ nOfsX

sal_uInt16 XGradient::nOfsX
private

Definition at line 39 of file xgrad.hxx.

Referenced by dumpAsJSON(), and operator==().

◆ nOfsY

sal_uInt16 XGradient::nOfsY
private

Definition at line 40 of file xgrad.hxx.

Referenced by dumpAsJSON(), and operator==().

◆ nStepCount

sal_uInt16 XGradient::nStepCount
private

Definition at line 43 of file xgrad.hxx.

Referenced by dumpAsJSON(), and operator==().


The documentation for this class was generated from the following files: