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

Added dumping of Polar, RefX & RefY properties

Change-Id: I43e690fef87091bdb47a36d3365df35b7e1fcdcb
üst bd6f8d3f
......@@ -103,6 +103,9 @@ public:
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);
void dumpPolarAsElement(com::sun::star::drawing::EnhancedCustomShapeParameterPair aPolar);
void dumpRefXAsAttribute(sal_Int32 aRefX);
void dumpRefYAsAttribute(sal_Int32 aRefY);
private:
xmlTextWriterPtr xmlWriter;
......
......@@ -662,6 +662,24 @@ void EnhancedShapeDumper::dumpEnhancedCustomShapeHandleService(uno::Reference< b
if(anotherAny >>= aPosition)
dumpPositionAsElement(aPosition);
}
{
uno::Any anotherAny = xPropSet->getPropertyValue("Polar");
drawing::EnhancedCustomShapeParameterPair aPolar;
if(anotherAny >>= aPolar)
dumpPolarAsElement(aPolar);
}
{
uno::Any anotherAny = xPropSet->getPropertyValue("RefX");
sal_Int32 aRefX;
if(anotherAny >>= aRefX)
dumpRefXAsAttribute(aRefX);
}
{
uno::Any anotherAny = xPropSet->getPropertyValue("RefY");
sal_Int32 aRefY;
if(anotherAny >>= aRefY)
dumpRefYAsAttribute(aRefY);
}
}
void EnhancedShapeDumper::dumpSwitchedAsAttribute(sal_Bool bSwitched)
......@@ -679,4 +697,21 @@ void EnhancedShapeDumper::dumpPositionAsElement(drawing::EnhancedCustomShapePara
xmlTextWriterEndElement( xmlWriter );
}
void EnhancedShapeDumper::dumpPolarAsElement(drawing::EnhancedCustomShapeParameterPair aPolar)
{
xmlTextWriterStartElement(xmlWriter, BAD_CAST( "Polar" ));
dumpEnhancedCustomShapeParameterPair(aPolar);
xmlTextWriterEndElement( xmlWriter );
}
void EnhancedShapeDumper::dumpRefXAsAttribute(sal_Int32 aRefX)
{
xmlTextWriterWriteFormatAttribute(xmlWriter, BAD_CAST("refX"), "%" SAL_PRIdINT32, aRefX);
}
void EnhancedShapeDumper::dumpRefYAsAttribute(sal_Int32 aRefY)
{
xmlTextWriterWriteFormatAttribute(xmlWriter, BAD_CAST("refY"), "%" SAL_PRIdINT32, aRefY);
}
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