From b12d37d701773d194efdfc1fcceee05ab2d0b26b Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Wed, 12 Feb 2014 12:36:39 +0100 Subject: [PATCH] SwAnchoredObject::dumpAsXml: show bound rect Change-Id: I1754850d7674efb53c95886c3c3cdcde8ca6ee4d --- sw/source/core/text/xmldump.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sw/source/core/text/xmldump.cxx b/sw/source/core/text/xmldump.cxx index 127206b88d94..7400d8de6ab7 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 )