diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-03-02 14:24:47 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-03-03 06:45:05 +0000 |
commit | afa675469cd9894f41a6b9eeb2e7acc8245d256c (patch) | |
tree | ce8bcab207aef1534298b2369accc4ada5597b08 /include | |
parent | f091259ad2ec1590714645839668580cd7b8c7c4 (diff) |
use SvxExtNumType in SvxNumberType
and follow the rabbit trail, fixing various other types in the process
Change-Id: I8fc7df3b585df21578ffb28fdd7e5e427b3bfd9d
Reviewed-on: https://gerrit.libreoffice.org/34814
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/editeng/numitem.hxx | 32 | ||||
-rw-r--r-- | include/editeng/svxenum.hxx | 6 | ||||
-rw-r--r-- | include/svx/nbdtmg.hxx | 10 |
3 files changed, 26 insertions, 22 deletions
diff --git a/include/editeng/numitem.hxx b/include/editeng/numitem.hxx index 040acd7b3f86..16fd8df5d8b0 100644 --- a/include/editeng/numitem.hxx +++ b/include/editeng/numitem.hxx @@ -55,19 +55,19 @@ class EDITENG_DLLPUBLIC SvxNumberType static sal_Int32 nRefCount; static css::uno::Reference<css::text::XNumberingFormatter> xFormatter; - sal_Int16 nNumType; + SvxExtNumType nNumType; bool bShowSymbol; // Also show Symbol ? public: - explicit SvxNumberType(sal_Int16 nType = css::style::NumberingType::ARABIC); + explicit SvxNumberType(SvxExtNumType nType = SVX_NUM_ARABIC); SvxNumberType(const SvxNumberType& rType); ~SvxNumberType(); OUString GetNumStr( sal_uLong nNo ) const; OUString GetNumStr( sal_uLong nNo, const css::lang::Locale& rLocale ) const; - void SetNumberingType(sal_Int16 nSet) {nNumType = nSet;} - sal_Int16 GetNumberingType() const {return nNumType;} + void SetNumberingType(SvxExtNumType nSet) {nNumType = nSet;} + SvxExtNumType GetNumberingType() const {return nNumType;} void SetShowSymbol(bool bSet) {bShowSymbol = bSet;} bool IsShowSymbol()const{return bShowSymbol;} @@ -96,8 +96,8 @@ public: }; private: - OUString sPrefix; - OUString sSuffix; + OUString sPrefix; + OUString sSuffix; SvxAdjust eNumAdjust; @@ -125,13 +125,13 @@ private: // specifies what follows the list label before the text of the first line // of the list item starts - LabelFollowedBy meLabelFollowedBy; + LabelFollowedBy meLabelFollowedBy; // specifies an additional list tab stop position for meLabelFollowedBy = LISTTAB - long mnListtabPos; + long mnListtabPos; // specifies the first line indent - long mnFirstLineIndent; + long mnFirstLineIndent; // specifies the indent before the text, e.g. in L2R-layout the left margin - long mnIndentAt; + long mnIndentAt; SvxBrushItem* pGraphicBrush; sal_Int16 eVertOrient; // vertical alignment of a bitmap @@ -142,7 +142,7 @@ private: OUString sCharStyleName; // Character Style public: - explicit SvxNumberFormat( sal_Int16 nNumberingType, + explicit SvxNumberFormat( SvxExtNumType nNumberingType, SvxNumPositionAndSpaceMode ePositionAndSpaceMode = LABEL_WIDTH_AND_POSITION ); SvxNumberFormat(const SvxNumberFormat& rFormat); SvxNumberFormat( SvStream & rStream ); @@ -158,9 +158,9 @@ public: void SetNumAdjust(SvxAdjust eSet) {eNumAdjust = eSet;} SvxAdjust GetNumAdjust() const {return eNumAdjust;} void SetPrefix(const OUString& rSet) { sPrefix = rSet;} - const OUString& GetPrefix() const { return sPrefix;} + const OUString& GetPrefix() const { return sPrefix;} void SetSuffix(const OUString& rSet) { sSuffix = rSet;} - const OUString& GetSuffix() const { return sSuffix;} + const OUString& GetSuffix() const { return sSuffix;} void SetCharFormatName(const OUString& rSet){ sCharStyleName = rSet; } virtual OUString GetCharFormatName()const; @@ -170,14 +170,14 @@ public: void SetBulletChar(sal_Unicode cSet){cBullet = cSet;} sal_Unicode GetBulletChar()const {return cBullet;} void SetBulletRelSize(sal_uInt16 nSet) {nBulletRelSize = nSet;} - sal_uInt16 GetBulletRelSize() const { return nBulletRelSize;} + sal_uInt16 GetBulletRelSize() const { return nBulletRelSize;} void SetBulletColor(Color nSet){nBulletColor = nSet;} const Color& GetBulletColor()const {return nBulletColor;} void SetIncludeUpperLevels( sal_uInt8 nSet ) { nInclUpperLevels = nSet;} - sal_uInt8 GetIncludeUpperLevels()const { return nInclUpperLevels;} + sal_uInt8 GetIncludeUpperLevels()const { return nInclUpperLevels;} void SetStart(sal_uInt16 nSet) {nStart = nSet;} - sal_uInt16 GetStart() const {return nStart;} + sal_uInt16 GetStart() const {return nStart;} virtual void SetGraphicBrush( const SvxBrushItem* pBrushItem, const Size* pSize = nullptr, const sal_Int16* pOrient = nullptr); const SvxBrushItem* GetBrush() const {return pGraphicBrush;} diff --git a/include/editeng/svxenum.hxx b/include/editeng/svxenum.hxx index 63b11937290a..de4268025317 100644 --- a/include/editeng/svxenum.hxx +++ b/include/editeng/svxenum.hxx @@ -175,7 +175,11 @@ enum SvxExtNumType SVX_NUM_AIU_FULLWIDTH_JA = css::style::NumberingType::AIU_FULLWIDTH_JA, SVX_NUM_AIU_HALFWIDTH_JA = css::style::NumberingType::AIU_HALFWIDTH_JA, SVX_NUM_IROHA_FULLWIDTH_JA = css::style::NumberingType::IROHA_FULLWIDTH_JA, - SVX_NUM_IROHA_HALFWIDTH_JA = css::style::NumberingType::IROHA_HALFWIDTH_JA + SVX_NUM_IROHA_HALFWIDTH_JA = css::style::NumberingType::IROHA_HALFWIDTH_JA, + SVX_NUM_HANGUL_SYLLABLE_KO = css::style::NumberingType::HANGUL_SYLLABLE_KO, + SVX_NUM_HANGUL_JAMO_KO = css::style::NumberingType::HANGUL_JAMO_KO, + SVX_NUM_NUMBER_HANGUL_KO = css::style::NumberingType::NUMBER_HANGUL_KO, + SVX_NUM_NUMBER_UPPER_KO = css::style::NumberingType::NUMBER_UPPER_KO, }; #endif diff --git a/include/svx/nbdtmg.hxx b/include/svx/nbdtmg.hxx index e7816680950a..f1cd4de00c9d 100644 --- a/include/svx/nbdtmg.hxx +++ b/include/svx/nbdtmg.hxx @@ -43,11 +43,11 @@ enum class NBType class SVX_DLLPUBLIC NumSettings_Impl { public: - short nNumberType; - short nParentNumbering; + SvxExtNumType nNumberType; + short nParentNumbering; SvxNumberFormat::LabelFollowedBy eLabelFollowedBy; - long nTabValue; - SvxAdjust eNumAlign; + long nTabValue; + SvxAdjust eNumAlign; long nNumAlignAt; long nNumIndentAt; rtl::OUString sPrefix; @@ -59,7 +59,7 @@ class SVX_DLLPUBLIC NumSettings_Impl public: NumSettings_Impl() - : nNumberType(0) + : nNumberType(SVX_NUM_CHARS_UPPER_LETTER) , nParentNumbering(0) , eLabelFollowedBy(SvxNumberFormat::NOTHING) , nTabValue (0) |