LibreOffice Module sw (master)  1
Public Member Functions | Private Attributes | List of all members
SwPageNumberFieldType Class Referencefinal

#include <docufld.hxx>

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

Public Member Functions

 SwPageNumberFieldType ()
 
OUString Expand (SvxNumType nFormat, short nOff, sal_uInt16 const nPageNumber, sal_uInt16 const nMaxPage, const OUString &, LanguageType=LANGUAGE_NONE) const
 
void ChangeExpansion (SwDoc *pDoc, bool bVirtPageNum, const SvxNumType *pNumFormat)
 
virtual std::unique_ptr< SwFieldTypeCopy () const override
 
- Public Member Functions inherited from SwFieldType
SAL_DLLPRIVATE css::uno::WeakReference< css::beans::XPropertySet > const & GetXObject () const
 
SAL_DLLPRIVATE void SetXObject (css::uno::Reference< css::beans::XPropertySet > const &xFieldMaster)
 
virtual OUString GetName () const
 Only in derived classes. More...
 
virtual void QueryValue (css::uno::Any &rVal, sal_uInt16 nWhich) const
 
virtual void PutValue (const css::uno::Any &rVal, sal_uInt16 nWhich)
 
SwFieldIds Which () const
 
void UpdateFields () const
 
void PrintHiddenPara ()
 
virtual void dumpAsXml (xmlTextWriterPtr pWriter) const
 
SwFormatFieldFindFormatForField (const SwField *) const
 
SwFormatFieldFindFormatForPostItId (sal_uInt32 nPostItId) const
 
void CollectPostIts (std::vector< SwFormatField * > &rvFormatFields, IDocumentRedlineAccess const &rIDRA, bool HideRedlines)
 
bool HasHiddenInformationNotes () const
 
void GatherNodeIndex (std::vector< sal_uLong > &rvNodeIndex)
 
void GatherRefFields (std::vector< SwGetRefField * > &rvRFields, const sal_uInt16 nTyp)
 
void GatherFields (std::vector< SwFormatField * > &rvFormatFields, bool bCollectOnlyInDocNodes=true) const
 
- Public Member Functions inherited from sw::BroadcastingModify
virtual void CallSwClientNotify (const SfxHint &rHint) const override
 
- Public Member Functions inherited from SwModify
 SwModify ()
 
virtual ~SwModify () override
 
void Add (SwClient *pDepend)
 
SwClientRemove (SwClient *pDepend)
 
bool HasWriterListeners () const
 
virtual bool GetInfo (SfxPoolItem &) const override
 
void LockModify ()
 
void UnlockModify ()
 
void SetInCache (bool bNew)
 
void SetInDocDTOR ()
 
bool IsModifyLocked () const
 
bool IsInCache () const
 
void CheckCaching (const sal_uInt16 nWhich)
 
bool HasOnlyOneListener () const
 
- Public Member Functions inherited from SwClient
 SwClient ()
 
 SwClient (SwClient &&) noexcept
 
virtual ~SwClient () override
 
std::unique_ptr< sw::ModifyChangedHintCheckRegistration (const SfxPoolItem *pOldValue)
 
void CheckRegistrationFormat (SwFormat &rOld)
 
const SwModifyGetRegisteredIn () const
 
SwModifyGetRegisteredIn ()
 
void EndListeningAll ()
 
void StartListeningToSameModifyAs (const SwClient &)
 
- Public Member Functions inherited from sw::WriterListener
bool IsLast () const
 
- Public Member Functions inherited from sw::BroadcasterMixin
 BroadcasterMixin ()=default
 
 BroadcasterMixin (BroadcasterMixin const &)=default
 
BroadcasterMixinoperator= (const BroadcasterMixin &)
 
SvtBroadcasterGetNotifier ()
 

Private Attributes

SvxNumType m_nNumberingType
 
bool m_bVirtual
 

Additional Inherited Members

- Static Public Member Functions inherited from SwFieldType
static OUString GetTypeStr (SwFieldTypesEnum nTypeId)
 
- Protected Member Functions inherited from SwFieldType
 SwFieldType (SwFieldIds nWhichId)
 Single argument ctors shall be explicit. More...
 
- Protected Member Functions inherited from SwModify
virtual void SwClientNotify (const SwModify &, const SfxHint &rHint) override
 
- Protected Member Functions inherited from SwClient
 SwClient (SwModify *pToRegisterIn)
 
SwModifyGetRegisteredInNonConst () const
 
- Protected Member Functions inherited from sw::WriterListener
 WriterListener ()
 
virtual ~WriterListener () COVERITY_NOEXCEPT_FALSE
 

Detailed Description

Definition at line 130 of file docufld.hxx.

Constructor & Destructor Documentation

SwPageNumberFieldType::SwPageNumberFieldType ( )

Definition at line 95 of file docufld.cxx.

References PageNumber, and SVX_NUM_ARABIC.

Referenced by Copy().

Member Function Documentation

void SwPageNumberFieldType::ChangeExpansion ( SwDoc pDoc,
bool  bVirtPageNum,
const SvxNumType pNumFormat 
)
std::unique_ptr< SwFieldType > SwPageNumberFieldType::Copy ( ) const
overridevirtual

Implements SwFieldType.

Definition at line 118 of file docufld.cxx.

References m_bVirtual, m_nNumberingType, and SwPageNumberFieldType().

OUString SwPageNumberFieldType::Expand ( SvxNumType  nFormat,
short  nOff,
sal_uInt16 const  nPageNumber,
sal_uInt16 const  nMaxPage,
const OUString &  rUserStr,
LanguageType  nLang = LANGUAGE_NONE 
) const

Member Data Documentation

bool SwPageNumberFieldType::m_bVirtual
private

Definition at line 133 of file docufld.hxx.

Referenced by ChangeExpansion(), Copy(), and Expand().

SvxNumType SwPageNumberFieldType::m_nNumberingType
private

Definition at line 132 of file docufld.hxx.

Referenced by ChangeExpansion(), Copy(), and Expand().


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