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

Added properties RotateAngle & RotationCenter

Change-Id: I97d52be4904657eacb7cea4ebec789e6dd9a4722
üst f104a364
......@@ -66,6 +66,8 @@ public:
void dumpSecondLightDirectionAsElement(com::sun::star::drawing::Direction3D aSecondLightDirection);
void dumpMetalAsAttribute(sal_Bool bMetal);
void dumpShadeModeAsAttribute(com::sun::star::drawing::ShadeMode eShadeMode);
void dumpRotateAngleAsElement(com::sun::star::drawing::EnhancedCustomShapeParameterPair aRotateAngle);
void dumpRotationCenterAsElement(com::sun::star::drawing::Direction3D aRotationCenter);
private:
xmlTextWriterPtr xmlWriter;
......
......@@ -122,6 +122,18 @@ void EnhancedShapeDumper::dumpEnhancedCustomShapeExtrusionService(uno::Reference
if(anotherAny >>= eShadeMode)
dumpShadeModeAsAttribute(eShadeMode);
}
{
uno::Any anotherAny = xPropSet->getPropertyValue("RotateAngle");
drawing::EnhancedCustomShapeParameterPair aRotateAngle;
if(anotherAny >>= aRotateAngle)
dumpRotateAngleAsElement(aRotateAngle);
}
{
uno::Any anotherAny = xPropSet->getPropertyValue("RotationCenter");
drawing::Direction3D aRotationCenter;
if(anotherAny >>= aRotationCenter)
dumpRotationCenterAsElement(aRotationCenter);
}
}
void EnhancedShapeDumper::dumpExtrusionAsAttribute(sal_Bool bExtrusion)
{
......@@ -265,4 +277,18 @@ void EnhancedShapeDumper::dumpShadeModeAsAttribute(drawing::ShadeMode eShadeMode
}
}
void EnhancedShapeDumper::dumpRotateAngleAsElement(drawing::EnhancedCustomShapeParameterPair aRotateAngle)
{
xmlTextWriterStartElement(xmlWriter, BAD_CAST( "RotateAngle" ));
dumpEnhancedCustomShapeParameterPair(aRotateAngle);
xmlTextWriterEndElement( xmlWriter );
}
void EnhancedShapeDumper::dumpRotationCenterAsElement(drawing::Direction3D aRotationCenter)
{
xmlTextWriterStartElement(xmlWriter, BAD_CAST( "RotationCenter" ));
dumpDirection3D(aRotationCenter);
xmlTextWriterEndElement( xmlWriter );
}
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