sw/inc/expfld.hxx |    4 ++++
 sw/inc/txtfld.hxx |    2 ++
 2 files changed, 6 insertions(+)

New commits:
commit 4100b27ba4436dd61c6055ae393c6a697d3345df
Author:     Miklos Vajna <[email protected]>
AuthorDate: Wed Nov 19 08:40:49 2025 +0100
Commit:     Miklos Vajna <[email protected]>
CommitDate: Wed Nov 19 18:01:14 2025 +0100

    sw: document SwInputField and SwTextInputField
    
    To make it more obvious how SwTextInputField owns an SwFormatField,
    which then further owns an SwInputField.
    
    Change-Id: I1b5e020e45a14eecff72b03ee63bb1ad1d55cfc4
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194206
    Reviewed-by: Miklos Vajna <[email protected]>
    Tested-by: Jenkins

diff --git a/sw/inc/expfld.hxx b/sw/inc/expfld.hxx
index 5cc8b1d1923b..92bb4c343238 100644
--- a/sw/inc/expfld.hxx
+++ b/sw/inc/expfld.hxx
@@ -285,6 +285,10 @@ public:
     SwDoc* GetDoc() const { return mpDoc; }
 };
 
+/// SwField subclass for input fields, which are editable in-place. Typically 
owned by an
+/// SwFormatField, which is then further owned by SwTextInputField to track 
its location.
+///
+/// Insert -> Field -> More Fields -> Functions -> Input field on the UI.
 class SW_DLLPUBLIC SwInputField final : public SwField
 {
     mutable OUString maContent;
diff --git a/sw/inc/txtfld.hxx b/sw/inc/txtfld.hxx
index a9a81ed397bd..d419e7ad4908 100644
--- a/sw/inc/txtfld.hxx
+++ b/sw/inc/txtfld.hxx
@@ -76,6 +76,8 @@ public:
 
 };
 
+/// SwTextAttr subclass that tracks the location of the wrapped SwFormatField, 
when the format
+/// field's field is an SwInputField.
 class SwTextInputField final
     : public SwTextAttrNesting
     , public SwTextField

Reply via email to