tdf#116883: sw: support for lists level format string
commitce7bfd633b4628e11c176bfdedffa8a226eb9b29
authorVasily Melenchuk <vasily.melenchuk@cib.de>
Mon, 13 Apr 2020 08:06:29 +0000 (13 11:06 +0300)
committerAndras Timar <andras.timar@collabora.com>
Wed, 6 May 2020 20:27:09 +0000 (6 22:27 +0200)
tree0c9035ab7489d0a10b4a998941053a28c833fafe
parentc53e212accd8b95ede9a707f44cf88bfbf1ea922
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>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93125
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Change-Id: Ia8f066913a2565559d81f3caabeba24b29c09052
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93456
16 files changed:
editeng/source/items/numitem.cxx
include/editeng/numitem.hxx
sw/inc/unoprnms.hxx
sw/qa/extras/ooxmlexport/data/tdf116883.docx [new file with mode: 0644]
sw/qa/extras/ooxmlexport/ooxmlexport.cxx
sw/qa/extras/ooxmlexport/ooxmlexport10.cxx
sw/qa/extras/ooxmlexport/ooxmlexport12.cxx
sw/qa/extras/rtfexport/rtfexport.cxx
sw/qa/extras/rtfimport/rtfimport.cxx
sw/source/core/doc/number.cxx
sw/source/core/unocore/unosett.cxx
sw/source/filter/ww8/wrtw8num.cxx
writerfilter/source/dmapper/NumberingManager.cxx
writerfilter/source/dmapper/NumberingManager.hxx
writerfilter/source/dmapper/PropertyIds.cxx
writerfilter/source/dmapper/PropertyIds.hxx