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
unotools::WeakReference< SwXFieldMaster > const & GetXObject () const
 
void SetXObject (rtl::Reference< SwXFieldMaster > const &xFieldMaster)
 
virtual OUString GetName () const
 Only in derived classes. More...
 
virtual std::unique_ptr< SwFieldTypeCopy () const =0
 
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 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< SwNodeOffset > &rvNodeIndex)
 
void GatherRefFields (std::vector< SwGetRefField * > &rvRFields, const sal_uInt16 nTyp)
 
void GatherFields (std::vector< SwFormatField * > &rvFormatFields, bool bCollectOnlyInDocNodes=true) const
 
void GatherDdeTables (std::vector< SwDDETable * > &rvTables) const
 
void UpdateDocPos (const SwTwips nDocPos)
 
virtual void UpdateFields ()
 

Private Attributes

SvxNumType m_nNumberingType
 
bool m_bVirtual
 

Additional Inherited Members

- Static Public Member Functions inherited from SwFieldType
static const OUString & GetTypeStr (SwFieldTypesEnum nTypeId)
 
- Protected Member Functions inherited from SwFieldType
 SwFieldType (SwFieldIds nWhichId)
 Single argument ctors shall be explicit. More...
 

Detailed Description

Definition at line 131 of file docufld.hxx.

Constructor & Destructor Documentation

◆ SwPageNumberFieldType()

SwPageNumberFieldType::SwPageNumberFieldType ( )

Definition at line 98 of file docufld.cxx.

References PageNumber, and SVX_NUM_ARABIC.

Referenced by Copy().

Member Function Documentation

◆ ChangeExpansion()

void SwPageNumberFieldType::ChangeExpansion ( SwDoc pDoc,
bool  bVirtPageNum,
const SvxNumType pNumFormat 
)

◆ Copy()

std::unique_ptr< SwFieldType > SwPageNumberFieldType::Copy ( ) const
overridevirtual

Implements SwFieldType.

Definition at line 121 of file docufld.cxx.

References m_bVirtual, m_nNumberingType, and SwPageNumberFieldType().

◆ Expand()

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

◆ m_bVirtual

bool SwPageNumberFieldType::m_bVirtual
private

Definition at line 134 of file docufld.hxx.

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

◆ m_nNumberingType

SvxNumType SwPageNumberFieldType::m_nNumberingType
private

Definition at line 133 of file docufld.hxx.

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


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