summaryrefslogtreecommitdiff
path: root/sw/inc
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2023-10-21 17:42:56 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2023-10-21 21:48:34 +0200
commit5555562856a8bca0869a04147fbc05a1eece9193 (patch)
tree110d1566c27f24089ab9949089b749f466c3cdf1 /sw/inc
parentdffe85aaf3443ab2286eb9990c1c7faa692ec96f (diff)
Related: tdf#89178 Add an option to avoid converting some fields into text
... during mail merge. In some modes (generating individual documents; creating PDF) the mail merge process converts all fields into text. But sometimes it is undesirable for fields not involved into mail merge itself: * It is inconsistent with how MS Word behaves; * The generated editable documents could benefit from having other fields kept as fields; * Some fields, when exported to PDF, produce different results: e.g., placeholder fields are output as empty spaces, not as placeholder text. An expert boolean configuration option is added: Office/Writer/FormLetter/ConvertToTextOnlyMMFields; it is false by default, in which case, the behavior is unchanged. When true, all fields in the mail merge document, except for database fields and hidden text fields, are not converted to text during mail merge process. Change-Id: Ibdb505ed3f2762db063bb0a91b674d27ecbc2e7f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158306 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sw/inc')
-rw-r--r--sw/inc/doc.hxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sw/inc/doc.hxx b/sw/inc/doc.hxx
index c40abf7a1581..5d1814210801 100644
--- a/sw/inc/doc.hxx
+++ b/sw/inc/doc.hxx
@@ -1445,6 +1445,7 @@ public:
// restore the invisible content if it's available on the undo stack
bool RestoreInvisibleContent();
+ // Replace fields by text - mailmerge support
SAL_DLLPRIVATE bool ConvertFieldsToText(SwRootFrame const& rLayout);
// Create sub-documents according to given collection.