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

Added dumping of GluePointLeavingDirections & GluePointType properties

Change-Id: Ie83dfd31196cc9777e4d582f45f27ff74482d2b4
üst 85ff400d
...@@ -128,6 +128,8 @@ public: ...@@ -128,6 +128,8 @@ public:
void dumpStretchYAsAttribute(sal_Int32 aStretchY); void dumpStretchYAsAttribute(sal_Int32 aStretchY);
void dumpTextFramesAsElement(com::sun::star::uno::Sequence< com::sun::star::drawing::EnhancedCustomShapeTextFrame > aTextFrames); void dumpTextFramesAsElement(com::sun::star::uno::Sequence< com::sun::star::drawing::EnhancedCustomShapeTextFrame > aTextFrames);
void dumpGluePointsAsElement(com::sun::star::uno::Sequence< com::sun::star::drawing::EnhancedCustomShapeParameterPair > aGluePoints); 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);
private: private:
xmlTextWriterPtr xmlWriter; xmlTextWriterPtr xmlWriter;
......
...@@ -853,6 +853,18 @@ void EnhancedShapeDumper::dumpEnhancedCustomShapePathService(uno::Reference< bea ...@@ -853,6 +853,18 @@ void EnhancedShapeDumper::dumpEnhancedCustomShapePathService(uno::Reference< bea
if(anotherAny >>= aGluePoints) if(anotherAny >>= aGluePoints)
dumpGluePointsAsElement(aGluePoints); dumpGluePointsAsElement(aGluePoints);
} }
{
uno::Any anotherAny = xPropSet->getPropertyValue("GluePointLeavingDirections");
uno::Sequence< double > aGluePointLeavingDirections;
if(anotherAny >>= aGluePointLeavingDirections)
dumpGluePointLeavingDirectionsAsElement(aGluePointLeavingDirections);
}
{
uno::Any anotherAny = xPropSet->getPropertyValue("GluePointType");
sal_Int32 aGluePointType;
if(anotherAny >>= aGluePointType)
dumpGluePointTypeAsAttribute(aGluePointType);
}
} }
void EnhancedShapeDumper::dumpCoordinatesAsElement(uno::Sequence< drawing::EnhancedCustomShapeParameterPair > aCoordinates) void EnhancedShapeDumper::dumpCoordinatesAsElement(uno::Sequence< drawing::EnhancedCustomShapeParameterPair > aCoordinates)
...@@ -928,4 +940,20 @@ void EnhancedShapeDumper::dumpGluePointsAsElement(uno::Sequence< drawing::Enhanc ...@@ -928,4 +940,20 @@ void EnhancedShapeDumper::dumpGluePointsAsElement(uno::Sequence< drawing::Enhanc
xmlTextWriterEndElement( xmlWriter ); xmlTextWriterEndElement( xmlWriter );
} }
void EnhancedShapeDumper::dumpGluePointLeavingDirectionsAsElement(uno::Sequence< double > aGluePointLeavingDirections)
{
xmlTextWriterStartElement(xmlWriter, BAD_CAST( "GluePointLeavingDirections" ));
sal_Int32 nLength = aGluePointLeavingDirections.getLength();
for (sal_Int32 i = 0; i < nLength; ++i)
{
xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("value"), "%f", aGluePointLeavingDirections[i]);
}
xmlTextWriterEndElement( xmlWriter );
}
void EnhancedShapeDumper::dumpGluePointTypeAsAttribute(sal_Int32 aGluePointType)
{
xmlTextWriterWriteFormatAttribute(xmlWriter, BAD_CAST("gluePointType"), "%" SAL_PRIdINT32, aGluePointType);
}
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