From df06e968f6edfa812effe99a320c4ce14f036289 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Fri, 23 Aug 2013 15:15:45 +0200 Subject: DOCX export of picture shadow transparency Change-Id: If84da3cd020485b1895c572b8e24998266d9be31 --- sw/qa/extras/ooxmlexport/data/transparent-shadow.docx | Bin 0 -> 14091 bytes sw/qa/extras/ooxmlexport/ooxmlexport.cxx | 11 +++++++++++ 2 files changed, 11 insertions(+) create mode 100755 sw/qa/extras/ooxmlexport/data/transparent-shadow.docx (limited to 'sw/qa') diff --git a/sw/qa/extras/ooxmlexport/data/transparent-shadow.docx b/sw/qa/extras/ooxmlexport/data/transparent-shadow.docx new file mode 100755 index 000000000000..267eb1a8633d Binary files /dev/null and b/sw/qa/extras/ooxmlexport/data/transparent-shadow.docx differ diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx index a307044a599a..d5cb1cb0003d 100644 --- a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx +++ b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx @@ -111,6 +111,7 @@ public: void testTableFloatingMargins(); void testFdo44689_start_page_7(); void testFdo67737(); + void testTransparentShadow(); CPPUNIT_TEST_SUITE(Test); #if !defined(MACOSX) && !defined(WNT) @@ -198,6 +199,7 @@ void Test::run() {"table-floating-margins.docx", &Test::testTableFloatingMargins}, {"fdo44689_start_page_7.docx", &Test::testFdo44689_start_page_7}, {"fdo67737.docx", &Test::testFdo67737}, + {"transparent-shadow.docx", &Test::testTransparentShadow}, }; // Don't test the first import of these, for some reason those tests fail const char* aBlacklist[] = { @@ -1222,6 +1224,15 @@ void Test::testFdo67737() CPPUNIT_FAIL("Did not find MirroredY=true property"); } +void Test::testTransparentShadow() +{ + uno::Reference xDrawPageSupplier(mxComponent, uno::UNO_QUERY); + uno::Reference xDrawPage = xDrawPageSupplier->getDrawPage(); + uno::Reference xPicture(xDrawPage->getByIndex(0), uno::UNO_QUERY); + table::ShadowFormat aShadow = getProperty(xPicture, "ShadowFormat"); + CPPUNIT_ASSERT_EQUAL(sal_Int32(0x7f808080), aShadow.Color); +} + CPPUNIT_TEST_SUITE_REGISTRATION(Test); CPPUNIT_PLUGIN_IMPLEMENT(); -- cgit