summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCédric Bosdonnat <cedric.bosdonnat@free.fr>2012-09-21 17:17:33 +0200
committerCédric Bosdonnat <cedric.bosdonnat@free.fr>2012-09-21 17:28:39 +0200
commit207aebf733cc568845cea5c2aeff78493e056b9a (patch)
treed587b8882bb36b2ad727c2e85cf0128f8ee879c3 /sw
parentb14b0f2b953b68612b8c230dbf3cabc15247c72d (diff)
n#780563: Fixed table import in shapes table handler was missing
Change-Id: I7720cfc706d9612fcc1e8a53b13a31f22b91d99e
Diffstat (limited to 'sw')
-rw-r--r--sw/qa/extras/ooxmlimport/data/n780563.docxbin0 -> 24144 bytes
-rw-r--r--sw/qa/extras/ooxmlimport/ooxmlimport.cxx13
2 files changed, 13 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlimport/data/n780563.docx b/sw/qa/extras/ooxmlimport/data/n780563.docx
new file mode 100644
index 000000000000..508dc7474bfa
--- /dev/null
+++ b/sw/qa/extras/ooxmlimport/data/n780563.docx
Binary files differ
diff --git a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
index 6b1c425b0890..34581e54fe83 100644
--- a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
+++ b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
@@ -92,6 +92,7 @@ public:
void testN779834();
void testN779627();
void testFdo55187();
+ void testN780563();
CPPUNIT_TEST_SUITE(Test);
#if !defined(MACOSX) && !defined(WNT)
@@ -130,6 +131,7 @@ public:
CPPUNIT_TEST(testN779834);
CPPUNIT_TEST(testN779627);
CPPUNIT_TEST(testFdo55187);
+ CPPUNIT_TEST(testN780563);
#endif
CPPUNIT_TEST_SUITE_END();
@@ -894,6 +896,17 @@ void Test::testFdo55187()
getParagraph(1, OUString("lupčka", 7, RTL_TEXTENCODING_UTF8));
}
+void Test::testN780563()
+{
+ /*
+ * Make sure we have the table in the fly frame created
+ */
+ load("n780563.docx");
+ uno::Reference<text::XTextTablesSupplier> xTablesSupplier(mxComponent, uno::UNO_QUERY);
+ uno::Reference<container::XIndexAccess> xTables(xTablesSupplier->getTextTables( ), uno::UNO_QUERY);
+ CPPUNIT_ASSERT_EQUAL(sal_Int32(1), xTables->getCount( ));
+}
+
CPPUNIT_TEST_SUITE_REGISTRATION(Test);
CPPUNIT_PLUGIN_IMPLEMENT();