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

improval - Enhanced...ParameterPair() now use Enhanced...Parameter()

Change-Id: Ib19d92241c6fcd0edc00680bd876f43dac8bd5c3
üst 585c5e09
...@@ -194,28 +194,12 @@ void EnhancedShapeDumper::dumpEnhancedCustomShapeParameterPair(drawing::Enhanced ...@@ -194,28 +194,12 @@ void EnhancedShapeDumper::dumpEnhancedCustomShapeParameterPair(drawing::Enhanced
{ {
{ {
xmlTextWriterStartElement(xmlWriter, BAD_CAST( "First" )); xmlTextWriterStartElement(xmlWriter, BAD_CAST( "First" ));
uno::Any aAny = aParameterPair.First.Value; dumpEnhancedCustomShapeParameter(aParameterPair.First);
rtl::OUString sValue;
if(aAny >>= sValue)
{
xmlTextWriterWriteFormatAttribute(xmlWriter, BAD_CAST("value"), "%s",
rtl::OUStringToOString(sValue, RTL_TEXTENCODING_UTF8).getStr());
}
sal_Int32 aType = aParameterPair.First.Type;
xmlTextWriterWriteFormatAttribute(xmlWriter, BAD_CAST("type"), "%" SAL_PRIdINT32, aType);
xmlTextWriterEndElement( xmlWriter ); xmlTextWriterEndElement( xmlWriter );
} }
{ {
xmlTextWriterStartElement(xmlWriter, BAD_CAST( "Second" )); xmlTextWriterStartElement(xmlWriter, BAD_CAST( "Second" ));
uno::Any aAny = aParameterPair.Second.Value; dumpEnhancedCustomShapeParameter(aParameterPair.Second);
rtl::OUString sValue;
if(aAny >>= sValue)
{
xmlTextWriterWriteFormatAttribute(xmlWriter, BAD_CAST("value"), "%s",
rtl::OUStringToOString(sValue, RTL_TEXTENCODING_UTF8).getStr());
}
sal_Int32 aType = aParameterPair.First.Type;
xmlTextWriterWriteFormatAttribute(xmlWriter, BAD_CAST("type"), "%" SAL_PRIdINT32, aType);
xmlTextWriterEndElement( xmlWriter ); 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