summaryrefslogtreecommitdiff
path: root/sw/qa
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@suse.cz>2012-10-18 09:09:03 +0200
committerMiklos Vajna <vmiklos@suse.cz>2012-10-18 09:09:03 +0200
commitfc8f76395dce902b6599cdfc471b0074919c4fa4 (patch)
tree87c393d5845cf88ab1152c8eae51452c6ef43426 /sw/qa
parentb1e93b33acd15020089029a20343caefb262766b (diff)
import RTF_DPLINEHOLLOW
Change-Id: I580bc2cb38b7fe4b42cfbd78672fc5b8d1d01398
Diffstat (limited to 'sw/qa')
-rw-r--r--sw/qa/extras/rtfimport/data/dplinehollow.rtf7
-rw-r--r--sw/qa/extras/rtfimport/rtfimport.cxx12
2 files changed, 19 insertions, 0 deletions
diff --git a/sw/qa/extras/rtfimport/data/dplinehollow.rtf b/sw/qa/extras/rtfimport/data/dplinehollow.rtf
new file mode 100644
index 000000000000..fdfddbf4da01
--- /dev/null
+++ b/sw/qa/extras/rtfimport/data/dplinehollow.rtf
@@ -0,0 +1,7 @@
+{\rtf1\ansi\ansicpg1255\fbidis\deff0\deflang1037\deftab720
+\paperw11906\paperh16838\ltrdoc
+{\*\do\dobxpage\dobypara\dodhgt8192\dptxbx\dptxbxmar0
+{\dptxbxtext\ltrpar\f8\fs50\cf1\vertalc\qc\ltrch textbox without border\par}
+\dpx929\dpy340\dpxsize10556\dpysize561\dplinehollow0}
+\par
+}
diff --git a/sw/qa/extras/rtfimport/rtfimport.cxx b/sw/qa/extras/rtfimport/rtfimport.cxx
index 6e620d387af1..9c278185c9eb 100644
--- a/sw/qa/extras/rtfimport/rtfimport.cxx
+++ b/sw/qa/extras/rtfimport/rtfimport.cxx
@@ -31,6 +31,7 @@
#include <com/sun/star/document/XFilter.hpp>
#include <com/sun/star/document/XImporter.hpp>
#include <com/sun/star/drawing/EnhancedCustomShapeSegment.hpp>
+#include <com/sun/star/drawing/LineStyle.hpp>
#include <com/sun/star/drawing/XDrawPageSupplier.hpp>
#include <com/sun/star/graphic/GraphicType.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
@@ -117,6 +118,7 @@ public:
void testCopyPastePageStyle();
void testShptxtPard();
void testDoDhgt();
+ void testDplinehollow();
CPPUNIT_TEST_SUITE(Test);
#if !defined(MACOSX) && !defined(WNT)
@@ -173,6 +175,7 @@ public:
CPPUNIT_TEST(testCopyPastePageStyle);
CPPUNIT_TEST(testShptxtPard);
CPPUNIT_TEST(testDoDhgt);
+ CPPUNIT_TEST(testDplinehollow);
#endif
CPPUNIT_TEST_SUITE_END();
@@ -924,6 +927,15 @@ void Test::testDoDhgt()
}
}
+void Test::testDplinehollow()
+{
+ load("dplinehollow.rtf");
+ uno::Reference<drawing::XDrawPageSupplier> xDrawPageSupplier(mxComponent, uno::UNO_QUERY);
+ uno::Reference<container::XIndexAccess> xDraws(xDrawPageSupplier->getDrawPage(), uno::UNO_QUERY);
+ uno::Reference<beans::XPropertySet> xPropertySet(xDraws->getByIndex(0), uno::UNO_QUERY);
+ CPPUNIT_ASSERT_EQUAL(drawing::LineStyle_NONE, getProperty<drawing::LineStyle>(xPropertySet, "LineStyle"));
+}
+
CPPUNIT_TEST_SUITE_REGISTRATION(Test);
CPPUNIT_PLUGIN_IMPLEMENT();