diff options
-rw-r--r-- | include/svx/svdobj.hxx | 2 | ||||
-rw-r--r-- | include/svx/svdogrp.hxx | 2 | ||||
-rw-r--r-- | svx/source/svdraw/svdogrp.cxx | 12 |
3 files changed, 15 insertions, 1 deletions
diff --git a/include/svx/svdobj.hxx b/include/svx/svdobj.hxx index 1502a4fe5cc9..fd1f56f79af2 100644 --- a/include/svx/svdobj.hxx +++ b/include/svx/svdobj.hxx @@ -966,7 +966,7 @@ public: OString stringify() const; - void dumpAsXml(struct _xmlTextWriter* pWriter) const; + virtual void dumpAsXml(struct _xmlTextWriter* pWriter) const; protected: // Sets a new UNO shape diff --git a/include/svx/svdogrp.hxx b/include/svx/svdogrp.hxx index c209532ad125..6e9f48e5a6e2 100644 --- a/include/svx/svdogrp.hxx +++ b/include/svx/svdogrp.hxx @@ -108,6 +108,8 @@ public: virtual void ReformatText() SAL_OVERRIDE; virtual SdrObject* DoConvertToPolyObj(bool bBezier, bool bAddText) const SAL_OVERRIDE; + + virtual void dumpAsXml(struct _xmlTextWriter* pWriter) const SAL_OVERRIDE; }; #endif // INCLUDED_SVX_SVDOGRP_HXX diff --git a/svx/source/svdraw/svdogrp.cxx b/svx/source/svdraw/svdogrp.cxx index 1cf3d1c8fe49..3cab76fda511 100644 --- a/svx/source/svdraw/svdogrp.cxx +++ b/svx/source/svdraw/svdogrp.cxx @@ -48,6 +48,7 @@ #include <basegfx/range/b2drange.hxx> #include <basegfx/polygon/b2dpolygontools.hxx> #include <basegfx/polygon/b2dpolygon.hxx> +#include <libxml/xmlwriter.h> // BaseProperties section @@ -776,4 +777,15 @@ SdrObject* SdrObjGroup::DoConvertToPolyObj(bool bBezier, bool bAddText) const return pGroup; } +void SdrObjGroup::dumpAsXml(xmlTextWriterPtr pWriter) const +{ + xmlTextWriterStartElement(pWriter, BAD_CAST("sdrObjGroup")); + xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("ptr"), "%p", this); + + SdrObject::dumpAsXml(pWriter); + + pSub->dumpAsXml(pWriter); + xmlTextWriterEndElement(pWriter); +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |