diff options
author | Michael Stahl <Michael.Stahl@cib.de> | 2020-05-26 16:48:02 +0200 |
---|---|---|
committer | Michael Stahl <michael.stahl@cib.de> | 2020-05-27 19:18:11 +0200 |
commit | 27d7eedc1d3ea471f40d0a81bd4e957bdcf8d8d7 (patch) | |
tree | da29c7d280347e10308b7b9d4505594b41e7ab1e | |
parent | 55576842ec72a748d0bad123d41fa03c89fc136d (diff) |
sw: dump sectionNodeIndex in layout.xml
useful to see if the sections are nested
Change-Id: I49c92b8f3084f72a2753462724b596b07fffbe62
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94882
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@cib.de>
-rw-r--r-- | sw/source/core/text/xmldump.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sw/source/core/text/xmldump.cxx b/sw/source/core/text/xmldump.cxx index b551c28422b0..8ad45ec09eb7 100644 --- a/sw/source/core/text/xmldump.cxx +++ b/sw/source/core/text/xmldump.cxx @@ -464,6 +464,12 @@ void SwFrame::dumpAsXmlAttributes( xmlTextWriterPtr writer ) const if (pFF->GetFollow()) xmlTextWriterWriteFormatAttribute( writer, BAD_CAST("follow"), "%" SAL_PRIuUINT32, pFF->GetFollow()->GetFrameId() ); } + if (IsSctFrame()) + { + SwSectionFrame const*const pFrame(static_cast<SwSectionFrame const*>(this)); + SwSectionNode const*const pNode(pFrame->GetSection()->GetFormat()->GetSectionNode()); + xmlTextWriterWriteFormatAttribute(writer, BAD_CAST("sectionNodeIndex"), TMP_FORMAT, pNode->GetIndex()); + } if ( IsTextFrame( ) ) { const SwTextFrame *pTextFrame = static_cast<const SwTextFrame *>(this); |