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

#include <algitem.hxx>

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

Public Member Functions

 SvxMarginItem (const TypedWhichId< SvxMarginItem > nId)
 
 SvxMarginItem (sal_Int16 nLeft, sal_Int16 nTop, sal_Int16 nRight, sal_Int16 nBottom, const TypedWhichId< SvxMarginItem > nId)
 
virtual bool GetPresentation (SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
 
virtual bool operator== (const SfxPoolItem &) const override
 
virtual SvxMarginItemClone (SfxItemPool *pPool=nullptr) 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
 
sal_Int16 GetLeftMargin () const
 
void SetLeftMargin (sal_Int16 nLeft)
 
sal_Int16 GetTopMargin () const
 
void SetTopMargin (sal_Int16 nTop)
 
sal_Int16 GetRightMargin () const
 
void SetRightMargin (sal_Int16 nRight)
 
sal_Int16 GetBottomMargin () const
 
void SetBottomMargin (sal_Int16 nBottom)
 
- 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

sal_Int16 nLeftMargin
 
sal_Int16 nTopMargin
 
sal_Int16 nRightMargin
 
sal_Int16 nBottomMargin
 

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 62 of file algitem.hxx.

Constructor & Destructor Documentation

◆ SvxMarginItem() [1/2]

SvxMarginItem::SvxMarginItem ( const TypedWhichId< SvxMarginItem nId)

Definition at line 144 of file algitem.cxx.

References nBottomMargin, nId, nLeftMargin, nRightMargin, and nTopMargin.

Referenced by Clone(), and CreateDefault().

◆ SvxMarginItem() [2/2]

SvxMarginItem::SvxMarginItem ( sal_Int16  nLeft,
sal_Int16  nTop,
sal_Int16  nRight,
sal_Int16  nBottom,
const TypedWhichId< SvxMarginItem nId 
)

Definition at line 156 of file algitem.cxx.

References nBottomMargin, nId, nLeftMargin, nRightMargin, and nTopMargin.

Member Function Documentation

◆ Clone()

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

Implements SfxPoolItem.

Definition at line 229 of file algitem.cxx.

References SvxMarginItem().

Referenced by AutoFormatBase::SetMargin().

◆ CreateDefault()

SfxPoolItem * SvxMarginItem::CreateDefault ( )
static

Definition at line 37 of file algitem.cxx.

References SvxMarginItem().

◆ GetBottomMargin()

sal_Int16 SvxMarginItem::GetBottomMargin ( ) const
inline

Definition at line 92 of file algitem.hxx.

References nBottomMargin.

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

◆ GetLeftMargin()

sal_Int16 SvxMarginItem::GetLeftMargin ( ) const
inline

Definition at line 86 of file algitem.hxx.

References nLeftMargin.

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

◆ GetPresentation()

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

Reimplemented from SfxPoolItem.

Definition at line 171 of file algitem.cxx.

References cpDelim, EditResId(), GetMetricId(), GetMetricText(), nBottomMargin, nLeftMargin, nRightMargin, nTopMargin, and SvxResId().

◆ GetRightMargin()

sal_Int16 SvxMarginItem::GetRightMargin ( ) const
inline

Definition at line 90 of file algitem.hxx.

References nRightMargin.

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

◆ GetTopMargin()

sal_Int16 SvxMarginItem::GetTopMargin ( ) const
inline

Definition at line 88 of file algitem.hxx.

References nTopMargin.

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

◆ operator==()

bool SvxMarginItem::operator== ( const SfxPoolItem rItem) const
overridevirtual

Implements SfxPoolItem.

Definition at line 219 of file algitem.cxx.

References nBottomMargin, nLeftMargin, nRightMargin, and nTopMargin.

◆ PutValue()

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

◆ QueryValue()

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

◆ SetBottomMargin()

void SvxMarginItem::SetBottomMargin ( sal_Int16  nBottom)

Definition at line 309 of file algitem.cxx.

References nBottomMargin.

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

◆ SetLeftMargin()

void SvxMarginItem::SetLeftMargin ( sal_Int16  nLeft)

Definition at line 291 of file algitem.cxx.

References nLeftMargin.

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

◆ SetRightMargin()

void SvxMarginItem::SetRightMargin ( sal_Int16  nRight)

Definition at line 303 of file algitem.cxx.

References nRightMargin.

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

◆ SetTopMargin()

void SvxMarginItem::SetTopMargin ( sal_Int16  nTop)

Definition at line 297 of file algitem.cxx.

References nTopMargin.

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

Member Data Documentation

◆ nBottomMargin

sal_Int16 SvxMarginItem::nBottomMargin
private

Definition at line 67 of file algitem.hxx.

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

◆ nLeftMargin

sal_Int16 SvxMarginItem::nLeftMargin
private

Definition at line 64 of file algitem.hxx.

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

◆ nRightMargin

sal_Int16 SvxMarginItem::nRightMargin
private

Definition at line 66 of file algitem.hxx.

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

◆ nTopMargin

sal_Int16 SvxMarginItem::nTopMargin
private

Definition at line 65 of file algitem.hxx.

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


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