diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-02-12 12:36:39 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-02-12 15:05:55 +0100 |
commit | b12d37d701773d194efdfc1fcceee05ab2d0b26b (patch) | |
tree | 3498220e668d0469c63e5abf0c67a4375e720f56 | |
parent | 025a77f794c87b602921bc583f1133268980b761 (diff) |
SwAnchoredObject::dumpAsXml: show bound rect
Change-Id: I1754850d7674efb53c95886c3c3cdcde8ca6ee4d
-rw-r--r-- | sw/source/core/text/xmldump.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
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 ) |