sw/inc/reffld.hxx |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit 9dca0b28cea0499b0dcc8b87337f6b4d77a0a7f8
Author:     Miklos Vajna <[email protected]>
AuthorDate: Fri Nov 21 09:19:57 2025 +0100
Commit:     Michael Stahl <[email protected]>
CommitDate: Fri Nov 21 12:09:21 2025 +0100

    sw: document SwGetRefField
    
    Mention that a cross-reference field can refer to things other than
    reference marks, too.
    
    Change-Id: I68ebb1c05d0558c73185483882eabd49024d2b3b
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194301
    Tested-by: Jenkins CollaboraOffice <[email protected]>
    Reviewed-by: Michael Stahl <[email protected]>

diff --git a/sw/inc/reffld.hxx b/sw/inc/reffld.hxx
index f50219df9885..ff4ddba9a16f 100644
--- a/sw/inc/reffld.hxx
+++ b/sw/inc/reffld.hxx
@@ -119,6 +119,11 @@ private:
                                         const SwTextNode* pReference, 
std::u16string_view styleName);
 };
 
+/// A cross-reference field: refers to a property (page number, relative 
location, etc) of a
+/// bookmark or reference mark. When referring to headings, the bookmark is 
created implicitly by
+/// the UI.
+///
+/// Insert -> Field -> Cross-references on the UI.
 class SAL_DLLPUBLIC_RTTI SwGetRefField final : public SwField
 {
 private:

Reply via email to