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 sal_uInt16 nId)
 
 SvxMarginItem (sal_Int16 nLeft, sal_Int16 nTop, sal_Int16 nRight, sal_Int16 nBottom, const sal_uInt16 nId)
 
virtual bool GetPresentation (SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
 
virtual bool operator== (const SfxPoolItem &) const override
 
virtual SfxPoolItemClone (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
 
bool operator!= (const SfxPoolItem &rItem) const
 
virtual bool operator< (const SfxPoolItem &) const
 
virtual bool IsSortable () const
 
virtual void ScaleMetrics (long lMult, long lDiv)
 
virtual bool HasMetrics () const
 
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 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

- Protected Member Functions inherited from SfxPoolItem
 SfxPoolItem (sal_uInt16 nWhich=0)
 
 SfxPoolItem (const SfxPoolItem &rCopy)
 

Detailed Description

Definition at line 61 of file algitem.hxx.

Constructor & Destructor Documentation

SvxMarginItem::SvxMarginItem ( const sal_uInt16  nId)

Definition at line 159 of file algitem.cxx.

References nBottomMargin, nLeftMargin, nRightMargin, and nTopMargin.

Referenced by Clone(), and CreateDefault().

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

Definition at line 171 of file algitem.cxx.

References nBottomMargin, nLeftMargin, nRightMargin, and nTopMargin.

Member Function Documentation

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

Implements SfxPoolItem.

Definition at line 245 of file algitem.cxx.

References SvxMarginItem().

Referenced by AutoFormatBase::SetMargin().

SfxPoolItem * SvxMarginItem::CreateDefault ( )
static

Definition at line 49 of file algitem.cxx.

References SvxMarginItem().

sal_Int16 SvxMarginItem::GetBottomMargin ( ) const
inline

Definition at line 91 of file algitem.hxx.

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

sal_Int16 SvxMarginItem::GetLeftMargin ( ) const
inline

Definition at line 85 of file algitem.hxx.

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

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

Reimplemented from SfxPoolItem.

Definition at line 187 of file algitem.cxx.

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

sal_Int16 SvxMarginItem::GetRightMargin ( ) const
inline

Definition at line 89 of file algitem.hxx.

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

sal_Int16 SvxMarginItem::GetTopMargin ( ) const
inline

Definition at line 87 of file algitem.hxx.

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

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

Implements SfxPoolItem.

Definition at line 234 of file algitem.cxx.

References nBottomMargin, nLeftMargin, nRightMargin, and nTopMargin.

bool SvxMarginItem::PutValue ( const css::uno::Any &  rVal,
sal_uInt8  nMemberId 
)
overridevirtual
bool SvxMarginItem::QueryValue ( css::uno::Any &  rVal,
sal_uInt8  nMemberId = 0 
) const
overridevirtual
void SvxMarginItem::SetBottomMargin ( sal_Int16  nBottom)

Definition at line 326 of file algitem.cxx.

References nBottomMargin.

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

void SvxMarginItem::SetLeftMargin ( sal_Int16  nLeft)

Definition at line 308 of file algitem.cxx.

References nLeftMargin.

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

void SvxMarginItem::SetRightMargin ( sal_Int16  nRight)

Definition at line 320 of file algitem.cxx.

References nRightMargin.

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

void SvxMarginItem::SetTopMargin ( sal_Int16  nTop)

Definition at line 314 of file algitem.cxx.

References nTopMargin.

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

Member Data Documentation

sal_Int16 SvxMarginItem::nBottomMargin
private

Definition at line 66 of file algitem.hxx.

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

sal_Int16 SvxMarginItem::nLeftMargin
private

Definition at line 63 of file algitem.hxx.

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

sal_Int16 SvxMarginItem::nRightMargin
private

Definition at line 65 of file algitem.hxx.

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

sal_Int16 SvxMarginItem::nTopMargin
private

Definition at line 64 of file algitem.hxx.

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


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