LibreOffice Module sw (master) 1
|
#include <docufld.hxx>
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< SwFieldType > | Copy () 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< SwFieldType > | Copy () 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 |
SwFormatField * | FindFormatForField (const SwField *) const |
SwFormatField * | FindFormatForPostItId (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... | |
Definition at line 131 of file docufld.hxx.
SwPageNumberFieldType::SwPageNumberFieldType | ( | ) |
Definition at line 98 of file docufld.cxx.
References PageNumber, and SVX_NUM_ARABIC.
Referenced by Copy().
void SwPageNumberFieldType::ChangeExpansion | ( | SwDoc * | pDoc, |
bool | bVirtPageNum, | ||
const SvxNumType * | pNumFormat | ||
) |
Definition at line 131 of file docufld.cxx.
References SwIterator< TElementType, TSource, eMode >::First(), SwDoc::GetAttrPool(), SfxItemPool::GetItemSurrogates(), SwDoc::GetNodes(), m_bVirtual, m_nNumberingType, and RES_PAGEDESC().
Referenced by SwTextFormatter::NewFieldPortion().
|
overridevirtual |
Implements SwFieldType.
Definition at line 121 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 |
Definition at line 105 of file docufld.cxx.
References FormatNumber(), m_bVirtual, m_nNumberingType, nLang, SVX_NUM_CHAR_SPECIAL, SVX_NUM_NUMBER_NONE, and SVX_NUM_PAGEDESC.
Referenced by SwPageNumberField::ExpandImpl().
|
private |
Definition at line 134 of file docufld.hxx.
Referenced by ChangeExpansion(), Copy(), and Expand().
|
private |
Definition at line 133 of file docufld.hxx.
Referenced by ChangeExpansion(), Copy(), and Expand().