diff --git a/sw/inc/frmfmt.hxx b/sw/inc/frmfmt.hxx index 43f94cfaf7e8..2644f912a4d0 100644 --- a/sw/inc/frmfmt.hxx +++ b/sw/inc/frmfmt.hxx @@ -269,6 +269,8 @@ public: void SetLastFlyFramePrtRectPos( const Point &rPoint ) { m_aLastFlyFramePrtRectPos = rPoint; } SwFlyDrawContact* GetOrCreateContact(); + + void dumpAsXml(xmlTextWriterPtr pWriter) const override; }; //The DrawFrame-Format diff --git a/sw/source/core/layout/atrfrm.cxx b/sw/source/core/layout/atrfrm.cxx index cc5bcf24599f..3fd54049de1b 100644 --- a/sw/source/core/layout/atrfrm.cxx +++ b/sw/source/core/layout/atrfrm.cxx @@ -3052,6 +3052,20 @@ SwFlyDrawContact* SwFlyFrameFormat::GetOrCreateContact() return m_pContact.get(); } +void SwFlyFrameFormat::dumpAsXml(xmlTextWriterPtr pWriter) const +{ + (void)xmlTextWriterStartElement(pWriter, BAD_CAST("SwFlyFrameFormat")); + (void)xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("ptr"), "%p", this); + (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("title"), + BAD_CAST(msTitle.toUtf8().getStr())); + (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("desc"), + BAD_CAST(msDesc.toUtf8().getStr())); + + sw::SpzFrameFormat::dumpAsXml(pWriter); + + (void)xmlTextWriterEndElement(pWriter); +} + /// Creates the Frames if the format describes a paragraph-bound frame. /// MA: 1994-02-14: creates the Frames also for frames anchored at page. void SwFlyFrameFormat::MakeFrames()