sw/inc/txtfld.hxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 7deb178cae919ddecb9e02dc66cbce713b0f455c
Author: Miklos Vajna <[email protected]>
AuthorDate: Fri Aug 15 13:10:04 2025 +0200
Commit: Miklos Vajna <[email protected]>
CommitDate: Fri Aug 15 22:31:27 2025 +0200
sw: document SwTextField
It wasn't too obvious that the SwFormatField is accessible via the
parent class m_aAttr + downcasting.
Change-Id: I33cbcc92573d2959efc50fcd074505b476ef65fd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189693
Reviewed-by: Miklos Vajna <[email protected]>
Tested-by: Jenkins
diff --git a/sw/inc/txtfld.hxx b/sw/inc/txtfld.hxx
index 5e812f8682d9..a9a81ed397bd 100644
--- a/sw/inc/txtfld.hxx
+++ b/sw/inc/txtfld.hxx
@@ -28,6 +28,8 @@
class SwPaM;
class SwTextNode;
+/// SwTextAttr subclass for fields, i.e. this is a 'hint' on a dummy character
that will be expanded
+/// to a string by the layout. GetFormatField() gives access to the underlying
SwFormatField.
class SAL_DLLPUBLIC_RTTI SwTextField : public virtual SwTextAttr
{
mutable OUString m_aExpand; // only used to determine, if field content is
changing in <ExpandTextField()>