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

#include <sizeitem.hxx>

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

Public Member Functions

 SvxSizeItem (const sal_uInt16 nId)
 
 SvxSizeItem (const sal_uInt16 nId, const Size &rSize)
 
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 SvxSizeItemClone (SfxItemPool *pPool=nullptr) const override
 
virtual void ScaleMetrics (tools::Long nMult, tools::Long nDiv) override
 
virtual bool HasMetrics () const override
 
const SizeGetSize () const
 
void SetSize (const Size &rSize)
 
tools::Long GetWidth () const
 
tools::Long GetHeight () const
 
void SetWidth (tools::Long n)
 
void SetHeight (tools::Long n)
 
- 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

Size m_aSize
 

Additional Inherited Members

- Public Types inherited from SfxPoolItem
typedef std::vector< SfxPoolItem * >::const_iterator lookup_iterator
 
- Protected Member Functions inherited from SfxPoolItem
 SfxPoolItem (sal_uInt16 nWhich=0)
 
 SfxPoolItem (const SfxPoolItem &rCopy)
 

Detailed Description

Definition at line 33 of file sizeitem.hxx.

Constructor & Destructor Documentation

◆ SvxSizeItem() [1/2]

SvxSizeItem::SvxSizeItem ( const sal_uInt16  nId)
explicit

Definition at line 224 of file frmitems.cxx.

References nId.

Referenced by Clone(), and CreateDefault().

◆ SvxSizeItem() [2/2]

SvxSizeItem::SvxSizeItem ( const sal_uInt16  nId,
const Size rSize 
)

Definition at line 141 of file frmitems.cxx.

References m_aSize, and nId.

Member Function Documentation

◆ Clone()

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

Implements SfxPoolItem.

Definition at line 238 of file frmitems.cxx.

References SvxSizeItem().

◆ CreateDefault()

SfxPoolItem * SvxSizeItem::CreateDefault ( )
static

Definition at line 90 of file frmitems.cxx.

References SvxSizeItem().

◆ GetHeight()

tools::Long SvxSizeItem::GetHeight ( ) const
inline

Definition at line 62 of file sizeitem.hxx.

References m_aSize.

◆ GetPresentation()

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

Reimplemented from SfxPoolItem.

Definition at line 243 of file frmitems.cxx.

References cpDelim, EditResId(), GetMetricId(), GetMetricText(), Size::Height(), m_aSize, and Size::Width().

◆ GetSize()

const Size & SvxSizeItem::GetSize ( ) const
inline

Definition at line 58 of file sizeitem.hxx.

References m_aSize.

Referenced by operator==().

◆ GetWidth()

tools::Long SvxSizeItem::GetWidth ( ) const
inline

Definition at line 61 of file sizeitem.hxx.

References m_aSize.

◆ HasMetrics()

bool SvxSizeItem::HasMetrics ( ) const
overridevirtual

Reimplemented from SfxPoolItem.

Definition at line 284 of file frmitems.cxx.

◆ operator==()

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

Implements SfxPoolItem.

Definition at line 231 of file frmitems.cxx.

References GetSize(), and m_aSize.

◆ PutValue()

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

◆ QueryValue()

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

◆ ScaleMetrics()

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

Reimplemented from SfxPoolItem.

Definition at line 277 of file frmitems.cxx.

References Size::Height(), m_aSize, BigInt::Scale(), Size::setHeight(), Size::setWidth(), and Size::Width().

◆ SetHeight()

void SvxSizeItem::SetHeight ( tools::Long  n)
inline

Definition at line 64 of file sizeitem.hxx.

References m_aSize, and n.

◆ SetSize()

void SvxSizeItem::SetSize ( const Size rSize)
inline

Definition at line 59 of file sizeitem.hxx.

References m_aSize.

◆ SetWidth()

void SvxSizeItem::SetWidth ( tools::Long  n)
inline

Definition at line 63 of file sizeitem.hxx.

References m_aSize, and n.

Member Data Documentation

◆ m_aSize

Size SvxSizeItem::m_aSize
private

Definition at line 36 of file sizeitem.hxx.

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


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