tdf#91077 unit tests for shape import of discarded DOCX header/footer
Change-Id: I3e78e3104af97eed91c102e9ca5546e0785c5f8c
This commit is contained in:
BIN
sw/qa/extras/ooxmlimport/data/n779627b.docx
Normal file
BIN
sw/qa/extras/ooxmlimport/data/n779627b.docx
Normal file
Binary file not shown.
@@ -839,8 +839,20 @@ DECLARE_OOXMLIMPORT_TEST(testN779627, "n779627.docx")
|
||||
sal_Int32(0), nLeftMargin);
|
||||
|
||||
/*
|
||||
* Another problem tested with this document is that the roundrect is
|
||||
* centered vertically and horizontally.
|
||||
* Another problem tested with this document is the unnecessary loading of the shapes
|
||||
* anchored to a discarded header or footer
|
||||
*/
|
||||
uno::Reference<text::XTextDocument> textDocument(mxComponent, uno::UNO_QUERY);
|
||||
uno::Reference<drawing::XDrawPageSupplier> drawPageSupplier(textDocument, uno::UNO_QUERY);
|
||||
uno::Reference<drawing::XDrawPage> drawPage = drawPageSupplier->getDrawPage();
|
||||
CPPUNIT_ASSERT_EQUAL( sal_Int32( 0 ), drawPage->getCount());
|
||||
}
|
||||
|
||||
DECLARE_OOXMLIMPORT_TEST(testN779627b, "n779627b.docx")
|
||||
{
|
||||
/*
|
||||
* Another problem tested with the original n779627.docx document (before removing its unnecessary
|
||||
* shape loading) is that the roundrect is centered vertically and horizontally.
|
||||
*/
|
||||
uno::Reference<beans::XPropertySet> xShapeProperties( getShape(1), uno::UNO_QUERY );
|
||||
uno::Reference<drawing::XShapeDescriptor> xShapeDescriptor(xShapeProperties, uno::UNO_QUERY);
|
||||
|
Reference in New Issue
Block a user