diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2022-03-18 08:09:11 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2022-03-18 09:20:22 +0100 |
commit | f451878ccff475dd263ad67ade5e1896cf9fc734 (patch) | |
tree | 7ad02a958bfede97647b40c6ccf0c243f4c75846 /sw | |
parent | 9bdc79bf46744d92242c14e9e6978dc590e953ea (diff) |
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 <vmiklos@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/text/porexp.cxx | 9 | ||||
-rw-r--r-- | sw/source/core/text/porexp.hxx | 2 |
2 files changed, 11 insertions, 0 deletions
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. |