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

New commits:
commit b12d37d701773d194efdfc1fcceee05ab2d0b26b
Author: Miklos Vajna <vmik...@collabora.co.uk>
Date:   Wed Feb 12 12:36:39 2014 +0100

    SwAnchoredObject::dumpAsXml: show bound rect
    
    Change-Id: I1754850d7674efb53c95886c3c3cdcde8ca6ee4d

diff --git a/sw/source/core/text/xmldump.cxx b/sw/source/core/text/xmldump.cxx
index 127206b..7400d8d 100644
--- a/sw/source/core/text/xmldump.cxx
+++ b/sw/source/core/text/xmldump.cxx
@@ -418,6 +418,14 @@ void SwAnchoredObject::dumpAsXml( xmlTextWriterPtr writer )
 
     xmlTextWriterStartElement( writer, BAD_CAST( getElementName() ) );
     xmlTextWriterWriteFormatAttribute( writer, BAD_CAST( "ptr" ), "%p", this );
+
+    xmlTextWriterStartElement( writer, BAD_CAST( "bounds" ) );
+    xmlTextWriterWriteFormatAttribute( writer, BAD_CAST( "left" ), "%ld", 
GetObjBoundRect().Left() );
+    xmlTextWriterWriteFormatAttribute( writer, BAD_CAST( "top" ), "%ld", 
GetObjBoundRect().Top() );
+    xmlTextWriterWriteFormatAttribute( writer, BAD_CAST( "width" ), "%ld", 
GetObjBoundRect().Width() );
+    xmlTextWriterWriteFormatAttribute( writer, BAD_CAST( "height" ), "%ld", 
GetObjBoundRect().Height() );
+    xmlTextWriterEndElement( writer );
+
     xmlTextWriterEndElement( writer );
 
     if ( bCreateWriter )
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to