new ODF numbered list parameter loext:num-list-format
commitaa5c6d127559912ad60a63fbd972b78fb8f9691b
authorVasily Melenchuk <vasily.melenchuk@cib.de>
Mon, 14 Jun 2021 11:27:56 +0000 (14 14:27 +0300)
committerThorsten Behrens <thorsten.behrens@allotropia.de>
Mon, 28 Jun 2021 22:48:36 +0000 (29 00:48 +0200)
treef58857a341fa8930ad173e82e5c11a5fedf294e0
parent99ef46fdb2a975e074c66a02328b86edfc05307f
new ODF numbered list parameter loext:num-list-format

Instead of style:num-prefix and style:num-suffix new list format
is much more flexible for storing list multilevel numberings.
Now it is possible to have not just prefix/suffix but any random
separators between levels, arbitrary levels order, etc.

Internal LO format for list format is changed: instead of placeholders
like %1, %2, etc we right now use %1%, %2%... Reason: for ODT documents,
having more than 9 levels there is ambiguity in "%10": it is "%1"
followed by "0" suffix, or "%10"?

Aux changes:
* removed zero width space hack: since format string is always defined
this hack is interfering with standard list numbers printing
(see changes in ooxmlexport14.cxx, ww8export3.cxx tests)
* changed cross-references values to lists: they are now including full
list label string: previously this was bit self-contradictory (see
changes in odfexport.cxx and check_cross_references.py tests)

Change-Id: I9696cc4846375c5f6222539aeaadbca5ae58ce27
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117156
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
26 files changed:
cui/source/tabpages/numpages.cxx
editeng/source/items/numitem.cxx
include/editeng/numitem.hxx
include/xmloff/xmltoken.hxx
offapi/com/sun/star/style/NumberingLevel.idl
schema/libreoffice/OpenDocument-v1.3+libreoffice-schema.rng
sd/source/ui/dlg/BulletAndPositionDlg.cxx
svx/source/sidebar/nbdtmg.cxx
sw/qa/extras/odfexport/data/listformat.docx [new file with mode: 0644]
sw/qa/extras/odfexport/data/listformat.odt [new file with mode: 0644]
sw/qa/extras/odfexport/odfexport.cxx
sw/qa/extras/odfexport/odfexport2.cxx
sw/qa/extras/ooxmlexport/ooxmlexport14.cxx
sw/qa/extras/rtfexport/rtfexport.cxx
sw/qa/extras/ww8export/ww8export2.cxx
sw/qa/extras/ww8export/ww8export3.cxx
sw/qa/python/check_cross_references.py
sw/source/core/doc/number.cxx
sw/source/filter/ww8/wrtw8num.cxx
sw/source/filter/ww8/ww8par3.cxx
sw/source/ui/misc/outline.cxx
writerfilter/source/dmapper/NumberingManager.cxx
xmloff/source/core/xmltoken.cxx
xmloff/source/style/xmlnume.cxx
xmloff/source/style/xmlnumi.cxx
xmloff/source/token/tokens.txt