LibreOffice Module svx (master)  1
Public 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, 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 (css::awt::GradientStyle eNewStyle)
 
void SetStartColor (const Color &rColor)
 
void SetEndColor (const Color &rColor)
 
void SetAngle (long 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
 
long 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
 

Private Attributes

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

Detailed Description

Definition at line 29 of file xgrad.hxx.

Constructor & Destructor Documentation

XGradient::XGradient ( )

Definition at line 1912 of file xattr.cxx.

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

XGradient::XGradient ( const Color rStart,
const Color rEnd,
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 
)

Definition at line 1926 of file xattr.cxx.

References nBorder.

Member Function Documentation

long XGradient::GetAngle ( ) const
inline
sal_uInt16 XGradient::GetBorder ( ) const
inline
const Color& XGradient::GetEndColor ( ) const
inline
sal_uInt16 XGradient::GetEndIntens ( ) const
inline
css::awt::GradientStyle XGradient::GetGradientStyle ( ) const
inline
const Color& XGradient::GetStartColor ( ) const
inline
sal_uInt16 XGradient::GetStartIntens ( ) const
inline
sal_uInt16 XGradient::GetSteps ( ) const
inline

Definition at line 72 of file xgrad.hxx.

Referenced by SvxUnoXGradientTable::getAny(), and XFillGradientItem::QueryValue().

sal_uInt16 XGradient::GetXOffset ( ) const
inline
sal_uInt16 XGradient::GetYOffset ( ) const
inline
bool XGradient::operator== ( const XGradient rGradient) const

Definition at line 1944 of file xattr.cxx.

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

void XGradient::SetAngle ( long  nNewAngle)
inline
void XGradient::SetBorder ( sal_uInt16  nNewBorder)
inline
void XGradient::SetEndColor ( const Color rColor)
inline
void XGradient::SetEndIntens ( sal_uInt16  nNewIntens)
inline

Definition at line 60 of file xgrad.hxx.

Referenced by XFillGradientItem::PutValue(), and GradTransformer::VecToGrad().

void XGradient::SetGradientStyle ( css::awt::GradientStyle  eNewStyle)
inline
void XGradient::SetStartColor ( const Color rColor)
inline
void XGradient::SetStartIntens ( sal_uInt16  nNewIntens)
inline
void XGradient::SetSteps ( sal_uInt16  nSteps)
inline

Definition at line 61 of file xgrad.hxx.

Referenced by XFillGradientItem::PutValue().

void XGradient::SetXOffset ( sal_uInt16  nNewOffset)
inline
void XGradient::SetYOffset ( sal_uInt16  nNewOffset)
inline

Member Data Documentation

Color XGradient::aEndColor
private

Definition at line 33 of file xgrad.hxx.

Referenced by operator==().

Color XGradient::aStartColor
private

Definition at line 32 of file xgrad.hxx.

Referenced by operator==().

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

Definition at line 31 of file xgrad.hxx.

Referenced by operator==().

long XGradient::nAngle
private

Definition at line 34 of file xgrad.hxx.

Referenced by operator==().

sal_uInt16 XGradient::nBorder
private

Definition at line 35 of file xgrad.hxx.

Referenced by operator==().

sal_uInt16 XGradient::nIntensEnd
private

Definition at line 39 of file xgrad.hxx.

Referenced by operator==().

sal_uInt16 XGradient::nIntensStart
private

Definition at line 38 of file xgrad.hxx.

Referenced by operator==().

sal_uInt16 XGradient::nOfsX
private

Definition at line 36 of file xgrad.hxx.

Referenced by operator==().

sal_uInt16 XGradient::nOfsY
private

Definition at line 37 of file xgrad.hxx.

Referenced by operator==().

sal_uInt16 XGradient::nStepCount
private

Definition at line 40 of file xgrad.hxx.

Referenced by operator==().


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