summaryrefslogtreecommitdiff
path: root/sw/qa
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-04-20 10:21:12 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-04-20 10:56:24 +0200
commita2fea109e6454b10e8e85148b93bdca89066fe8d (patch)
tree399e53d21bab2253af65e49e70142062f928edf9 /sw/qa
parenta3ec386c2283a196f8d9f1edd0ff97c38ddb281a (diff)
RtfAttributeOutput::ParaHyphenZone: use \hyphpar
Previously SvxHyphenZoneItem was serialized to some custom RTF extension that even our own RTF import ignores since LO 3.5. Change-Id: Ia99d9750ad0b1a07105eeef2bee07e6fdbfe7876
Diffstat (limited to 'sw/qa')
-rw-r--r--sw/qa/extras/rtfexport/data/hyphpar.rtf5
-rw-r--r--sw/qa/extras/rtfexport/rtfexport.cxx6
2 files changed, 11 insertions, 0 deletions
diff --git a/sw/qa/extras/rtfexport/data/hyphpar.rtf b/sw/qa/extras/rtfexport/data/hyphpar.rtf
new file mode 100644
index 000000000000..762392e38c17
--- /dev/null
+++ b/sw/qa/extras/rtfexport/data/hyphpar.rtf
@@ -0,0 +1,5 @@
+{\rtf1\hyphauto1
+\pard\plain AAA\par
+\pard\plain\hyphpar0 BBB\par
+\pard\plain CCC\par
+}
diff --git a/sw/qa/extras/rtfexport/rtfexport.cxx b/sw/qa/extras/rtfexport/rtfexport.cxx
index dc1107a6b9dd..47a91db92771 100644
--- a/sw/qa/extras/rtfexport/rtfexport.cxx
+++ b/sw/qa/extras/rtfexport/rtfexport.cxx
@@ -872,6 +872,12 @@ DECLARE_RTFEXPORT_TEST(testHyphauto, "hyphauto.rtf")
CPPUNIT_ASSERT_EQUAL(true, getProperty<bool>(getParagraph(1), "ParaIsHyphenation"));
}
+DECLARE_RTFEXPORT_TEST(testHyphpar, "hyphpar.rtf")
+{
+ // Hyphenation was enabled for all 3 paragraphs, but it should be disabled for the 2nd one.
+ CPPUNIT_ASSERT_EQUAL(false, getProperty<bool>(getParagraph(2), "ParaIsHyphenation"));
+}
+
CPPUNIT_PLUGIN_IMPLEMENT();
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */