Added dumping of RefAngle & RefR properties

Change-Id: Iabd1c00a33477ca92d7525f46ad5a9c732a35eee
This commit is contained in:
Artur Dorda 2012-07-04 15:10:02 +02:00 committed by Markus Mohrhard
parent 13eb277734
commit 3d15d7060c
2 changed files with 25 additions and 0 deletions

View file

@ -106,6 +106,8 @@ public:
void dumpPolarAsElement(com::sun::star::drawing::EnhancedCustomShapeParameterPair aPolar);
void dumpRefXAsAttribute(sal_Int32 aRefX);
void dumpRefYAsAttribute(sal_Int32 aRefY);
void dumpRefAngleAsAttribute(sal_Int32 aRefAngle);
void dumpRefRAsAttribute(sal_Int32 aRefR);
private:
xmlTextWriterPtr xmlWriter;

View file

@ -680,6 +680,18 @@ void EnhancedShapeDumper::dumpEnhancedCustomShapeHandleService(uno::Reference< b
if(anotherAny >>= aRefY)
dumpRefYAsAttribute(aRefY);
}
{
uno::Any anotherAny = xPropSet->getPropertyValue("RefAngle");
sal_Int32 aRefAngle;
if(anotherAny >>= aRefAngle)
dumpRefAngleAsAttribute(aRefAngle);
}
{
uno::Any anotherAny = xPropSet->getPropertyValue("RefR");
sal_Int32 aRefR;
if(anotherAny >>= aRefR)
dumpRefRAsAttribute(aRefR);
}
}
void EnhancedShapeDumper::dumpSwitchedAsAttribute(sal_Bool bSwitched)
@ -714,4 +726,15 @@ void EnhancedShapeDumper::dumpRefYAsAttribute(sal_Int32 aRefY)
xmlTextWriterWriteFormatAttribute(xmlWriter, BAD_CAST("refY"), "%" SAL_PRIdINT32, aRefY);
}
void EnhancedShapeDumper::dumpRefAngleAsAttribute(sal_Int32 aRefAngle)
{
xmlTextWriterWriteFormatAttribute(xmlWriter, BAD_CAST("refAngle"), "%" SAL_PRIdINT32, aRefAngle);
}
void EnhancedShapeDumper::dumpRefRAsAttribute(sal_Int32 aRefR)
{
xmlTextWriterWriteFormatAttribute(xmlWriter, BAD_CAST("refR"), "%" SAL_PRIdINT32, aRefR);
}