summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2017-06-21 16:44:45 +0200
committerMichael Stahl <mstahl@redhat.com>2017-06-22 09:53:07 +0200
commit9ec1ccb23af0de56f141d906f2eb60bab40aefb8 (patch)
tree900989569d4dd5e9d1f67ca502099c0ddbe08cea /sw
parentc83a443eb106e426901d0ba8a809eedcd24c42c5 (diff)
sw: dump more connections of those obnoxious footnotes in layout.xml
Change-Id: I62caffcacb710aa079ddc9c81fb49f702cdc84af
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/text/xmldump.cxx10
1 files changed, 10 insertions, 0 deletions
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<SwFootnoteFrame const*>(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<const SwTextFrame *>(this);