From 91b18cee97b110fe60391faa945a6fd166f1d8aa Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Thu, 21 Apr 2016 08:36:20 +0200 Subject: Related: tdf#65642 RTF filter: import \pgnlcrm This as a side effect also implements support for DOCX . Change-Id: Ifb524b25236a8bc774690266a4fa205154204109 Reviewed-on: https://gerrit.libreoffice.org/24273 Reviewed-by: Miklos Vajna Tested-by: Jenkins --- sw/qa/extras/rtfexport/data/pgnlcrm.rtf | 23 +++++++++++++++++++++++ sw/qa/extras/rtfexport/rtfexport.cxx | 6 ++++++ 2 files changed, 29 insertions(+) create mode 100644 sw/qa/extras/rtfexport/data/pgnlcrm.rtf (limited to 'sw') diff --git a/sw/qa/extras/rtfexport/data/pgnlcrm.rtf b/sw/qa/extras/rtfexport/data/pgnlcrm.rtf new file mode 100644 index 000000000000..4ef9b61c80e5 --- /dev/null +++ b/sw/qa/extras/rtfexport/data/pgnlcrm.rtf @@ -0,0 +1,23 @@ +{\rtf1 +\pard\plain \ltrpar\ql \li0\ri0\sa200\sl276\slmult1\widctlpar\wrapdefault\aspalpha\aspnum\faauto\adjustright\rin0\lin0\itap0 \rtlch\fcs1 \af31507\afs22\alang1025 \ltrch\fcs0 +{\field\fldedit +{\*\fldinst +{ PAGE \\* MERGEFORMAT } +} +{\fldrslt +{1} +} +} +\sect +\sectd\pgnrestart\pgnlcrm +{\field\fldedit +{\*\fldinst +{\rtlch\fcs1 \af31507 \ltrch\fcs0 \insrsid525329 PAGE \\* MERGEFORMAT } +} +{\fldrslt +{\rtlch\fcs1 \af31507 \ltrch\fcs0 \lang1024\langfe1024\noproof\insrsid9597790 i} +} +} +{\rtlch\fcs1 \af31507 \ltrch\fcs0 \insrsid13321744 +\par } +} diff --git a/sw/qa/extras/rtfexport/rtfexport.cxx b/sw/qa/extras/rtfexport/rtfexport.cxx index c08735bfb6cc..58a35c1a0079 100644 --- a/sw/qa/extras/rtfexport/rtfexport.cxx +++ b/sw/qa/extras/rtfexport/rtfexport.cxx @@ -1019,6 +1019,12 @@ DECLARE_RTFEXPORT_TEST(testPgnucrm, "pgnucrm.rtf") CPPUNIT_ASSERT_EQUAL(style::NumberingType::ROMAN_UPPER, getProperty(getStyles("PageStyles")->getByName("Converted1"), "NumberingType")); } +DECLARE_RTFEXPORT_TEST(testPgnlcrm, "pgnlcrm.rtf") +{ + // The second page's numbering type: this was style::NumberingType::ARABIC. + CPPUNIT_ASSERT_EQUAL(style::NumberingType::ROMAN_LOWER, getProperty(getStyles("PageStyles")->getByName("Converted1"), "NumberingType")); +} + DECLARE_RTFEXPORT_TEST(testTdf98806, "tdf98806.rtf") { uno::Reference xBookmarksSupplier(mxComponent, uno::UNO_QUERY); -- cgit collabora/cd-5.3-3.4 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Wunderlich <sw@openoffice.org>2003-01-27 17:20:08 +0000
committerStephan Wunderlich <sw@openoffice.org>2003-01-27 17:20:08 +0000
commit26ebdfc472be16f0eb4110aab0335666d2ba5e62 (patch)
tree89b1b245105889ab56b358ce8d2edecee7f009dc /qadevOOo/tests/java/ifc/text/_XEndnotesSupplier.java
parentc1b610e51c2f678a8adb7c4c265aafb7e1aeb8e1 (diff)
NEW: initial version