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

Added dumping [property] LineDashName

Change-Id: I3c267968379cb2e1626e17093d5513d6e2c23d84
üst 4eaadab6
......@@ -81,6 +81,7 @@ private:
// LineProperties.idl
void dumpLineStyleAsAttribute(com::sun::star::drawing::LineStyle eLineStyle, xmlTextWriterPtr xmlWriter);
void dumpLineDashAsElement(com::sun::star::drawing::LineDash aLineDash, xmlTextWriterPtr xmlWriter);
void dumpLineDashNameAsAttribute(rtl::OUString sLineDashName, xmlTextWriterPtr xmlWriter);
void dumpPositionAsAttribute(const com::sun::star::awt::Point& rPoint, xmlTextWriterPtr xmlWriter);
void dumpSizeAsAttribute(const com::sun::star::awt::Size& rSize, xmlTextWriterPtr xmlWriter);
......
......@@ -378,6 +378,12 @@ namespace {
xmlTextWriterEndElement( xmlWriter );
}
void XShapeDumper::dumpLineDashNameAsAttribute(rtl::OUString sLineDashName, xmlTextWriterPtr xmlWriter)
{
xmlTextWriterWriteFormatAttribute(xmlWriter, BAD_CAST("lineDashName"), "%s",
rtl::OUStringToOString(sLineDashName, RTL_TEXTENCODING_UTF8).getStr());
}
void XShapeDumper::dumpPositionAsAttribute(const awt::Point& rPoint, xmlTextWriterPtr xmlWriter)
{
xmlTextWriterWriteFormatAttribute(xmlWriter, BAD_CAST("positionX"), "%" SAL_PRIdINT32, rPoint.X);
......@@ -593,6 +599,12 @@ namespace {
if(anotherAny >>= aLineDash)
dumpLineDashAsElement(aLineDash, xmlWriter);
}
{
uno::Any anotherAny = xPropSet->getPropertyValue("LineDashName");
rtl::OUString sLineDashName;
if(anotherAny >>= sLineDashName)
dumpLineDashNameAsAttribute(sLineDashName, xmlWriter);
}
}
#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