sw/inc/fmtinfmt.hxx | 4 ++-- sw/inc/fmturl.hxx | 3 ++- sw/inc/txtinet.hxx | 2 +- sw/source/core/txtnode/txatbase.cxx | 3 +++ 4 files changed, 8 insertions(+), 4 deletions(-)
New commits: commit b54776293ad21363e8a1251bf71ff1ae74f61365 Author: Miklos Vajna <vmik...@collabora.com> AuthorDate: Mon Jul 31 21:23:26 2023 +0200 Commit: Miklos Vajna <vmik...@collabora.com> CommitDate: Tue Aug 1 08:19:21 2023 +0200 sw: document SwFormatINetFormat Especially how it relates to SwFormatURL, which is for images, not for Writer text. Change-Id: Idc00f3b9803d2fb603647b692de2c1a6ce068361 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155115 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmik...@collabora.com> diff --git a/sw/inc/fmtinfmt.hxx b/sw/inc/fmtinfmt.hxx index 32e05f6bd3a9..a76db5521c52 100644 --- a/sw/inc/fmtinfmt.hxx +++ b/sw/inc/fmtinfmt.hxx @@ -30,8 +30,8 @@ class SwTextINetFormat; class IntlWrapper; enum class SvMacroItemId : sal_uInt16; -// ATT_INETFMT - +/// SfxPoolItem subclass that contains data about an inserted hyperlink / URL in Writer text. Its +/// location is tracked by the wrapping SwTextINetFormat. class SW_DLLPUBLIC SwFormatINetFormat final : public SfxPoolItem , public sw::BroadcasterMixin diff --git a/sw/inc/fmturl.hxx b/sw/inc/fmturl.hxx index dcfcb9f9e830..c3bca0789aa4 100644 --- a/sw/inc/fmturl.hxx +++ b/sw/inc/fmturl.hxx @@ -28,7 +28,8 @@ class ImageMap; class IntlWrapper; -/// SfxPoolItem subclass that wraps a URL. +/// SfxPoolItem subclass that wraps a URL. This can appear in the item set of e.g. a +/// sw::SpzFrameFormat (Writer image). class SW_DLLPUBLIC SwFormatURL final : public SfxPoolItem { OUString m_sTargetFrameName; ///< Target frame for URL. diff --git a/sw/inc/txtinet.hxx b/sw/inc/txtinet.hxx index 1f3b4ab36ed2..6459b84a3e59 100644 --- a/sw/inc/txtinet.hxx +++ b/sw/inc/txtinet.hxx @@ -25,7 +25,7 @@ class SwTextNode; class SwCharFormat; -/// SwTextAttr subclass that tracks the location of the wrapped SwFormatURL. +/// SwTextAttr subclass that tracks the location of the wrapped SwFormatINetFormat. class SW_DLLPUBLIC SwTextINetFormat final: public SwTextAttrNesting, public SwClient { private: diff --git a/sw/source/core/txtnode/txatbase.cxx b/sw/source/core/txtnode/txatbase.cxx index 9fdd1212543f..df347860db11 100644 --- a/sw/source/core/txtnode/txatbase.cxx +++ b/sw/source/core/txtnode/txatbase.cxx @@ -173,6 +173,9 @@ void SwTextAttr::dumpAsXml(xmlTextWriterPtr pWriter) const case RES_TXTATR_REFMARK: GetRefMark().dumpAsXml(pWriter); break; + case RES_TXTATR_INETFMT: + GetINetFormat().dumpAsXml(pWriter); + break; default: SAL_WARN("sw.core", "Unhandled TXTATR"); break;