sw/source/core/text/porexp.cxx | 9 +++++++++ sw/source/core/text/porexp.hxx | 2 ++ 2 files changed, 11 insertions(+)
New commits: commit f451878ccff475dd263ad67ade5e1896cf9fc734 Author: Miklos Vajna <vmik...@collabora.com> AuthorDate: Fri Mar 18 08:09:11 2022 +0100 Commit: Miklos Vajna <vmik...@collabora.com> CommitDate: Fri Mar 18 09:20:22 2022 +0100 sw layout xml dump: handle expand portions Towards adding dumpAsXml() for all portions that have a HandlePortion(). Change-Id: I9cb1f4c1f966e5cfd7ca27e21bf8aa022979f3c2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131724 Reviewed-by: Miklos Vajna <vmik...@collabora.com> Tested-by: Jenkins diff --git a/sw/source/core/text/porexp.cxx b/sw/source/core/text/porexp.cxx index 6739419484f6..efacc3d5644a 100644 --- a/sw/source/core/text/porexp.cxx +++ b/sw/source/core/text/porexp.cxx @@ -38,6 +38,15 @@ void SwExpandPortion::HandlePortion( SwPortionHandler& rPH ) const rPH.Special( GetLen(), OUString(), GetWhichPor() ); } +void SwExpandPortion::dumpAsXml(xmlTextWriterPtr pWriter) const +{ + (void)xmlTextWriterStartElement(pWriter, BAD_CAST("SwExpandPortion")); + + SwTextPortion::dumpAsXml(pWriter); + + (void)xmlTextWriterEndElement(pWriter); +} + SwPosSize SwExpandPortion::GetTextSize( const SwTextSizeInfo &rInf ) const { SwTextSlot aDiffText( &rInf, this, false, false ); diff --git a/sw/source/core/text/porexp.hxx b/sw/source/core/text/porexp.hxx index 1ea608c9dfa2..6911c7d9113c 100644 --- a/sw/source/core/text/porexp.hxx +++ b/sw/source/core/text/porexp.hxx @@ -33,6 +33,8 @@ public: // Accessibility: pass information about this portion to the PortionHandler virtual void HandlePortion( SwPortionHandler& rPH ) const override; + + void dumpAsXml(xmlTextWriterPtr pWriter) const override; }; /// Non-breaking space or non-breaking hyphen.