From 9ed367da9cf7ff283762cb79a97238defe85c30c Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Tue, 26 Feb 2019 18:37:18 +0100 Subject: [PATCH] sw: dump SwCellFrame rowspan in layout.xml Change-Id: I4477874116e8059cf0a82b9b3106c9e26a641947 Reviewed-on: https://gerrit.libreoffice.org/68400 Tested-by: Jenkins Reviewed-by: Michael Stahl --- sw/source/core/text/xmldump.cxx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sw/source/core/text/xmldump.cxx b/sw/source/core/text/xmldump.cxx index 0b57bb1a5581..5a25baaeb264 100644 --- a/sw/source/core/text/xmldump.cxx +++ b/sw/source/core/text/xmldump.cxx @@ -14,6 +14,7 @@ #include #include #include +#include #include #include #include @@ -360,6 +361,12 @@ void SwFrame::dumpAsXml( xmlTextWriterPtr writer ) const } } + if (IsCellFrame()) + { + SwCellFrame const* pCellFrame(static_cast(this)); + xmlTextWriterWriteFormatAttribute( writer, BAD_CAST( "rowspan" ), "%ld", pCellFrame->GetLayoutRowSpan() ); + } + xmlTextWriterStartElement( writer, BAD_CAST( "infos" ) ); dumpInfosAsXml( writer ); xmlTextWriterEndElement( writer );