LibreOffice Module svx (master) 1
|
#include <xgrad.hxx>
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::ColorStops & | GetColorStops () 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 |
XGradient::XGradient | ( | ) |
Definition at line 2214 of file xattr.cxx.
References aColorStops, COL_BLACK(), COL_WHITE(), Color::getBColor(), and nBorder.
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().
boost::property_tree::ptree XGradient::dumpAsJSON | ( | ) | const |
Definition at line 2268 of file xattr.cxx.
References eStyle, o3tl::strong_int< typename UNDERLYING_TYPE, typename PHANTOM_TYPE >::get(), GetColorStops(), GradientStyleToString(), nAngle, nBorder, nIntensEnd, nIntensStart, nOfsX, nOfsY, and nStepCount.
|
static |
|
inline |
Definition at line 70 of file xgrad.hxx.
Referenced by XGradientList::CreateBitmap(), drawinglayer::primitive2d::createNewSdrFillAttribute(), drawinglayer::primitive2d::createNewTransparenceGradientAttribute(), svx::sidebar::AreaPropertyPanelBase::FillStyleChanged(), GradTransformer::GradToVec(), svx::sidebar::AreaTransparencyGradientPopup::InitStatus(), and GradTransformer::VecToGrad().
|
inline |
Definition at line 71 of file xgrad.hxx.
References nBorder.
Referenced by XGradientList::CreateBitmap(), drawinglayer::primitive2d::createNewSdrFillAttribute(), drawinglayer::primitive2d::createNewTransparenceGradientAttribute(), GradTransformer::GradToVec(), svx::sidebar::AreaTransparencyGradientPopup::InitStatus(), XFillGradientItem::QueryValue(), and GradTransformer::VecToGrad().
|
inline |
Definition at line 69 of file xgrad.hxx.
Referenced by EnhancedCustomShape2d::AdaptObjColor(), XGradientList::CreateBitmap(), drawinglayer::primitive2d::createNewSdrFillAttribute(), drawinglayer::primitive2d::createNewTransparenceGradientAttribute(), dumpAsJSON(), svx::sidebar::AreaPropertyPanelBase::FillStyleChanged(), GetDraftFillColor(), getSvxBrushItemFromSourceSet(), getTransparenceForSvxBrushItem(), GradTransformer::GradToVec(), ImpCreateShadowObjectClone(), svx::sidebar::AreaTransparencyGradientPopup::InitStatus(), XFillGradientItem::PutValue(), and GradTransformer::VecToGrad().
|
inline |
Definition at line 75 of file xgrad.hxx.
Referenced by XGradientList::CreateBitmap(), drawinglayer::primitive2d::createNewSdrFillAttribute(), getSvxBrushItemFromSourceSet(), GradTransformer::GradToVec(), ImpCreateShadowObjectClone(), and XFillGradientItem::QueryValue().
|
inline |
Definition at line 68 of file xgrad.hxx.
Referenced by XGradientList::CreateBitmap(), drawinglayer::primitive2d::createNewSdrFillAttribute(), drawinglayer::primitive2d::createNewTransparenceGradientAttribute(), svx::sidebar::AreaPropertyPanelBase::FillStyleChanged(), GradTransformer::GradToVec(), svx::sidebar::AreaPropertyPanelBase::ImpUpdateTransparencies(), svx::sidebar::AreaTransparencyGradientPopup::InitStatus(), svx::sidebar::AreaTransparencyGradientPopup::Rearrange(), svx::sidebar::AreaPropertyPanelBase::SetGradient(), and GradTransformer::VecToGrad().
|
inline |
Definition at line 74 of file xgrad.hxx.
Referenced by XGradientList::CreateBitmap(), drawinglayer::primitive2d::createNewSdrFillAttribute(), getSvxBrushItemFromSourceSet(), GradTransformer::GradToVec(), ImpCreateShadowObjectClone(), and XFillGradientItem::QueryValue().
|
inline |
Definition at line 76 of file xgrad.hxx.
Referenced by XFillGradientItem::QueryValue().
|
inline |
Definition at line 72 of file xgrad.hxx.
Referenced by XGradientList::CreateBitmap(), drawinglayer::primitive2d::createNewSdrFillAttribute(), drawinglayer::primitive2d::createNewTransparenceGradientAttribute(), GradTransformer::GradToVec(), svx::sidebar::AreaTransparencyGradientPopup::InitStatus(), and XFillGradientItem::QueryValue().
|
inline |
Definition at line 73 of file xgrad.hxx.
Referenced by XGradientList::CreateBitmap(), drawinglayer::primitive2d::createNewSdrFillAttribute(), drawinglayer::primitive2d::createNewTransparenceGradientAttribute(), GradTransformer::GradToVec(), svx::sidebar::AreaTransparencyGradientPopup::InitStatus(), and XFillGradientItem::QueryValue().
|
staticprivate |
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.
|
inline |
Definition at line 60 of file xgrad.hxx.
Referenced by ImpSdrGDIMetaFileImport::DoAction(), svx::sidebar::AreaPropertyPanelBase::Initialize(), XFillGradientItem::PutValue(), svx::sidebar::AreaPropertyPanelBase::SelectFillAttrHdl_Impl(), and GradTransformer::VecToGrad().
|
inline |
Definition at line 61 of file xgrad.hxx.
References nBorder.
Referenced by ImpSdrGDIMetaFileImport::DoAction(), svx::sidebar::AreaPropertyPanelBase::Initialize(), XFillGradientItem::PutValue(), and GradTransformer::VecToGrad().
void XGradient::SetColorStops | ( | const basegfx::ColorStops & | rSteps | ) |
Definition at line 2260 of file xattr.cxx.
References aColorStops, and basegfx::utils::sortAndCorrectColorStops().
Referenced by EnhancedCustomShape2d::AdaptObjColor(), ImpCreateShadowObjectClone(), svx::sidebar::AreaPropertyPanelBase::Initialize(), XFillGradientItem::PutValue(), GradTransformer::VecToGrad(), and XGradient().
|
inline |
Definition at line 65 of file xgrad.hxx.
Referenced by SdrMarkView::AddDragModeHdl(), ImpSdrGDIMetaFileImport::DoAction(), XFillGradientItem::PutValue(), and GradTransformer::VecToGrad().
|
inline |
Definition at line 58 of file xgrad.hxx.
Referenced by ImpSdrGDIMetaFileImport::DoAction(), svx::sidebar::AreaPropertyPanelBase::Initialize(), XFillGradientItem::PutValue(), and svx::sidebar::AreaPropertyPanelBase::SelectFillAttrHdl_Impl().
|
inline |
Definition at line 64 of file xgrad.hxx.
Referenced by SdrMarkView::AddDragModeHdl(), ImpSdrGDIMetaFileImport::DoAction(), XFillGradientItem::PutValue(), and GradTransformer::VecToGrad().
|
inline |
Definition at line 66 of file xgrad.hxx.
Referenced by ImpSdrGDIMetaFileImport::DoAction(), and XFillGradientItem::PutValue().
|
inline |
Definition at line 62 of file xgrad.hxx.
Referenced by ImpSdrGDIMetaFileImport::DoAction(), svx::sidebar::AreaPropertyPanelBase::Initialize(), XFillGradientItem::PutValue(), and GradTransformer::VecToGrad().
|
inline |
Definition at line 63 of file xgrad.hxx.
Referenced by ImpSdrGDIMetaFileImport::DoAction(), svx::sidebar::AreaPropertyPanelBase::Initialize(), XFillGradientItem::PutValue(), and GradTransformer::VecToGrad().
|
private |
Definition at line 36 of file xgrad.hxx.
Referenced by operator==(), SetColorStops(), and XGradient().
|
private |
Definition at line 33 of file xgrad.hxx.
Referenced by dumpAsJSON(), GradientStyleToString(), and operator==().
|
private |
Definition at line 38 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 43 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 40 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 44 of file xgrad.hxx.
Referenced by dumpAsJSON(), and operator==().