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

Started dumping PolyPolygonBezierDescriptor service.Added PolygonKind property

Change-Id: I17461a86120f0d05137c8b8410c47f9fc3097e8f
üst 817b35a9
...@@ -165,6 +165,9 @@ private: ...@@ -165,6 +165,9 @@ private:
void dumpNavigationOrderAsAttribute(sal_Int32 aNavigationOrder, xmlTextWriterPtr xmlWriter); void dumpNavigationOrderAsAttribute(sal_Int32 aNavigationOrder, xmlTextWriterPtr xmlWriter);
void dumpHyperlinkAsAttribute(rtl::OUString sHyperlink, xmlTextWriterPtr xmlWriter); void dumpHyperlinkAsAttribute(rtl::OUString sHyperlink, xmlTextWriterPtr xmlWriter);
// PolyPolygonBezierDescriptor.idl
void dumpPolyPolygonBezierDescriptorService(com::sun::star::uno::Reference< com::sun::star::beans::XPropertySet > xPropSet, 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);
void dumpSizeAsAttribute(const com::sun::star::awt::Size& rSize, xmlTextWriterPtr xmlWriter); void dumpSizeAsAttribute(const com::sun::star::awt::Size& rSize, xmlTextWriterPtr xmlWriter);
......
...@@ -1488,6 +1488,16 @@ namespace { ...@@ -1488,6 +1488,16 @@ namespace {
} }
} }
void XShapeDumper::dumpPolyPolygonBezierDescriptorService(uno::Reference< beans::XPropertySet > xPropSet, xmlTextWriterPtr xmlWriter)
{
{
uno::Any anotherAny = xPropSet->getPropertyValue("PolygonKind");
drawing::PolygonKind ePolygonKind;
if(anotherAny >>= ePolygonKind)
dumpPolygonKindAsAttribute(ePolygonKind, xmlWriter);
}
}
void XShapeDumper::dumpXShape(uno::Reference< drawing::XShape > xShape, xmlTextWriterPtr xmlWriter) void XShapeDumper::dumpXShape(uno::Reference< drawing::XShape > xShape, xmlTextWriterPtr xmlWriter)
{ {
xmlTextWriterStartElement( xmlWriter, BAD_CAST( "XShape" ) ); xmlTextWriterStartElement( xmlWriter, BAD_CAST( "XShape" ) );
...@@ -1541,6 +1551,9 @@ namespace { ...@@ -1541,6 +1551,9 @@ namespace {
if(xServiceInfo->supportsService("com.sun.star.drawing.Shape")) if(xServiceInfo->supportsService("com.sun.star.drawing.Shape"))
dumpShapeService(xPropSet, xmlWriter); dumpShapeService(xPropSet, xmlWriter);
if(xServiceInfo->supportsService("com.sun.star.drawing.PolyPolygonBezierDescriptor"))
dumpPolyPolygonBezierDescriptorService(xPropSet, xmlWriter);
#if DEBUG_DUMPER #if DEBUG_DUMPER
sal_Int32 nServices = aServiceNames.getLength(); sal_Int32 nServices = aServiceNames.getLength();
for (sal_Int32 i = 0; i < nServices; ++i) for (sal_Int32 i = 0; i < nServices; ++i)
......
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