diff options
author | Michael Stahl <Michael.Stahl@cib.de> | 2020-09-23 18:51:54 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2020-09-25 15:56:09 +0200 |
commit | 63596e6798fac2d1ff363d69e92efc4f19a10810 (patch) | |
tree | e06e48bcde2ba1ee07464536bdab3286bf130162 /unotools | |
parent | 10bd6792523509c6726dc7c1b02c17e758e568fe (diff) |
tdf#134782 sw,unotools,officecfg: adapt configuration and UI
Store AddParaLineSpacingToTableCells in configuration as
"AddTableLineSpacing", consistently inconsistent like AddTableSpacing
(the <desc> elements are not subject to translation).
Adapt SwCompatibilityOptPage with some ugly hacks to allow 3 different
states (TriState) for the corresponding checkbox that map to false/false,
true/false and true/true.
The checkbox widget doesn't allow to change *to* indeterminate but at
least the status of the document can be displayed this way,
with a non-obvious tweak to optcompatpage.ui to reference "checktri1"
column.
Change-Id: I5f32e05c93b5e16e782cba5d1d055809d9e5e251
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103318
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@cib.de>
(cherry picked from commit 68aec8fd57eda8c05926b7f361dc102772f2c501)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103360
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/source/config/compatibility.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/unotools/source/config/compatibility.cxx b/unotools/source/config/compatibility.cxx index a71c8ac39c8d..5556a0a231d4 100644 --- a/unotools/source/config/compatibility.cxx +++ b/unotools/source/config/compatibility.cxx @@ -66,6 +66,7 @@ SvtCompatibilityEntry::SvtCompatibilityEntry() setValue<bool>( Index::MsWordTrailingBlanks, false ); setValue<bool>( Index::SubtractFlysAnchoredAtFlys, false ); setValue<bool>( Index::EmptyDbFieldHidesPara, true ); + setValue<bool>( Index::AddTableLineSpacing, false ); setDefaultEntry( false ); } @@ -94,6 +95,7 @@ OUString SvtCompatibilityEntry::getName( const Index rIdx ) "MsWordCompTrailingBlanks", "SubtractFlysAnchoredAtFlys", "EmptyDbFieldHidesPara", + "AddTableLineSpacing", }; /* Size of sPropertyName array not equal size of the SvtCompatibilityEntry::Index enum class */ |