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

Added properties MirroredY & TextRotateAngle

Change-Id: I46a6d47b7eeab91522c63364684532bc731f271e
üst df849893
......@@ -85,6 +85,8 @@ public:
void dumpTypeAsAttribute(rtl::OUString sType);
void dumpViewBoxAsElement(com::sun::star::awt::Rectangle aViewBox);
void dumpMirroredXAsAttribute(sal_Bool bMirroredX);
void dumpMirroredYAsAttribute(sal_Bool bMirroredY);
void dumpTextRotateAngleAsAttribute(double aTextRotateAngle);
private:
xmlTextWriterPtr xmlWriter;
......
......@@ -415,6 +415,18 @@ void EnhancedShapeDumper::dumpEnhancedCustomShapeGeometryService(uno::Reference<
if(anotherAny >>= bMirroredX)
dumpMirroredXAsAttribute(bMirroredX);
}
{
uno::Any anotherAny = xPropSet->getPropertyValue("MirroredY");
sal_Bool bMirroredY;
if(anotherAny >>= bMirroredY)
dumpMirroredYAsAttribute(bMirroredY);
}
{
uno::Any anotherAny = xPropSet->getPropertyValue("TextRotateAngle");
double aTextRotateAngle;
if(anotherAny >>= aTextRotateAngle)
dumpTextRotateAngleAsAttribute(aTextRotateAngle);
}
}
void EnhancedShapeDumper::dumpTypeAsAttribute(rtl::OUString sType)
{
......@@ -440,4 +452,17 @@ void EnhancedShapeDumper::dumpMirroredXAsAttribute(sal_Bool bMirroredX)
xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("mirroredX"), "%s", "false");
}
void EnhancedShapeDumper::dumpMirroredYAsAttribute(sal_Bool bMirroredY)
{
if(bMirroredY)
xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("mirroredY"), "%s", "true");
else
xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("mirroredY"), "%s", "false");
}
void EnhancedShapeDumper::dumpTextRotateAngleAsAttribute(double aTextRotateAngle)
{
xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("textRotateAngle"), "%f", aTextRotateAngle);
}
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