[Libreoffice-commits] core.git: sw/source
Miklos Vajna
vmiklos at collabora.co.uk
Wed Mar 30 12:13:49 UTC 2016
sw/source/core/text/xmldump.cxx | 8 ++++++++
1 file changed, 8 insertions(+)
New commits:
commit f5e0236566b913aebb1376d97c7d37a23c69bd84
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date: Wed Mar 30 13:44:11 2016 +0200
sw layout dump: show Prt() next to Frame() of SwFrames
To be able to see what layout thinks about margins.
Change-Id: I45b29cb8f71a96f4720158c2357bcbb295738130
diff --git a/sw/source/core/text/xmldump.cxx b/sw/source/core/text/xmldump.cxx
index 9f8a069..ab5028e 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
More information about the Libreoffice-commits
mailing list