sw/inc/fmtftntx.hxx | 1 + sw/source/core/layout/atrfrm.cxx | 8 ++++++++ 2 files changed, 9 insertions(+)
New commits: commit f4ec4f6068a1ca265dd25c479cc40c546ae9223e Author: Miklos Vajna <vmik...@collabora.com> AuthorDate: Tue May 28 09:51:56 2024 +0200 Commit: Miklos Vajna <vmik...@collabora.com> CommitDate: Tue May 28 15:11:34 2024 +0200 sw doc model xml dump: show SwFormatEndAtTextEnd Decides if endnotes are collected at section end or the normal doc end. Previously only the pool item name was visible, not the value. Change-Id: I141a687764b2069e2ddf65cbfdec514a4a0eb1e7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168137 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmik...@collabora.com> diff --git a/sw/inc/fmtftntx.hxx b/sw/inc/fmtftntx.hxx index a5de432ccad7..16e63657abf7 100644 --- a/sw/inc/fmtftntx.hxx +++ b/sw/inc/fmtftntx.hxx @@ -110,6 +110,7 @@ public: } virtual SwFormatEndAtTextEnd* Clone( SfxItemPool *pPool = nullptr ) const override; + void dumpAsXml(xmlTextWriterPtr pWriter) const override; }; inline const SwFormatFootnoteAtTextEnd &SwAttrSet::GetFootnoteAtTextEnd(bool bInP) const diff --git a/sw/source/core/layout/atrfrm.cxx b/sw/source/core/layout/atrfrm.cxx index 67047d7b0bf9..0dee2d60520f 100644 --- a/sw/source/core/layout/atrfrm.cxx +++ b/sw/source/core/layout/atrfrm.cxx @@ -1993,6 +1993,14 @@ SwFormatEditInReadonly* SwFormatEditInReadonly::Clone( SfxItemPool* ) const return new SwFormatEditInReadonly( *this ); } +void SwFormatEndAtTextEnd::dumpAsXml(xmlTextWriterPtr pWriter) const +{ + (void)xmlTextWriterStartElement(pWriter, BAD_CAST("SwFormatEndAtTextEnd")); + (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr())); + (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"), BAD_CAST(OString::number(GetValue()).getStr())); + (void)xmlTextWriterEndElement(pWriter); +} + SwFormatLayoutSplit* SwFormatLayoutSplit::Clone( SfxItemPool* ) const { return new SwFormatLayoutSplit( *this );