diff options
author | Justin Luth <justin.luth@collabora.com> | 2021-03-31 18:37:06 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2021-04-08 10:21:47 +0200 |
commit | a4d69d2a7680d4c8062119d2b9dab1df7c2b574d (patch) | |
tree | 5b6c29e05a30d3b06fcd746470f6a8bd22c9a336 /sw/qa/extras/ww8export/ww8export3.cxx | |
parent | faf3f18bdc89cc5e04abdefcb12d63e6ef796396 (diff) |
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>
Diffstat (limited to 'sw/qa/extras/ww8export/ww8export3.cxx')
-rw-r--r-- | sw/qa/extras/ww8export/ww8export3.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sw/qa/extras/ww8export/ww8export3.cxx b/sw/qa/extras/ww8export/ww8export3.cxx index 6364762be9b0..508636e506b7 100644 --- a/sw/qa/extras/ww8export/ww8export3.cxx +++ b/sw/qa/extras/ww8export/ww8export3.cxx @@ -579,6 +579,14 @@ DECLARE_WW8EXPORT_TEST(testTdf129522_removeShadowStyle, "tdf129522_removeShadowS CPPUNIT_ASSERT_EQUAL(table::ShadowLocation_NONE, aShadow.Location); } +DECLARE_WW8EXPORT_TEST(testTdf81705_outlineLevel, "tdf81705_outlineLevel.doc") +{ + // direct formatting resets outline level to body text (0) + CPPUNIT_ASSERT_EQUAL_MESSAGE("Paragraph C", sal_uInt16(0), getProperty<sal_uInt16>(getParagraph(3), "OutlineLevel")); + // myStyle sets outline level to 1. + CPPUNIT_ASSERT_EQUAL_MESSAGE("Paragraph D", sal_uInt16(1), getProperty<sal_uInt16>(getParagraph(4), "OutlineLevel")); +} + DECLARE_WW8EXPORT_TEST(testBtlrCell, "btlr-cell.doc") { // Without the accompanying fix in place, this test would have failed, as |