diff options
author | Nithin Kumar Padavu <nithinrao@gmail.com> | 2018-04-07 15:10:06 +0000 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2018-04-08 16:57:19 +0200 |
commit | 4f5928ea8022d879764cc882f01a1b642645d66f (patch) | |
tree | a93800a04c9f927740069e5f9ea69acfa58968e2 /sw/qa | |
parent | 08297b3022180ee169a44230edc43d020d97cf42 (diff) |
tdf#112384 sw: Allow New line as a label followed by chapter numbering
reference-language also added to token list
Change-Id: I32713508d3611dc2bce10b2c5abb1e1a4167bdaf
Reviewed-on: https://gerrit.libreoffice.org/52561
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'sw/qa')
-rw-r--r-- | sw/qa/extras/odfexport/data/chapter-number-new-line.odt | bin | 0 -> 8649 bytes | |||
-rw-r--r-- | sw/qa/extras/odfexport/odfexport.cxx | 11 |
2 files changed, 11 insertions, 0 deletions
diff --git a/sw/qa/extras/odfexport/data/chapter-number-new-line.odt b/sw/qa/extras/odfexport/data/chapter-number-new-line.odt Binary files differnew file mode 100644 index 000000000000..68a427f72e79 --- /dev/null +++ b/sw/qa/extras/odfexport/data/chapter-number-new-line.odt diff --git a/sw/qa/extras/odfexport/odfexport.cxx b/sw/qa/extras/odfexport/odfexport.cxx index 7566ec25ad6e..219ef5bd8b07 100644 --- a/sw/qa/extras/odfexport/odfexport.cxx +++ b/sw/qa/extras/odfexport/odfexport.cxx @@ -1964,6 +1964,17 @@ DECLARE_ODFEXPORT_TEST(testSignatureLineProperties, "signatureline-properties.fo CPPUNIT_ASSERT_EQUAL(true, getProperty<bool>(xShape, "SignatureLineShowSignDate")); } +DECLARE_ODFEXPORT_TEST(testChapterNumberingNewLine, "chapter-number-new-line.odt") +{ + uno::Reference<text::XChapterNumberingSupplier> xNumberingSupplier(mxComponent, uno::UNO_QUERY); + uno::Reference<container::XIndexAccess> xNumberingRules = xNumberingSupplier->getChapterNumberingRules(); + comphelper::SequenceAsHashMap hashMap(xNumberingRules->getByIndex(0)); + + //This failed Actual Value was LISTTAB instead of NEWLINE + CPPUNIT_ASSERT_EQUAL( + sal_Int16(SvxNumberFormat::NEWLINE), hashMap["LabelFollowedBy"].get<sal_Int16>()); +} + #endif CPPUNIT_PLUGIN_IMPLEMENT(); |