diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-03-02 16:09:36 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-03-03 12:13:44 +0000 |
commit | 1cfedbc960d25ee322b0a0e7aae8dc73758b406e (patch) | |
tree | 1bcaac3e77e9693f9c3897d7c091acd603aff3fa /sw/inc/docufld.hxx | |
parent | f1ea8c43a8ab6b8d158d4d8f3a0039b3a2ac2c37 (diff) |
drop SvxNumType and rename SvxExtNumType->SvxNumType
Both of them are abstractions over the css::style::NumberingType
constants.
SvxNumType serves no useful purpose, since it's just a typedef to
sal_Int16.
At least SvxExtNumType wraps up the css::style::NumberingType constants
in a nice enum.
Change-Id: I7b3f97cd42b0aa23aff7a4db4930da86149d4f4e
Reviewed-on: https://gerrit.libreoffice.org/34816
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc/docufld.hxx')
-rw-r--r-- | sw/inc/docufld.hxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sw/inc/docufld.hxx b/sw/inc/docufld.hxx index 1d451f2d00df..b55fb6fa989d 100644 --- a/sw/inc/docufld.hxx +++ b/sw/inc/docufld.hxx @@ -125,16 +125,16 @@ enum SwJumpEditFormat class SwPageNumberFieldType : public SwFieldType { - SvxExtNumType nNumberingType; + SvxNumType nNumberingType; bool bVirtuell; public: SwPageNumberFieldType(); - OUString Expand( SvxExtNumType nFormat, short nOff, sal_uInt16 const nPageNumber, + OUString Expand( SvxNumType nFormat, short nOff, sal_uInt16 const nPageNumber, sal_uInt16 const nMaxPage, const OUString& ) const; void ChangeExpansion( SwDoc* pDoc, - bool bVirtPageNum, const SvxExtNumType* pNumFormat ); + bool bVirtPageNum, const SvxNumType* pNumFormat ); virtual SwFieldType* Copy() const override; }; @@ -247,14 +247,14 @@ public: class SwDocStatFieldType : public SwFieldType { SwDoc* pDoc; - SvxExtNumType nNumberingType; + SvxNumType nNumberingType; public: SwDocStatFieldType(SwDoc*); - OUString Expand(sal_uInt16 nSubType, SvxExtNumType nFormat) const; + OUString Expand(sal_uInt16 nSubType, SvxNumType nFormat) const; virtual SwFieldType* Copy() const override; - inline void SetNumFormat( SvxExtNumType eFormat ) { nNumberingType = eFormat; } + inline void SetNumFormat( SvxNumType eFormat ) { nNumberingType = eFormat; } }; class SW_DLLPUBLIC SwDocStatField : public SwField |