[Libreoffice-commits] core.git: sw/source

Miklos Vajna vmiklos at collabora.co.uk
Wed Mar 30 09:45:11 UTC 2016


 sw/source/core/text/xmldump.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 911261a3a581b9f2f4262f1d5403d9be3bbecf63
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Wed Mar 30 11:27:26 2016 +0200

    sw layout dump: show name of shapes
    
    Change-Id: Iefd4a8e5a61c26a474886c968ebf7e85bcec0396

diff --git a/sw/source/core/text/xmldump.cxx b/sw/source/core/text/xmldump.cxx
index ede5dc0..9f8a069 100644
--- a/sw/source/core/text/xmldump.cxx
+++ b/sw/source/core/text/xmldump.cxx
@@ -22,6 +22,7 @@
 #include <anchoredobject.hxx>
 #include <libxml/xmlwriter.h>
 #include <SwPortionHandler.hxx>
+#include <svx/svdobj.hxx>
 
 class XmlPortionDumper:public SwPortionHandler
 {
@@ -418,6 +419,9 @@ void SwAnchoredObject::dumpAsXml( xmlTextWriterPtr writer ) const
     xmlTextWriterWriteFormatAttribute( writer, BAD_CAST( "height" ), "%ld", GetObjBoundRect().Height() );
     xmlTextWriterEndElement( writer );
 
+    if (const SdrObject* pObject = GetDrawObj())
+        pObject->dumpAsXml(writer);
+
     xmlTextWriterEndElement( writer );
 
     if ( bCreateWriter )


More information about the Libreoffice-commits mailing list