sw doc model xml dump: handle SwFlyFrameFormat

Turns out this can have an own title/description which is not on the
underlying SdrObject, show this.

Change-Id: I536d9d6b65c2eb65140d8aeb3a1ff65cf29f6995
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191039
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
This commit is contained in:
Miklos Vajna
2025-09-16 18:33:08 +02:00
parent 57b3eb385b
commit d59b4fd985
2 changed files with 16 additions and 0 deletions
+2
View File
@@ -269,6 +269,8 @@ public:
void SetLastFlyFramePrtRectPos( const Point &rPoint ) { m_aLastFlyFramePrtRectPos = rPoint; }
SwFlyDrawContact* GetOrCreateContact();
void dumpAsXml(xmlTextWriterPtr pWriter) const override;
};
//The DrawFrame-Format
+14
View File
@@ -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()