sw/inc/docufld.hxx | 5 +++++
1 file changed, 5 insertions(+)
New commits:
commit b872dfe4f97ece3e1a52674dd5e3920defc04f10
Author: Miklos Vajna <[email protected]>
AuthorDate: Wed Dec 3 14:15:46 2025 +0100
Commit: Miklos Vajna <[email protected]>
CommitDate: Thu Dec 4 12:41:56 2025 +0100
sw: document SwFileNameField and SwFileNameFieldType
Where to find on the UI, how the shared SwField::m_nFormat is
interpreted for this field.
Change-Id: I149d3f7d9aeb1a663fc73df470f3292161a57665
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194980
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <[email protected]>
diff --git a/sw/inc/docufld.hxx b/sw/inc/docufld.hxx
index af8e996abaf8..2a0f5b670896 100644
--- a/sw/inc/docufld.hxx
+++ b/sw/inc/docufld.hxx
@@ -228,6 +228,7 @@ public:
virtual bool PutValue( const css::uno::Any& rVal, sal_uInt16 nWhich
) override;
};
+/// Provides the expansion of of an SwFileNameField to a string.
class SAL_DLLPUBLIC_RTTI SwFileNameFieldType final : public SwFieldType
{
SwDoc& m_rDoc;
@@ -238,6 +239,10 @@ public:
virtual std::unique_ptr<SwFieldType> Copy() const override;
};
+/// Expands to the current file name. The format is stored in
SwField::m_nFormat and is interpreted
+/// as an SwFileNameFormat.
+///
+/// 'Insert' -> 'Field' -> 'More Fields' -> 'Document' -> 'File name' on the
UI.
class SW_DLLPUBLIC SwFileNameField final : public SwField
{
OUString m_aContent;