LibreOffice Module svx (master)
1
|
#include <xgrad.hxx>
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 Color & | GetStartColor () const |
const Color & | GetEndColor () 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 () |
Static Public Member Functions | |
static XGradient | fromJSON (const OUString &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 |
XGradient::XGradient | ( | ) |
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 |
||
) |
boost::property_tree::ptree XGradient::dumpAsJSON | ( | ) | const |
Definition at line 2103 of file xattr.cxx.
References aEndColor, Color::AsRGBHexString(), aStartColor, eStyle, o3tl::strong_int< UNDERLYING_TYPE, PHANTOM_TYPE >::get(), GradientStyleToString(), nAngle, nBorder, nIntensEnd, nIntensStart, nOfsX, nOfsY, and nStepCount.
|
static |
|
inline |
Definition at line 71 of file xgrad.hxx.
Referenced by drawinglayer::primitive2d::createNewTransparenceGradientAttribute(), GradTransformer::GradToVec(), svx::sidebar::IMPL_LINK_NOARG(), svx::sidebar::AreaTransparencyGradientPopup::InitStatus(), XFillGradientItem::QueryValue(), toGradientUNO(), svx::sidebar::AreaPropertyPanelBase::Update(), and GradTransformer::VecToGrad().
|
inline |
|
inline |
Definition at line 70 of file xgrad.hxx.
Referenced by drawinglayer::primitive2d::createNewSdrFillAttribute(), drawinglayer::primitive2d::createNewTransparenceGradientAttribute(), GetDraftFillColor(), getTransparenceForSvxBrushItem(), GradTransformer::GradToVec(), svx::sidebar::IMPL_LINK_NOARG(), svx::sidebar::AreaTransparencyGradientPopup::InitStatus(), XFillGradientItem::QueryValue(), toGradientUNO(), svx::sidebar::AreaPropertyPanelBase::Update(), and GradTransformer::VecToGrad().
|
inline |
Definition at line 76 of file xgrad.hxx.
Referenced by GradTransformer::GradToVec(), XFillGradientItem::QueryValue(), and toGradientUNO().
|
inline |
Definition at line 68 of file xgrad.hxx.
Referenced by drawinglayer::primitive2d::createNewTransparenceGradientAttribute(), GradTransformer::GradToVec(), svx::sidebar::IMPL_LINK_NOARG(), svx::sidebar::AreaPropertyPanelBase::ImpUpdateTransparencies(), svx::sidebar::AreaTransparencyGradientPopup::InitStatus(), XFillGradientItem::QueryValue(), svx::sidebar::AreaTransparencyGradientPopup::Rearrange(), svx::sidebar::AreaPropertyPanelBase::SetGradient(), toGradientUNO(), svx::sidebar::AreaPropertyPanelBase::Update(), and GradTransformer::VecToGrad().
|
inline |
Definition at line 69 of file xgrad.hxx.
Referenced by drawinglayer::primitive2d::createNewSdrFillAttribute(), drawinglayer::primitive2d::createNewTransparenceGradientAttribute(), GetDraftFillColor(), getTransparenceForSvxBrushItem(), GradTransformer::GradToVec(), svx::sidebar::IMPL_LINK_NOARG(), svx::sidebar::AreaTransparencyGradientPopup::InitStatus(), XFillGradientItem::QueryValue(), toGradientUNO(), svx::sidebar::AreaPropertyPanelBase::Update(), and GradTransformer::VecToGrad().
|
inline |
Definition at line 75 of file xgrad.hxx.
Referenced by GradTransformer::GradToVec(), XFillGradientItem::QueryValue(), and toGradientUNO().
|
inline |
Definition at line 77 of file xgrad.hxx.
Referenced by XFillGradientItem::QueryValue(), and toGradientUNO().
|
inline |
Definition at line 73 of file xgrad.hxx.
Referenced by drawinglayer::primitive2d::createNewTransparenceGradientAttribute(), GradTransformer::GradToVec(), svx::sidebar::AreaTransparencyGradientPopup::InitStatus(), XFillGradientItem::QueryValue(), and toGradientUNO().
|
inline |
Definition at line 74 of file xgrad.hxx.
Referenced by drawinglayer::primitive2d::createNewTransparenceGradientAttribute(), GradTransformer::GradToVec(), svx::sidebar::AreaTransparencyGradientPopup::InitStatus(), XFillGradientItem::QueryValue(), and toGradientUNO().
|
staticprivate |
Definition at line 1954 of file xattr.cxx.
Referenced by dumpAsJSON().
bool XGradient::operator== | ( | const XGradient & | rGradient | ) | const |
Definition at line 2089 of file xattr.cxx.
References aEndColor, aStartColor, eStyle, nAngle, nBorder, nIntensEnd, nIntensStart, nOfsX, nOfsY, and nStepCount.
Definition at line 60 of file xgrad.hxx.
Referenced by svx::sidebar::AreaPropertyPanelBase::Initialize(), XFillGradientItem::PutValue(), svx::sidebar::AreaPropertyPanelBase::SelectFillAttrHdl_Impl(), and GradTransformer::VecToGrad().
|
inline |
Definition at line 61 of file xgrad.hxx.
Referenced by svx::sidebar::AreaPropertyPanelBase::Initialize(), XFillGradientItem::PutValue(), and GradTransformer::VecToGrad().
Definition at line 59 of file xgrad.hxx.
Referenced by svx::sidebar::AreaPropertyPanelBase::Initialize(), XFillGradientItem::PutValue(), svx::sidebar::AreaPropertyPanelBase::SelectFillAttrHdl_Impl(), and GradTransformer::VecToGrad().
|
inline |
Definition at line 65 of file xgrad.hxx.
Referenced by XFillGradientItem::PutValue(), and GradTransformer::VecToGrad().
|
inline |
Definition at line 57 of file xgrad.hxx.
Referenced by ImpSdrGDIMetaFileImport::DoAction(), svx::sidebar::AreaPropertyPanelBase::Initialize(), XFillGradientItem::PutValue(), and svx::sidebar::AreaPropertyPanelBase::SelectFillAttrHdl_Impl().
Definition at line 58 of file xgrad.hxx.
Referenced by EnhancedCustomShape2d::AdaptObjColor(), svx::sidebar::AreaPropertyPanelBase::Initialize(), XFillGradientItem::PutValue(), svx::sidebar::AreaPropertyPanelBase::SelectFillAttrHdl_Impl(), and GradTransformer::VecToGrad().
|
inline |
Definition at line 64 of file xgrad.hxx.
Referenced by SdrMarkView::AddDragModeHdl(), XFillGradientItem::PutValue(), and GradTransformer::VecToGrad().
|
inline |
Definition at line 66 of file xgrad.hxx.
Referenced by XFillGradientItem::PutValue().
|
inline |
Definition at line 62 of file xgrad.hxx.
Referenced by svx::sidebar::AreaPropertyPanelBase::Initialize(), XFillGradientItem::PutValue(), and GradTransformer::VecToGrad().
|
inline |
Definition at line 63 of file xgrad.hxx.
Referenced by svx::sidebar::AreaPropertyPanelBase::Initialize(), XFillGradientItem::PutValue(), and GradTransformer::VecToGrad().
css::awt::Gradient XGradient::toGradientUNO | ( | ) |
Definition at line 2039 of file xattr.cxx.
References GetAngle(), GetBorder(), GetEndColor(), GetEndIntens(), GetGradientStyle(), GetStartColor(), GetStartIntens(), GetSteps(), GetXOffset(), and GetYOffset().
|
private |
Definition at line 36 of file xgrad.hxx.
Referenced by dumpAsJSON(), and operator==().
|
private |
Definition at line 35 of file xgrad.hxx.
Referenced by dumpAsJSON(), and operator==().
|
private |
Definition at line 34 of file xgrad.hxx.
Referenced by dumpAsJSON(), and operator==().
|
private |
Definition at line 37 of file xgrad.hxx.
Referenced by dumpAsJSON(), and operator==().
|
private |
Definition at line 38 of file xgrad.hxx.
Referenced by dumpAsJSON(), and operator==().
|
private |
Definition at line 42 of file xgrad.hxx.
Referenced by dumpAsJSON(), and operator==().
|
private |
Definition at line 41 of file xgrad.hxx.
Referenced by dumpAsJSON(), and operator==().
|
private |
Definition at line 39 of file xgrad.hxx.
Referenced by dumpAsJSON(), and operator==().
|
private |
Definition at line 40 of file xgrad.hxx.
Referenced by dumpAsJSON(), and operator==().
|
private |
Definition at line 43 of file xgrad.hxx.
Referenced by dumpAsJSON(), and operator==().