[WIP] PPTX export: fix placeholder style export
Regression from: b6b02e0b4c9d739836e1f61a886ea45b01e6696e
(tdf#111903 tdf#137152 PPTX export: fix placeholders)
Placeholders lost the formatting, which has been fixed.
Note: test under creation.
Change-Id: I2b9300b85cf3641d89d748a03377f950e668a2af
diff --git a/sd/source/filter/eppt/pptx-epptooxml.cxx b/sd/source/filter/eppt/pptx-epptooxml.cxx
index cee8f77..3bf4660 100644
--- a/sd/source/filter/eppt/pptx-epptooxml.cxx
+++ b/sd/source/filter/eppt/pptx-epptooxml.cxx
@@ -1468,9 +1468,33 @@ ShapeExport& PowerPointShapeExport::WritePlaceholderShape(const Reference< XShap
WritePresetShape("rect");
Reference< XPropertySet > xProps(xShape, UNO_QUERY);
if (xProps.is())
{
WriteBlipFill(xProps, "Graphic");
mpFS->endElementNS(XML_p, XML_spPr);
// Do not forget to export the visible properties.
WriteFill( xProps );
WriteOutline( xProps );
WriteShapeEffects( xProps );
bool bHas3DEffectinShape = false;
uno::Sequence<beans::PropertyValue> grabBag;
if (xProps->getPropertySetInfo()->hasPropertyByName("InteropGrabBag"))
xProps->getPropertyValue("InteropGrabBag") >>= grabBag;
for (auto const& it : std::as_const(grabBag))
if (it.Name == "3DEffectProperties")
bHas3DEffectinShape = true;
if( bHas3DEffectinShape)
WriteShape3DEffects( xProps );
}
mpFS->endElementNS(XML_p, XML_spPr);
if (xProps.is() && 0)
{
// Dont forget to export the styles too.
mpFS->startElementNS(XML_p, XML_style);
WriteShapeStyle(xProps);
mpFS->endElementNS(XML_p, XML_style);
}
WriteTextBox(xShape, XML_p);
mpFS->endElementNS(XML_p, XML_sp);