diff options
author | Vasily Melenchuk <vasily.melenchuk@cib.de> | 2020-04-13 11:06:29 +0300 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2020-04-27 22:36:12 +0200 |
commit | 7459b9ecb54a298f02d19089620149718f8d8d48 (patch) | |
tree | 8e26f751e26b4e4f7ca53d36d6c94603d096650c /include | |
parent | 4ba179eb9208185406207522e39626327c7d74c3 (diff) |
tdf#116883: sw: support for lists level format string
Multilevel lists are more flexible in case of DOCX. There is
supported custom format for any level in DOCX unlike in LO
and ODT where we are limited only with prefix and suffix
for hardcoded list levels separated by dot. At the same time
DOCX can have lists not only "1.2.3.4", but "1/2/3/4" or even
"1!2>3)4" and such format can vary on each list level.
Here is basic implementation for list format as a core feature
for all documents and old way (prefix-suffix + ".") is left
as fallback.
Practically its usage is currently implemented only in DOCX
import/export.
Some RTF/OOXML unittests were redesigned: since we are not creating
prefix/suffix for these formats conditions should be checked in
a different way.
Change-Id: I1ec58bcc5874d4fa19aee6a1f42bf1671d853b14
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92106
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/editeng/numitem.hxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/editeng/numitem.hxx b/include/editeng/numitem.hxx index 12686b80b2aa..1b8c4b130463 100644 --- a/include/editeng/numitem.hxx +++ b/include/editeng/numitem.hxx @@ -107,6 +107,7 @@ public: private: OUString sPrefix; OUString sSuffix; + OUString sListFormat; // Format string ">%1.%2<" can be used instead of prefix/suffix SvxAdjust eNumAdjust; @@ -171,6 +172,8 @@ public: const OUString& GetPrefix() const { return sPrefix;} void SetSuffix(const OUString& rSet) { sSuffix = rSet;} const OUString& GetSuffix() const { return sSuffix;} + void SetListFormat(const OUString& rSet) { sListFormat = rSet; } + const OUString& GetListFormat() const { return sListFormat; } void SetCharFormatName(const OUString& rSet){ sCharStyleName = rSet; } virtual OUString GetCharFormatName()const; |