summaryrefslogtreecommitdiff
path: root/sw/qa
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@suse.cz>2013-08-23 15:15:45 +0200
committerMiklos Vajna <vmiklos@suse.cz>2013-08-23 16:13:11 +0200
commitdf06e968f6edfa812effe99a320c4ce14f036289 (patch)
tree0f7de59900cca5f2a4a1609e33eeaa4621bed587 /sw/qa
parentd6e80921f6bdd8ae21f44677aa978e80fe7ee54b (diff)
DOCX export of picture shadow transparency
Change-Id: If84da3cd020485b1895c572b8e24998266d9be31
Diffstat (limited to 'sw/qa')
-rwxr-xr-xsw/qa/extras/ooxmlexport/data/transparent-shadow.docxbin0 -> 14091 bytes
-rw-r--r--sw/qa/extras/ooxmlexport/ooxmlexport.cxx11
2 files changed, 11 insertions, 0 deletions
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
--- /dev/null
+++ b/sw/qa/extras/ooxmlexport/data/transparent-shadow.docx
Binary files 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<drawing::XDrawPageSupplier> xDrawPageSupplier(mxComponent, uno::UNO_QUERY);
+ uno::Reference<drawing::XDrawPage> xDrawPage = xDrawPageSupplier->getDrawPage();
+ uno::Reference<drawing::XShape> xPicture(xDrawPage->getByIndex(0), uno::UNO_QUERY);
+ table::ShadowFormat aShadow = getProperty<table::ShadowFormat>(xPicture, "ShadowFormat");
+ CPPUNIT_ASSERT_EQUAL(sal_Int32(0x7f808080), aShadow.Color);
+}
+
CPPUNIT_TEST_SUITE_REGISTRATION(Test);
CPPUNIT_PLUGIN_IMPLEMENT();