LibreOffice Module editeng (master) 1
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
SvxShadowItem Class Referencefinal

#include <shaditem.hxx>

Inheritance diagram for SvxShadowItem:
[legend]
Collaboration diagram for SvxShadowItem:
[legend]

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 SvxShadowItemClone (SfxItemPool *pPool=nullptr) const override
 
virtual void ScaleMetrics (tools::Long nMult, tools::Long nDiv) override
 
virtual bool HasMetrics () const override
 
const ColorGetColor () 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 SfxPoolItemClone (SfxItemPool *pPool=nullptr) const=0
 
std::unique_ptr< SfxPoolItemCloneSetWhich (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 SfxPoolItemCreateDefault ()
 

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)
 

Detailed Description

Definition at line 38 of file shaditem.hxx.

Constructor & Destructor Documentation

◆ SvxShadowItem()

SvxShadowItem::SvxShadowItem ( const sal_uInt16  nId,
const Color pColor = nullptr,
const sal_uInt16  nWidth = 100,
const SvxShadowLocation  eLoc = SvxShadowLocation::NONE 
)
explicit

Definition at line 2035 of file frmitems.cxx.

References aShadowColor, COL_GRAY(), and nId.

Referenced by Clone(), and CreateDefault().

Member Function Documentation

◆ CalcShadowSpace()

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.

◆ Clone()

SvxShadowItem * SvxShadowItem::Clone ( SfxItemPool pPool = nullptr) const
overridevirtual

Implements SfxPoolItem.

Definition at line 2156 of file frmitems.cxx.

References SvxShadowItem().

◆ CreateDefault()

SfxPoolItem * SvxShadowItem::CreateDefault ( )
static

Definition at line 95 of file frmitems.cxx.

References SvxShadowItem().

◆ dumpAsXml()

void SvxShadowItem::dumpAsXml ( xmlTextWriterPtr  pWriter) const
overridevirtual

◆ GetColor()

const Color & SvxShadowItem::GetColor ( ) const
inline

Definition at line 64 of file shaditem.hxx.

Referenced by legacy::SvxShadow::Store().

◆ GetEnumValue()

sal_uInt16 SvxShadowItem::GetEnumValue ( ) const
overridevirtual

Implements SfxEnumItemInterface.

Definition at line 2270 of file frmitems.cxx.

References GetLocation().

◆ GetLocation()

SvxShadowLocation SvxShadowItem::GetLocation ( ) const
inline

Definition at line 68 of file shaditem.hxx.

Referenced by GetEnumValue(), operator==(), and legacy::SvxShadow::Store().

◆ GetPresentation()

bool SvxShadowItem::GetPresentation ( SfxItemPresentation  ePres,
MapUnit  eCoreMetric,
MapUnit  ePresMetric,
OUString &  rText,
const IntlWrapper rIntl 
) const
overridevirtual

◆ GetValueCount()

sal_uInt16 SvxShadowItem::GetValueCount ( ) const
overridevirtual

Implements SfxEnumItemInterface.

Definition at line 2265 of file frmitems.cxx.

References End.

◆ GetWidth()

sal_uInt16 SvxShadowItem::GetWidth ( ) const
inline

Definition at line 67 of file shaditem.hxx.

Referenced by operator==(), and legacy::SvxShadow::Store().

◆ HasMetrics()

bool SvxShadowItem::HasMetrics ( ) const
overridevirtual

Reimplemented from SfxPoolItem.

Definition at line 2259 of file frmitems.cxx.

◆ operator==()

bool SvxShadowItem::operator== ( const SfxPoolItem rAttr) const
overridevirtual

Reimplemented from SfxEnumItemInterface.

Definition at line 2146 of file frmitems.cxx.

References aShadowColor, eLocation, GetLocation(), GetWidth(), and nWidth.

◆ PutValue()

bool SvxShadowItem::PutValue ( const css::uno::Any &  rVal,
sal_uInt8  nMemberId 
)
overridevirtual

◆ QueryValue()

bool SvxShadowItem::QueryValue ( css::uno::Any &  rVal,
sal_uInt8  nMemberId = 0 
) const
overridevirtual

◆ ScaleMetrics()

void SvxShadowItem::ScaleMetrics ( tools::Long  nMult,
tools::Long  nDiv 
)
overridevirtual

Reimplemented from SfxPoolItem.

Definition at line 2253 of file frmitems.cxx.

References nWidth, and BigInt::Scale().

◆ SetColor()

void SvxShadowItem::SetColor ( const Color rNew)
inline

Definition at line 65 of file shaditem.hxx.

Referenced by legacy::SvxShadow::Create().

◆ SetEnumValue()

void SvxShadowItem::SetEnumValue ( sal_uInt16  nNewVal)
overridevirtual

Implements SfxEnumItemInterface.

Definition at line 2276 of file frmitems.cxx.

References SetLocation().

◆ SetLocation()

void SvxShadowItem::SetLocation ( SvxShadowLocation  eNew)
inline

Definition at line 71 of file shaditem.hxx.

Referenced by legacy::SvxShadow::Create(), and SetEnumValue().

◆ SetWidth()

void SvxShadowItem::SetWidth ( sal_uInt16  nNew)
inline

Definition at line 70 of file shaditem.hxx.

Referenced by legacy::SvxShadow::Create().

Member Data Documentation

◆ aShadowColor

Color SvxShadowItem::aShadowColor
private

Definition at line 40 of file shaditem.hxx.

Referenced by dumpAsXml(), GetPresentation(), operator==(), PutValue(), QueryValue(), and SvxShadowItem().

◆ eLocation

SvxShadowLocation SvxShadowItem::eLocation
private

◆ nWidth

sal_uInt16 SvxShadowItem::nWidth
private

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