diff options
author | Nusaiba Al-Kindi <noseeba1@gmail.com> | 2016-01-21 15:38:03 +0400 |
---|---|---|
committer | jan iversen <jani@documentfoundation.org> | 2016-01-21 19:39:22 +0000 |
commit | 6517141b6233c5f9667031bc92f66109fddf5b76 (patch) | |
tree | 027f0d4be7dc94efdda64ffed61cbcff3b3ae269 /include | |
parent | 18f1eb7b0c3536817572eeb481591418a7eab3da (diff) |
tdf#42788: FORMATTING - Numbering/ordered list
I changed the default numbering alignment of the Roman(upper/ lower) numbers list to the right
instead of left with out any changes in the default alignment of other numbring type lists.
In addition, numbering alignment can be changed by the user and any new list created will not
be affected by the user choice (using the default settings for the new list).
Change-Id: I7a6b7fb31bf40e26910e90538cd336e767f4c056
Reviewed-on: https://gerrit.libreoffice.org/21439
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: jan iversen <jani@documentfoundation.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/editeng/numitem.hxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/editeng/numitem.hxx b/include/editeng/numitem.hxx index d338a510189a..cefaf8f17e28 100644 --- a/include/editeng/numitem.hxx +++ b/include/editeng/numitem.hxx @@ -60,12 +60,12 @@ class EDITENG_DLLPUBLIC SvxNumberType public: explicit SvxNumberType(sal_Int16 nType = css::style::NumberingType::ARABIC); SvxNumberType(const SvxNumberType& rType); - ~SvxNumberType(); + virtual ~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;} + virtual void SetNumberingType(sal_Int16 nSet) {nNumType = nSet;} sal_Int16 GetNumberingType() const {return nNumType;} void SetShowSymbol(bool bSet) {bShowSymbol = bSet;} @@ -99,6 +99,7 @@ private: OUString sSuffix; SvxAdjust eNumAdjust; + bool mbNumAdjustChanged; sal_uInt8 nInclUpperLevels; // Take over numbers from the previous level. sal_uInt16 nStart; // Start of counting @@ -154,7 +155,8 @@ public: bool operator==( const SvxNumberFormat& ) const; bool operator!=( const SvxNumberFormat& rFmt) const {return !(*this == rFmt);} - void SetNumAdjust(SvxAdjust eSet) {eNumAdjust = eSet;} + void SetNumberingType(sal_Int16 nSet); + void SetNumAdjust(SvxAdjust eSet); SvxAdjust GetNumAdjust() const {return eNumAdjust;} void SetPrefix(const OUString& rSet) { sPrefix = rSet;} const OUString& GetPrefix() const { return sPrefix;} |