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

Added properties Shininess & Skew

Change-Id: I8a78b918c94d769b71cc336f461318099db7b877
üst b83881ac
...@@ -68,6 +68,8 @@ public: ...@@ -68,6 +68,8 @@ public:
void dumpShadeModeAsAttribute(com::sun::star::drawing::ShadeMode eShadeMode); void dumpShadeModeAsAttribute(com::sun::star::drawing::ShadeMode eShadeMode);
void dumpRotateAngleAsElement(com::sun::star::drawing::EnhancedCustomShapeParameterPair aRotateAngle); void dumpRotateAngleAsElement(com::sun::star::drawing::EnhancedCustomShapeParameterPair aRotateAngle);
void dumpRotationCenterAsElement(com::sun::star::drawing::Direction3D aRotationCenter); void dumpRotationCenterAsElement(com::sun::star::drawing::Direction3D aRotationCenter);
void dumpShininessAsAttribute(double aShininess);
void dumpSkewAsElement(com::sun::star::drawing::EnhancedCustomShapeParameterPair aSkew);
private: private:
xmlTextWriterPtr xmlWriter; xmlTextWriterPtr xmlWriter;
......
...@@ -134,6 +134,18 @@ void EnhancedShapeDumper::dumpEnhancedCustomShapeExtrusionService(uno::Reference ...@@ -134,6 +134,18 @@ void EnhancedShapeDumper::dumpEnhancedCustomShapeExtrusionService(uno::Reference
if(anotherAny >>= aRotationCenter) if(anotherAny >>= aRotationCenter)
dumpRotationCenterAsElement(aRotationCenter); dumpRotationCenterAsElement(aRotationCenter);
} }
{
uno::Any anotherAny = xPropSet->getPropertyValue("Shininess");
double aShininess;
if(anotherAny >>= aShininess)
dumpShininessAsAttribute(aShininess);
}
{
uno::Any anotherAny = xPropSet->getPropertyValue("Skew");
drawing::EnhancedCustomShapeParameterPair aSkew;
if(anotherAny >>= aSkew)
dumpSkewAsElement(aSkew);
}
} }
void EnhancedShapeDumper::dumpExtrusionAsAttribute(sal_Bool bExtrusion) void EnhancedShapeDumper::dumpExtrusionAsAttribute(sal_Bool bExtrusion)
{ {
...@@ -291,4 +303,16 @@ void EnhancedShapeDumper::dumpRotationCenterAsElement(drawing::Direction3D aRota ...@@ -291,4 +303,16 @@ void EnhancedShapeDumper::dumpRotationCenterAsElement(drawing::Direction3D aRota
xmlTextWriterEndElement( xmlWriter ); xmlTextWriterEndElement( xmlWriter );
} }
void EnhancedShapeDumper::dumpShininessAsAttribute(double aShininess)
{
xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("shininess"), "%f", aShininess);
}
void EnhancedShapeDumper::dumpSkewAsElement(drawing::EnhancedCustomShapeParameterPair aSkew)
{
xmlTextWriterStartElement(xmlWriter, BAD_CAST( "Skew" ));
dumpEnhancedCustomShapeParameterPair(aSkew);
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