tdf#152335 PPTX export: fix 3D shape properties of the shape in theme
The shapes got extra 3D shape properties by the default template,
which caused visible difference in MSO.
Follow-up to commit I02f1edea84b50dbb9b0e0a59b6062a29894afde4
(tdf#152186 PPTX export: fix shadow of the shape in theme)
Follow-up to commit 25e9766e9b87342b6f1b29dc146d5f33e12157a7
(tdf#92222 PPTX export: fix line width of the shape in theme)
Change-Id: I84f931e45e7656c456fe910cbb5e09aabeb8924f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143516
Reviewed-by: László Németh <nemeth@numbertext.org>
Tested-by: László Németh <nemeth@numbertext.org>
diff --git a/sd/qa/unit/data/pptx/tdf152335.pptx b/sd/qa/unit/data/pptx/tdf152335.pptx
new file mode 100644
index 0000000..03c8612
--- /dev/null
+++ b/sd/qa/unit/data/pptx/tdf152335.pptx
Binary files differ
diff --git a/sd/qa/unit/export-tests-ooxml1.cxx b/sd/qa/unit/export-tests-ooxml1.cxx
index d61d0c0..2c3c5a01 100644
--- a/sd/qa/unit/export-tests-ooxml1.cxx
+++ b/sd/qa/unit/export-tests-ooxml1.cxx
@@ -51,6 +51,7 @@ public:
{
}
void testTdf152335();
void testTdf149803();
void testTdf149311();
void testTdf149128();
@@ -125,6 +126,7 @@ public:
CPPUNIT_TEST_SUITE(SdOOXMLExportTest1);
CPPUNIT_TEST(testTdf152335);
CPPUNIT_TEST(testTdf149803);
CPPUNIT_TEST(testTdf149311);
CPPUNIT_TEST(testTdf149128);
@@ -225,6 +227,16 @@ void checkFontAttributes(const SdrTextObj* pObj, ItemValue nVal, sal_uInt32 nId)
}
}
void SdOOXMLExportTest1::testTdf152335()
{
createSdImpressDoc("pptx/tdf152335.pptx");
save("Impress Office Open XML");
xmlDocUniquePtr pXmlDocTheme = parseExport("ppt/theme/theme1.xml");
assertXPathChildren(
pXmlDocTheme, "/a:theme/a:themeElements/a:fmtScheme/a:effectStyleLst/a:effectStyle[3]", 1);
}
void SdOOXMLExportTest1::testTdf149803()
{
createSdImpressDoc("pptx/tdf149803.pptx");
diff --git a/sd/source/filter/eppt/pptx-epptooxml.cxx b/sd/source/filter/eppt/pptx-epptooxml.cxx
index 842c794..05ec471 100644
--- a/sd/source/filter/eppt/pptx-epptooxml.cxx
+++ b/sd/source/filter/eppt/pptx-epptooxml.cxx
@@ -2048,17 +2048,6 @@ ShapeExport& PowerPointShapeExport::WritePlaceholderReferenceTextBody(
</a:srgbClr>\
</a:outerShdw>\
</a:effectLst>\
<a:scene3d>\
<a:camera prst=\"orthographicFront\">\
<a:rot lat=\"0\" lon=\"0\" rev=\"0\"/>\
</a:camera>\
<a:lightRig rig=\"threePt\" dir=\"t\">\
<a:rot lat=\"0\" lon=\"0\" rev=\"1200000\"/>\
</a:lightRig>\
</a:scene3d>\
<a:sp3d>\
<a:bevelT w=\"63500\" h=\"25400\"/>\
</a:sp3d>\
</a:effectStyle>\
</a:effectStyleLst>\
<a:bgFillStyleLst>\