tdf#144668: docx export: simpler way to create lvlText in numberings
commite0b41fcb56e51f20684da4ba44d7ed6e0e1a3234
authorVasily Melenchuk <vasily.melenchuk@cib.de>
Thu, 28 Oct 2021 10:36:50 +0000 (28 13:36 +0300)
committerMichael Stahl <michael.stahl@allotropia.de>
Fri, 5 Nov 2021 09:54:47 +0000 (5 10:54 +0100)
tree727cbfd490620a23f4bbbda0981eeed5311fe939
parent4a7022c199addb1fbc7445708c0f4801fbf1e47f
tdf#144668: docx export: simpler way to create lvlText in numberings

Oldr approach with populating ListLabelString with some predefined
values and than replacing them by placeholders is not so good. It
can lead to collisions if we use numbers in format string.

Anow with support of list strings in core we do not need this: it
is enougth to replace LO placeholders %1%, %2%, ... by MS binary
placeholders \0, \1, ...

Additionally added support for list level initialization in DOC
import: that case was still setting just prefix/suffix leaving
list level uninitialized.

Change-Id: Ia85551f46b4e229dea93c663459ec1a8715c8a23
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124326
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
sw/qa/extras/ooxmlexport/data/tdf144668.odt [new file with mode: 0644]
sw/qa/extras/ooxmlexport/ooxmlexport17.cxx
sw/source/filter/ww8/wrtw8num.cxx
sw/source/filter/ww8/ww8par.hxx
sw/source/filter/ww8/ww8par2.cxx