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

New commits:
commit 911261a3a581b9f2f4262f1d5403d9be3bbecf63
Author: Miklos Vajna <vmik...@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 )
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to