sw/inc/txtfld.hxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 38c124f30eef0eacfe7885dc4f98e0ef7bbc7b23
Author:     Miklos Vajna <vmik...@collabora.com>
AuthorDate: Fri Aug 15 13:10:04 2025 +0200
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Fri Aug 15 17:08:58 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/+/189681
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>

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()>

Reply via email to