LibreOffice Module editeng (master) 1
|
#include <shaditem.hxx>
Public Member Functions | |
SvxShadowItem (const sal_uInt16 nId, const Color *pColor=nullptr, const sal_uInt16 nWidth=100, const SvxShadowLocation eLoc=SvxShadowLocation::NONE) | |
virtual bool | operator== (const SfxPoolItem &) const override |
virtual bool | QueryValue (css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override |
virtual bool | PutValue (const css::uno::Any &rVal, sal_uInt8 nMemberId) override |
virtual bool | GetPresentation (SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override |
virtual SvxShadowItem * | Clone (SfxItemPool *pPool=nullptr) const override |
virtual void | ScaleMetrics (tools::Long nMult, tools::Long nDiv) override |
virtual bool | HasMetrics () const override |
const Color & | GetColor () const |
void | SetColor (const Color &rNew) |
sal_uInt16 | GetWidth () const |
SvxShadowLocation | GetLocation () const |
void | SetWidth (sal_uInt16 nNew) |
void | SetLocation (SvxShadowLocation eNew) |
sal_uInt16 | CalcShadowSpace (SvxShadowItemSide nShadow) const |
virtual sal_uInt16 | GetValueCount () const override |
virtual sal_uInt16 | GetEnumValue () const override |
virtual void | SetEnumValue (sal_uInt16 nNewVal) override |
void | dumpAsXml (xmlTextWriterPtr pWriter) const override |
Public Member Functions inherited from SfxEnumItemInterface | |
virtual bool | operator== (const SfxPoolItem &rItem) const override |
virtual bool | GetPresentation (SfxItemPresentation, MapUnit, MapUnit, OUString &rText, const IntlWrapper &) const override |
virtual bool | QueryValue (css::uno::Any &rVal, sal_uInt8=0) const override |
virtual bool | PutValue (const css::uno::Any &rVal, sal_uInt8) override |
virtual sal_uInt16 | GetValueCount () const=0 |
virtual sal_uInt16 | GetEnumValue () const=0 |
virtual void | SetEnumValue (sal_uInt16 nValue)=0 |
virtual bool | HasBoolValue () const |
virtual bool | GetBoolValue () const |
virtual void | SetBoolValue (bool bValue) |
Public Member Functions inherited from SfxPoolItem | |
void | AddRef (sal_uInt32 n=1) const |
virtual | ~SfxPoolItem () |
void | SetWhich (sal_uInt16 nId) |
sal_uInt16 | Which () const |
T & | StaticWhichCast (TypedWhichId< T > nId) |
const T & | StaticWhichCast (TypedWhichId< T > nId) const |
T * | DynamicWhichCast (TypedWhichId< T > nId) |
const T * | DynamicWhichCast (TypedWhichId< T > nId) const |
virtual bool | operator== (const SfxPoolItem &) const=0 |
bool | operator!= (const SfxPoolItem &rItem) const |
virtual bool | operator< (const SfxPoolItem &) const |
virtual bool | IsSortable () const |
virtual bool | HasLookup () const |
virtual lookup_iterator | Lookup (lookup_iterator, lookup_iterator end) const |
virtual bool | GetPresentation (SfxItemPresentation ePresentation, MapUnit eCoreMetric, MapUnit ePresentationMetric, OUString &rText, const IntlWrapper &rIntlWrapper) const |
virtual void | ScaleMetrics (tools::Long lMult, tools::Long lDiv) |
virtual bool | HasMetrics () const |
virtual bool | QueryValue (css::uno::Any &rVal, sal_uInt8 nMemberId=0) const |
virtual bool | PutValue (const css::uno::Any &rVal, sal_uInt8 nMemberId) |
virtual SfxPoolItem * | Clone (SfxItemPool *pPool=nullptr) const=0 |
std::unique_ptr< SfxPoolItem > | CloneSetWhich (sal_uInt16 nNewWhich) const |
std::unique_ptr< T > | CloneSetWhich (TypedWhichId< T > nId) const |
sal_uInt32 | GetRefCount () const |
SfxItemKind | GetKind () const |
virtual void | dumpAsXml (xmlTextWriterPtr pWriter) const |
virtual boost::property_tree::ptree | dumpAsJSON () const |
virtual bool | IsVoidItem () const |
Static Public Member Functions | |
static SfxPoolItem * | CreateDefault () |
Private Attributes | |
Color | aShadowColor |
sal_uInt16 | nWidth |
SvxShadowLocation | eLocation |
Additional Inherited Members | |
Public Types inherited from SfxPoolItem | |
typedef std::vector< SfxPoolItem * >::const_iterator | lookup_iterator |
Protected Member Functions inherited from SfxEnumItemInterface | |
SfxEnumItemInterface (sal_uInt16 which) | |
SfxEnumItemInterface (const SfxEnumItemInterface &)=default | |
Protected Member Functions inherited from SfxPoolItem | |
SfxPoolItem (sal_uInt16 nWhich=0) | |
SfxPoolItem (const SfxPoolItem &rCopy) | |
Definition at line 38 of file shaditem.hxx.
|
explicit |
Definition at line 2035 of file frmitems.cxx.
References aShadowColor, COL_GRAY(), and nId.
Referenced by Clone(), and CreateDefault().
sal_uInt16 SvxShadowItem::CalcShadowSpace | ( | SvxShadowItemSide | nShadow | ) | const |
Definition at line 2161 of file frmitems.cxx.
References BOTTOM, BottomLeft, BottomRight, eLocation, LEFT, nWidth, RIGHT, TOP, TopLeft, and TopRight.
|
overridevirtual |
|
static |
Definition at line 95 of file frmitems.cxx.
References SvxShadowItem().
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 2281 of file frmitems.cxx.
References aShadowColor, Color::AsRGBHexString(), EditResId(), eLocation, nWidth, RID_SVXITEMS_SHADOW, and SfxPoolItem::Which().
|
inline |
Definition at line 64 of file shaditem.hxx.
Referenced by legacy::SvxShadow::Store().
|
overridevirtual |
Implements SfxEnumItemInterface.
Definition at line 2270 of file frmitems.cxx.
References GetLocation().
|
inline |
Definition at line 68 of file shaditem.hxx.
Referenced by GetEnumValue(), operator==(), and legacy::SvxShadow::Store().
|
overridevirtual |
Reimplemented from SfxEnumItemInterface.
Definition at line 2206 of file frmitems.cxx.
References aShadowColor, cpDelim, EditResId(), eLocation, GetColorString(), GetMetricId(), GetMetricText(), Color::IsTransparent(), nWidth, and RID_SVXITEMS_SHADOW.
|
overridevirtual |
|
inline |
Definition at line 67 of file shaditem.hxx.
Referenced by operator==(), and legacy::SvxShadow::Store().
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 2259 of file frmitems.cxx.
|
overridevirtual |
Reimplemented from SfxEnumItemInterface.
Definition at line 2146 of file frmitems.cxx.
References aShadowColor, eLocation, GetLocation(), GetWidth(), and nWidth.
|
overridevirtual |
Reimplemented from SfxEnumItemInterface.
Definition at line 2084 of file frmitems.cxx.
References aShadowColor, BottomLeft, BottomRight, ColorTransparency, CONVERT_TWIPS, eLocation, MID_BG_COLOR, MID_LOCATION, MID_SHADOW_TRANSPARENCE, MID_TRANSPARENT, MID_WIDTH, o3tl::mm100, NONE, nWidth, QueryValue(), Color::SetAlpha(), TopLeft, TopRight, and o3tl::toTwips().
|
overridevirtual |
Reimplemented from SfxEnumItemInterface.
Definition at line 2048 of file frmitems.cxx.
References aShadowColor, BottomLeft, BottomRight, CONVERT_TWIPS, convertTwipToMm100(), eLocation, Color::GetAlpha(), Color::IsTransparent(), MID_BG_COLOR, MID_LOCATION, MID_SHADOW_TRANSPARENCE, MID_TRANSPARENT, MID_WIDTH, nWidth, TopLeft, and TopRight.
Referenced by PutValue().
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 2253 of file frmitems.cxx.
References nWidth, and BigInt::Scale().
|
inline |
Definition at line 65 of file shaditem.hxx.
Referenced by legacy::SvxShadow::Create().
|
overridevirtual |
Implements SfxEnumItemInterface.
Definition at line 2276 of file frmitems.cxx.
References SetLocation().
|
inline |
Definition at line 71 of file shaditem.hxx.
Referenced by legacy::SvxShadow::Create(), and SetEnumValue().
|
inline |
Definition at line 70 of file shaditem.hxx.
Referenced by legacy::SvxShadow::Create().
|
private |
Definition at line 40 of file shaditem.hxx.
Referenced by dumpAsXml(), GetPresentation(), operator==(), PutValue(), QueryValue(), and SvxShadowItem().
|
private |
Definition at line 42 of file shaditem.hxx.
Referenced by CalcShadowSpace(), dumpAsXml(), GetPresentation(), operator==(), PutValue(), and QueryValue().
|
private |
Definition at line 41 of file shaditem.hxx.
Referenced by CalcShadowSpace(), dumpAsXml(), GetPresentation(), operator==(), PutValue(), QueryValue(), and ScaleMetrics().