summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2018-05-18 18:48:38 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2018-05-20 13:16:28 +0200
commitdb04be037b611e296ef9f2542322c52ed82d7a2b (patch)
tree8892aa251d751037c592b3aeb4e521d067944837 /unotools
parentd3122433616d4da2c6ee82f73bd8f591ea498fc0 (diff)
tdf#35798: Hide empty Database fields' paragraphs (+ compat option)
With this change, Database fields that expand to empty values behave as if they are "Hidden Paragraph" fields. A compatibility option to enable this behaviour is added. The option is enabled by default, and for any non-native documents (for compatibility with other office suites). For existing (F)ODT documents, the option is disabled for those documents that don't have this setting set, to keep the layout of legacy documents. Change-Id: Ic5e8cb15a3a7d1a765a984eef4b0d97666df7dfd Reviewed-on: https://gerrit.libreoffice.org/54552 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'unotools')
-rw-r--r--unotools/source/config/compatibility.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/unotools/source/config/compatibility.cxx b/unotools/source/config/compatibility.cxx
index aa10fbc18601..de876fd30fec 100644
--- a/unotools/source/config/compatibility.cxx
+++ b/unotools/source/config/compatibility.cxx
@@ -62,6 +62,7 @@ SvtCompatibilityEntry::SvtCompatibilityEntry()
setValue<bool>( Index::ProtectForm, false );
setValue<bool>( Index::MsWordTrailingBlanks, false );
setValue<bool>( Index::SubtractFlysAnchoredAtFlys, false );
+ setValue<bool>( Index::EmptyDbFieldHidesPara, true );
setDefaultEntry( false );
}
@@ -92,7 +93,8 @@ OUString SvtCompatibilityEntry::getName( const Index rIdx )
"ExpandWordSpace",
"ProtectForm",
"MsWordCompTrailingBlanks",
- "SubtractFlysAnchoredAtFlys"
+ "SubtractFlysAnchoredAtFlys",
+ "EmptyDbFieldHidesPara",
};
/* Size of sPropertyName array not equal size of the SvtCompatibilityEntry::Index enum class */