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

Added dumping ShadowColor & ShadowTransparence properties

Change-Id: I8bffe821d00644f83ab15f4100031bbd4af38e8e
üst fd84cc49
...@@ -142,6 +142,8 @@ private: ...@@ -142,6 +142,8 @@ private:
// ShadowProperties.idl // ShadowProperties.idl
void dumpShadowAsAttribute(sal_Bool bShadow, xmlTextWriterPtr xmlWriter); void dumpShadowAsAttribute(sal_Bool bShadow, xmlTextWriterPtr xmlWriter);
void dumpShadowColorAsAttribute(sal_Int32 aShadowColor, xmlTextWriterPtr xmlWriter);
void dumpShadowTransparenceAsAttribute(sal_Int32 aShadowTransparence, xmlTextWriterPtr xmlWriter);
// XShape.idl // XShape.idl
void dumpPositionAsAttribute(const com::sun::star::awt::Point& rPoint, xmlTextWriterPtr xmlWriter); void dumpPositionAsAttribute(const com::sun::star::awt::Point& rPoint, xmlTextWriterPtr xmlWriter);
......
...@@ -827,9 +827,9 @@ namespace { ...@@ -827,9 +827,9 @@ namespace {
} }
} }
// ---------------------------------------- // ------------------------------------------
// ---------- TextProperties.idl ---------- // ---------- ShadowProperties.idl ----------
// ---------------------------------------- // ------------------------------------------
void XShapeDumper::dumpShadowAsAttribute(sal_Bool bShadow, xmlTextWriterPtr xmlWriter) void XShapeDumper::dumpShadowAsAttribute(sal_Bool bShadow, xmlTextWriterPtr xmlWriter)
{ {
...@@ -839,6 +839,16 @@ namespace { ...@@ -839,6 +839,16 @@ namespace {
xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("shadow"), "%s", "false"); xmlTextWriterWriteFormatAttribute( xmlWriter, BAD_CAST("shadow"), "%s", "false");
} }
void XShapeDumper::dumpShadowColorAsAttribute(sal_Int32 aShadowColor, xmlTextWriterPtr xmlWriter)
{
xmlTextWriterWriteFormatAttribute(xmlWriter, BAD_CAST("shadowColor"), "%" SAL_PRIdINT32, aShadowColor);
}
void XShapeDumper::dumpShadowTransparenceAsAttribute(sal_Int32 aShadowTransparence, xmlTextWriterPtr xmlWriter)
{
xmlTextWriterWriteFormatAttribute(xmlWriter, BAD_CAST("shadowTransparence"), "%" SAL_PRIdINT32, aShadowTransparence);
}
// -------------------------------- // --------------------------------
// ---------- XShape.idl ---------- // ---------- XShape.idl ----------
// -------------------------------- // --------------------------------
...@@ -1309,6 +1319,18 @@ namespace { ...@@ -1309,6 +1319,18 @@ namespace {
if(anotherAny >>= bShadow) if(anotherAny >>= bShadow)
dumpShadowAsAttribute(bShadow, xmlWriter); dumpShadowAsAttribute(bShadow, xmlWriter);
} }
{
uno::Any anotherAny = xPropSet->getPropertyValue("ShadowColor");
sal_Int32 aShadowColor;
if(anotherAny >>= aShadowColor)
dumpShadowColorAsAttribute(aShadowColor, xmlWriter);
}
{
uno::Any anotherAny = xPropSet->getPropertyValue("ShadowTransparence");
sal_Int32 aShadowTransparence;
if(anotherAny >>= aShadowTransparence)
dumpShadowTransparenceAsAttribute(aShadowTransparence, xmlWriter);
}
} }
#if DEBUG_DUMPER #if DEBUG_DUMPER
......
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