diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-12-20 12:20:50 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-12-20 13:03:46 +0100 |
commit | b1e0d30e6adaa1bef2b0e923354ce4e5f82ae707 (patch) | |
tree | 0bffb15fe07a545b69297e3336f8788e6fb3cf32 /svx | |
parent | Move SdrPage::dumpAsXml() up to SdrObjList (diff) | |
download | core-b1e0d30e6adaa1bef2b0e923354ce4e5f82ae707.tar.gz core-b1e0d30e6adaa1bef2b0e923354ce4e5f82ae707.zip |
Add SdrObjGroup::dumpAsXml() to show contents of group shapes
Change-Id: I8b713cbd64f91ad62d06ef57d790ac4e54e37315
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/svdraw/svdogrp.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
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: */ |