tdf#81705 doc export: write sprmPOutLvl
commita4d69d2a7680d4c8062119d2b9dab1df7c2b574d
authorJustin Luth <justin.luth@collabora.com>
Wed, 31 Mar 2021 16:37:06 +0000 (31 18:37 +0200)
committerMiklos Vajna <vmiklos@collabora.com>
Thu, 8 Apr 2021 08:21:47 +0000 (8 10:21 +0200)
tree5b6c29e05a30d3b06fcd746470f6a8bd22c9a336
parentfaf3f18bdc89cc5e04abdefcb12d63e6ef796396
tdf#81705 doc export: write sprmPOutLvl

but only if it is not the default value,
and it isn't the same as what it inherits.

Also tweaked DOCX, so that it can write out
the default in order to cancel a style's outline level.

RTF does nothing with ParaOutlineLevel.

I am slightly confused by ::OutlineNumbering
which also writes out Outline Level.
This appears to be a duplication
(and it also seems to duplicate ParaNumRule)
which DOCX avoids by just doing nothing.

Change-Id: I32dd1bf9f35dc5f7f500e65d517fad0304bf452d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113426
Tested-by: Jenkins
Reviewed-by: Justin Luth <justin_luth@sil.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
sw/qa/extras/ww8export/data/tdf81705_outlineLevel.doc [new file with mode: 0755]
sw/qa/extras/ww8export/ww8export3.cxx
sw/source/filter/ww8/attributeoutputbase.hxx
sw/source/filter/ww8/docxattributeoutput.cxx
sw/source/filter/ww8/ww8atr.cxx