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

Added dumping of Switched & Position properties

Change-Id: Ice30218ba8ec66807089174058951c7607f9b6cb
üst a7cb63e3
...@@ -101,6 +101,8 @@ public: ...@@ -101,6 +101,8 @@ public:
// EnhancedCustomShapeHandle.idl // EnhancedCustomShapeHandle.idl
void dumpEnhancedCustomShapeHandleService(com::sun::star::uno::Reference< com::sun::star::beans::XPropertySet > xPropSet); void dumpEnhancedCustomShapeHandleService(com::sun::star::uno::Reference< com::sun::star::beans::XPropertySet > xPropSet);
void dumpSwitchedAsAttribute(sal_Bool bSwitched);
void dumpPositionAsElement(com::sun::star::drawing::EnhancedCustomShapeParameterPair aPosition);
private: private:
xmlTextWriterPtr xmlWriter; xmlTextWriterPtr xmlWriter;
......
...@@ -650,4 +650,33 @@ void EnhancedShapeDumper::dumpEnhancedCustomShapeHandleService(uno::Reference< b ...@@ -650,4 +650,33 @@ void EnhancedShapeDumper::dumpEnhancedCustomShapeHandleService(uno::Reference< b
if(anotherAny >>= bMirroredY) if(anotherAny >>= bMirroredY)
dumpMirroredYAsAttribute(bMirroredY); dumpMirroredYAsAttribute(bMirroredY);
} }
{
uno::Any anotherAny = xPropSet->getPropertyValue("Switched");
sal_Bool bSwitched;
if(anotherAny >>= bSwitched)
dumpSwitchedAsAttribute(bSwitched);
}
{
uno::Any anotherAny = xPropSet->getPropertyValue("Position");
drawing::EnhancedCustomShapeParameterPair aPosition;
if(anotherAny >>= aPosition)
dumpPositionAsElement(aPosition);
}
}
void EnhancedShapeDumper::dumpSwitchedAsAttribute(sal_Bool bSwitched)
{
if(bSwitched)
xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("switched"), "%s", "true");
else
xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("switched"), "%s", "false");
} }
void EnhancedShapeDumper::dumpPositionAsElement(drawing::EnhancedCustomShapeParameterPair aPosition)
{
xmlTextWriterStartElement(xmlWriter, BAD_CAST( "Position" ));
dumpEnhancedCustomShapeParameterPair(aPosition);
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