From 9ec1ccb23af0de56f141d906f2eb60bab40aefb8 Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Wed, 21 Jun 2017 16:44:45 +0200 Subject: sw: dump more connections of those obnoxious footnotes in layout.xml Change-Id: I62caffcacb710aa079ddc9c81fb49f702cdc84af --- sw/source/core/text/xmldump.cxx | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'sw') diff --git a/sw/source/core/text/xmldump.cxx b/sw/source/core/text/xmldump.cxx index 9358e922de50..7a28ceed4862 100644 --- a/sw/source/core/text/xmldump.cxx +++ b/sw/source/core/text/xmldump.cxx @@ -9,6 +9,7 @@ #include "frame.hxx" #include "frmfmt.hxx" +#include "ftnfrm.hxx" #include "sectfrm.hxx" #include "tabfrm.hxx" #include "txtfrm.hxx" @@ -386,6 +387,15 @@ void SwFrame::dumpAsXmlAttributes( xmlTextWriterPtr writer ) const xmlTextWriterWriteFormatAttribute( writer, BAD_CAST( "upper" ), "%" SAL_PRIuUINT32, GetUpper()->GetFrameId() ); if ( GetLower( ) ) xmlTextWriterWriteFormatAttribute( writer, BAD_CAST( "lower" ), "%" SAL_PRIuUINT32, GetLower()->GetFrameId() ); + if (IsFootnoteFrame()) + { + SwFootnoteFrame const*const pFF(static_cast(this)); + xmlTextWriterWriteFormatAttribute( writer, BAD_CAST("ref"), "%" SAL_PRIuUINT32, pFF->GetRef()->GetFrameId() ); + if (pFF->GetMaster()) + xmlTextWriterWriteFormatAttribute( writer, BAD_CAST("master"), "%" SAL_PRIuUINT32, pFF->GetMaster()->GetFrameId() ); + if (pFF->GetFollow()) + xmlTextWriterWriteFormatAttribute( writer, BAD_CAST("follow"), "%" SAL_PRIuUINT32, pFF->GetFollow()->GetFrameId() ); + } if ( IsTextFrame( ) ) { const SwTextFrame *pTextFrame = static_cast(this); -- cgit