LibreOffice Module sw (master)  1
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
SwFormatPageDesc Class Reference

Pagedescriptor Client of SwPageDesc that is "described" by the attribute. More...

#include <fmtpdsc.hxx>

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

Public Member Functions

 SwFormatPageDesc (const SwPageDesc *pDesc=nullptr)
 
 SwFormatPageDesc (const SwFormatPageDesc &rCpy)
 
SwFormatPageDescoperator= (const SwFormatPageDesc &rCpy)
 
virtual ~SwFormatPageDesc () override
 
virtual bool operator== (const SfxPoolItem &) const override
 "Pure virtual methods" of SfxPoolItem. More...
 
virtual SfxPoolItemClone (SfxItemPool *pPool=nullptr) const override
 
virtual bool GetPresentation (SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &rIntl) 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
 
SwPageDescGetPageDesc ()
 
const SwPageDescGetPageDesc () const
 
const ::boost::optional< sal_uInt16 > & GetNumOffset () const
 
void SetNumOffset (const ::boost::optional< sal_uInt16 > &oNum)
 
const SwModifyGetDefinedIn () const
 Query / set where attribute is anchored. More...
 
void ChgDefinedIn (const SwModify *pNew)
 
void RegisterToPageDesc (SwPageDesc &)
 
bool KnowsPageDesc () const
 
void dumpAsXml (xmlTextWriterPtr pWriter) const override
 
- 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 bool IsVoidItem () const
 
- Public Member Functions inherited from SwClient
 SwClient ()
 
 SwClient (SwClient &&) noexcept
 
virtual ~SwClient () override
 
std::unique_ptr< sw::ModifyChangedHintCheckRegistration (const SfxPoolItem *pOldValue)
 
virtual void ModifyNotification (const SfxPoolItem *pOldValue, const SfxPoolItem *pNewValue)
 
void SwClientNotifyCall (const SwModify &rModify, const SfxHint &rHint)
 
const SwModifyGetRegisteredIn () const
 
SwModifyGetRegisteredIn ()
 
void EndListeningAll ()
 
void StartListeningToSameModifyAs (const SwClient &)
 
virtual bool GetInfo (SfxPoolItem &) const
 
- Public Member Functions inherited from sw::WriterListener
bool IsLast () const
 

Protected Member Functions

virtual void Modify (const SfxPoolItem *pOld, const SfxPoolItem *pNew) override
 
virtual void SwClientNotify (const SwModify &, const SfxHint &rHint) override
 
- Protected Member Functions inherited from SfxPoolItem
 SfxPoolItem (sal_uInt16 nWhich=0)
 
 SfxPoolItem (const SfxPoolItem &rCopy)
 
- Protected Member Functions inherited from SwClient
 SwClient (SwModify *pToRegisterIn)
 
SwModifyGetRegisteredInNonConst () const
 
- Protected Member Functions inherited from sw::WriterListener
 WriterListener ()
 
virtual ~WriterListener () COVERITY_NOEXCEPT_FALSE
 

Private Attributes

::boost::optional< sal_uInt16 > m_oNumOffset
 Offset page number. More...
 
SwModifym_pDefinedIn
 Points to the object in which the attribute was set (ContentNode/Format). More...
 

Detailed Description

Pagedescriptor Client of SwPageDesc that is "described" by the attribute.

Definition at line 35 of file fmtpdsc.hxx.

Constructor & Destructor Documentation

SwFormatPageDesc::SwFormatPageDesc ( const SwPageDesc pDesc = nullptr)

Definition at line 591 of file atrfrm.cxx.

Referenced by Clone().

SwFormatPageDesc::SwFormatPageDesc ( const SwFormatPageDesc rCpy)

Definition at line 583 of file atrfrm.cxx.

SwFormatPageDesc::~SwFormatPageDesc ( )
overridevirtual

Definition at line 611 of file atrfrm.cxx.

Member Function Documentation

void SwFormatPageDesc::ChgDefinedIn ( const SwModify pNew)
inline
SfxPoolItem * SwFormatPageDesc::Clone ( SfxItemPool pPool = nullptr) const
overridevirtual

Implements SfxPoolItem.

Definition at line 626 of file atrfrm.cxx.

References SwFormatPageDesc().

void SwFormatPageDesc::dumpAsXml ( xmlTextWriterPtr  pWriter) const
overridevirtual

Reimplemented from SfxPoolItem.

Definition at line 768 of file atrfrm.cxx.

References GetPageDesc(), m_oNumOffset, and SfxPoolItem::Which().

const SwModify* SwFormatPageDesc::GetDefinedIn ( ) const
inline

Query / set where attribute is anchored.

Definition at line 69 of file fmtpdsc.hxx.

Referenced by SwFrame::GetVirtPageNum(), and SwClientNotify().

const ::boost::optional<sal_uInt16>& SwFormatPageDesc::GetNumOffset ( ) const
inline
SwPageDesc* SwFormatPageDesc::GetPageDesc ( )
inline
const SwPageDesc* SwFormatPageDesc::GetPageDesc ( ) const
inline

Definition at line 63 of file fmtpdsc.hxx.

References SwClient::GetRegisteredIn().

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

Reimplemented from SfxPoolItem.

Definition at line 456 of file attrdesc.cxx.

References SwPageDesc::GetName(), and SwResId().

bool SwFormatPageDesc::KnowsPageDesc ( ) const
void SwFormatPageDesc::Modify ( const SfxPoolItem pOld,
const SfxPoolItem pNew 
)
overrideprotectedvirtual

Reimplemented from SwClient.

Definition at line 664 of file atrfrm.cxx.

References m_pDefinedIn, RES_OBJECTDYING, RES_PAGEDESC, and SfxPoolItem::Which().

SwFormatPageDesc & SwFormatPageDesc::operator= ( const SwFormatPageDesc rCpy)

Definition at line 598 of file atrfrm.cxx.

References GetPageDesc(), m_oNumOffset, m_pDefinedIn, and RegisterToPageDesc().

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

"Pure virtual methods" of SfxPoolItem.

Implements SfxPoolItem.

Definition at line 618 of file atrfrm.cxx.

References GetPageDesc(), m_oNumOffset, and m_pDefinedIn.

bool SwFormatPageDesc::PutValue ( const css::uno::Any &  rVal,
sal_uInt8  nMemberId 
)
overridevirtual
bool SwFormatPageDesc::QueryValue ( css::uno::Any &  rVal,
sal_uInt8  nMemberId = 0 
) const
overridevirtual
void SwFormatPageDesc::RegisterToPageDesc ( SwPageDesc rDesc)
void SwFormatPageDesc::SetNumOffset ( const ::boost::optional< sal_uInt16 > &  oNum)
inline
void SwFormatPageDesc::SwClientNotify ( const SwModify rModify,
const SfxHint rHint 
)
overrideprotectedvirtual

Member Data Documentation

::boost::optional<sal_uInt16> SwFormatPageDesc::m_oNumOffset
private

Offset page number.

Definition at line 37 of file fmtpdsc.hxx.

Referenced by dumpAsXml(), operator=(), and operator==().

SwModify* SwFormatPageDesc::m_pDefinedIn
private

Points to the object in which the attribute was set (ContentNode/Format).

Definition at line 38 of file fmtpdsc.hxx.

Referenced by Modify(), operator=(), and operator==().


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