Kaydet (Commit) 020035a0 authored tarafından Miklos Vajna's avatar Miklos Vajna

CppunitTest_sw_ooxmlexport: port testTextFrames to textboxes

Change-Id: Id52ab22e2981ebda3960acabe473fadfafc67e72
üst fa49b578
...@@ -513,8 +513,8 @@ DECLARE_OOXMLEXPORT_TEST(test1Table1Page, "1-table-1-page.docx") ...@@ -513,8 +513,8 @@ DECLARE_OOXMLEXPORT_TEST(test1Table1Page, "1-table-1-page.docx")
DECLARE_OOXMLEXPORT_TEST(testTextFrames, "textframes.odt") DECLARE_OOXMLEXPORT_TEST(testTextFrames, "textframes.odt")
{ {
// The frames were simply missing, so let's check if all 3 frames were imported back. // The frames were simply missing, so let's check if all 3 frames were imported back.
uno::Reference<text::XTextFramesSupplier> xTextFramesSupplier(mxComponent, uno::UNO_QUERY); uno::Reference<drawing::XDrawPageSupplier> xDrawPageSupplier(mxComponent, uno::UNO_QUERY);
uno::Reference<container::XIndexAccess> xIndexAccess(xTextFramesSupplier->getTextFrames(), uno::UNO_QUERY); uno::Reference<container::XIndexAccess> xIndexAccess(xDrawPageSupplier->getDrawPage(), uno::UNO_QUERY);
CPPUNIT_ASSERT_EQUAL(sal_Int32(3), xIndexAccess->getCount()); CPPUNIT_ASSERT_EQUAL(sal_Int32(3), xIndexAccess->getCount());
} }
......
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