summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2016-03-30 13:44:11 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2016-03-30 14:11:39 +0200
commitf5e0236566b913aebb1376d97c7d37a23c69bd84 (patch)
treed624ca77dbf5a894b676dc0ecbe4111541d14a64
parent9b39649fa1ce4d81658a6c9448cfdf76581813f0 (diff)
sw layout dump: show Prt() next to Frame() of SwFrames
To be able to see what layout thinks about margins. Change-Id: I45b29cb8f71a96f4720158c2357bcbb295738130
-rw-r--r--sw/source/core/text/xmldump.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/sw/source/core/text/xmldump.cxx b/sw/source/core/text/xmldump.cxx
index 9f8a069a0ebc..ab5028ec2665 100644
--- a/sw/source/core/text/xmldump.cxx
+++ b/sw/source/core/text/xmldump.cxx
@@ -360,6 +360,14 @@ void SwFrame::dumpInfosAsXml( xmlTextWriterPtr writer ) const
xmlTextWriterWriteFormatAttribute( writer, BAD_CAST( "height" ), "%ld", Frame().Height() );
xmlTextWriterWriteAttribute(writer, BAD_CAST("mbFixSize"), BAD_CAST(OString::boolean(HasFixSize()).getStr()));
xmlTextWriterEndElement( writer );
+
+ // output the Prt
+ xmlTextWriterStartElement( writer, BAD_CAST( "prtBounds" ) );
+ xmlTextWriterWriteFormatAttribute( writer, BAD_CAST( "left" ), "%ld", Prt().Left() );
+ xmlTextWriterWriteFormatAttribute( writer, BAD_CAST( "top" ), "%ld", Prt().Top() );
+ xmlTextWriterWriteFormatAttribute( writer, BAD_CAST( "width" ), "%ld", Prt().Width() );
+ xmlTextWriterWriteFormatAttribute( writer, BAD_CAST( "height" ), "%ld", Prt().Height() );
+ xmlTextWriterEndElement( writer );
}
// Hack: somehow conversion from "..." to va_list does