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 basegfx::ColorStops &rColorStops, 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 SetColorStops (const basegfx::ColorStops &rSteps)
 
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 basegfx::ColorStopsGetColorStops () 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::Gradient2 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
 
basegfx::ColorStops aColorStops
 
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 31 of file xgrad.hxx.

Constructor & Destructor Documentation

◆ XGradient() [1/2]

XGradient::XGradient ( )

Definition at line 2214 of file xattr.cxx.

References aColorStops, COL_BLACK(), COL_WHITE(), Color::getBColor(), and nBorder.

◆ XGradient() [2/2]

XGradient::XGradient ( const basegfx::ColorStops rColorStops,
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 2229 of file xattr.cxx.

References aColorStops, nBorder, and SetColorStops().

Member Function Documentation

◆ dumpAsJSON()

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

◆ fromJSON()

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

Definition at line 2174 of file xattr.cxx.

References aMap.

◆ GetAngle()

Degree10 XGradient::GetAngle ( ) const
inline

◆ GetBorder()

sal_uInt16 XGradient::GetBorder ( ) const
inline

◆ GetColorStops()

const basegfx::ColorStops & XGradient::GetColorStops ( ) const
inline

◆ GetEndIntens()

sal_uInt16 XGradient::GetEndIntens ( ) const
inline

◆ GetGradientStyle()

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

◆ GetStartIntens()

sal_uInt16 XGradient::GetStartIntens ( ) const
inline

◆ GetSteps()

sal_uInt16 XGradient::GetSteps ( ) const
inline

Definition at line 76 of file xgrad.hxx.

Referenced by XFillGradientItem::QueryValue().

◆ 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 2094 of file xattr.cxx.

References eStyle.

Referenced by dumpAsJSON().

◆ operator==()

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

Definition at line 2247 of file xattr.cxx.

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

◆ SetAngle()

void XGradient::SetAngle ( Degree10  nNewAngle)
inline

◆ SetBorder()

void XGradient::SetBorder ( sal_uInt16  nNewBorder)
inline

◆ SetColorStops()

void XGradient::SetColorStops ( const basegfx::ColorStops rSteps)

◆ SetEndIntens()

void XGradient::SetEndIntens ( sal_uInt16  nNewIntens)
inline

◆ SetGradientStyle()

void XGradient::SetGradientStyle ( css::awt::GradientStyle  eNewStyle)
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::Gradient2 XGradient::toGradientUNO ( ) const

Definition at line 2204 of file xattr.cxx.

Member Data Documentation

◆ aColorStops

basegfx::ColorStops XGradient::aColorStops
private

Definition at line 36 of file xgrad.hxx.

Referenced by operator==(), SetColorStops(), and XGradient().

◆ eStyle

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

Definition at line 33 of file xgrad.hxx.

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

◆ nAngle

Degree10 XGradient::nAngle
private

Definition at line 38 of file xgrad.hxx.

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

◆ nBorder

sal_uInt16 XGradient::nBorder
private

Definition at line 39 of file xgrad.hxx.

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

◆ nIntensEnd

sal_uInt16 XGradient::nIntensEnd
private

Definition at line 43 of file xgrad.hxx.

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

◆ nIntensStart

sal_uInt16 XGradient::nIntensStart
private

Definition at line 42 of file xgrad.hxx.

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

◆ nOfsX

sal_uInt16 XGradient::nOfsX
private

Definition at line 40 of file xgrad.hxx.

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

◆ nOfsY

sal_uInt16 XGradient::nOfsY
private

Definition at line 41 of file xgrad.hxx.

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

◆ nStepCount

sal_uInt16 XGradient::nStepCount
private

Definition at line 44 of file xgrad.hxx.

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


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