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

Added CustomShapeData property

Change-Id: I9b41a8b427098126224bff268bf0b9be9ec3e2ef
üst 3d766ba8
...@@ -171,6 +171,7 @@ private: ...@@ -171,6 +171,7 @@ private:
// CustomShape.idl // CustomShape.idl
void dumpCustomShapeEngineAsAttribute(rtl::OUString sCustomShapeEngine, xmlTextWriterPtr xmlWriter); void dumpCustomShapeEngineAsAttribute(rtl::OUString sCustomShapeEngine, xmlTextWriterPtr xmlWriter);
void dumpCustomShapeDataAsAttribute(rtl::OUString sCustomShapeData, 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);
......
...@@ -1002,6 +1002,12 @@ namespace { ...@@ -1002,6 +1002,12 @@ namespace {
rtl::OUStringToOString(sCustomShapeEngine, RTL_TEXTENCODING_UTF8).getStr()); rtl::OUStringToOString(sCustomShapeEngine, RTL_TEXTENCODING_UTF8).getStr());
} }
void XShapeDumper::dumpCustomShapeDataAsAttribute(rtl::OUString sCustomShapeData, xmlTextWriterPtr xmlWriter)
{
xmlTextWriterWriteFormatAttribute(xmlWriter, BAD_CAST("customShapeData"), "%s",
rtl::OUStringToOString(sCustomShapeData, RTL_TEXTENCODING_UTF8).getStr());
}
// methods dumping whole services // methods dumping whole services
void XShapeDumper::dumpTextPropertiesService(uno::Reference< beans::XPropertySet > xPropSet, xmlTextWriterPtr xmlWriter) void XShapeDumper::dumpTextPropertiesService(uno::Reference< beans::XPropertySet > xPropSet, xmlTextWriterPtr xmlWriter)
...@@ -1548,6 +1554,12 @@ namespace { ...@@ -1548,6 +1554,12 @@ namespace {
if(anotherAny >>= sCustomShapeEngine) if(anotherAny >>= sCustomShapeEngine)
dumpCustomShapeEngineAsAttribute(sCustomShapeEngine, xmlWriter); dumpCustomShapeEngineAsAttribute(sCustomShapeEngine, xmlWriter);
} }
{
uno::Any anotherAny = xPropSet->getPropertyValue("CustomShapeData");
rtl::OUString sCustomShapeData;
if(anotherAny >>= sCustomShapeData)
dumpCustomShapeDataAsAttribute(sCustomShapeData, xmlWriter);
}
} }
void XShapeDumper::dumpXShape(uno::Reference< drawing::XShape > xShape, xmlTextWriterPtr xmlWriter) void XShapeDumper::dumpXShape(uno::Reference< drawing::XShape > xShape, xmlTextWriterPtr 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