Kaydet (Commit) 72fc403a authored tarafından Artur Dorda's avatar Artur Dorda Kaydeden (comit) Markus Mohrhard

Added dumping of ExtrusionAllowed & ConcentricGradientFillAllowed properties

Change-Id: I696c7bfc6f0f7e50d0f0ae84a9e96c6b2f1bd554
üst 8b79eeb8
......@@ -130,6 +130,8 @@ public:
void dumpGluePointsAsElement(com::sun::star::uno::Sequence< com::sun::star::drawing::EnhancedCustomShapeParameterPair > aGluePoints);
void dumpGluePointLeavingDirectionsAsElement(com::sun::star::uno::Sequence< double > aGluePointLeavingDirections);
void dumpGluePointTypeAsAttribute(sal_Int32 aGluePointType);
void dumpExtrusionAllowedAsAttribute(sal_Bool bExtrusionAllowed);
void dumpConcentricGradientFillAllowedAsAttribute(sal_Bool bConcentricGradientFillAllowed);
private:
xmlTextWriterPtr xmlWriter;
......
......@@ -865,6 +865,18 @@ void EnhancedShapeDumper::dumpEnhancedCustomShapePathService(uno::Reference< bea
if(anotherAny >>= aGluePointType)
dumpGluePointTypeAsAttribute(aGluePointType);
}
{
uno::Any anotherAny = xPropSet->getPropertyValue("ExtrusionAllowed");
sal_Bool bExtrusionAllowed;
if(anotherAny >>= bExtrusionAllowed)
dumpExtrusionAllowedAsAttribute(bExtrusionAllowed);
}
{
uno::Any anotherAny = xPropSet->getPropertyValue("ConcentricGradientFillAllowed");
sal_Bool bConcentricGradientFillAllowed;
if(anotherAny >>= bConcentricGradientFillAllowed)
dumpConcentricGradientFillAllowedAsAttribute(bConcentricGradientFillAllowed);
}
}
void EnhancedShapeDumper::dumpCoordinatesAsElement(uno::Sequence< drawing::EnhancedCustomShapeParameterPair > aCoordinates)
......@@ -956,4 +968,20 @@ void EnhancedShapeDumper::dumpGluePointTypeAsAttribute(sal_Int32 aGluePointType)
xmlTextWriterWriteFormatAttribute(xmlWriter, BAD_CAST("gluePointType"), "%" SAL_PRIdINT32, aGluePointType);
}
void EnhancedShapeDumper::dumpExtrusionAllowedAsAttribute(sal_Bool bExtrusionAllowed)
{
if(bExtrusionAllowed)
xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("extrusionAllowed"), "%s", "true");
else
xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("extrusionAllowed"), "%s", "false");
}
void EnhancedShapeDumper::dumpConcentricGradientFillAllowedAsAttribute(sal_Bool bConcentricGradientFillAllowed)
{
if(bConcentricGradientFillAllowed)
xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("concentricGradientFillAllowed"), "%s", "true");
else
xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("concentricGradientFillAllowed"), "%s", "false");
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment