Kaydet (Commit) 207aebf7 authored tarafından Cédric Bosdonnat's avatar Cédric Bosdonnat

n#780563: Fixed table import in shapes table handler was missing

Change-Id: I7720cfc706d9612fcc1e8a53b13a31f22b91d99e
üst b14b0f2b
......@@ -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();
......
......@@ -1598,6 +1598,7 @@ void DomainMapper_Impl::PushShapeContext( const uno::Reference< drawing::XShape
}
appendTableManager( );
appendTableHandler( );
getTableManager().startLevel();
}
catch ( const uno::Exception& e )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment