diff options
author | Dhiraj Holden <dhiraj.holden@gmail.com> | 2021-12-07 08:16:59 -0500 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2022-01-17 07:33:18 +0100 |
commit | 5b07acbf3345918f450fccf7ee243ad5bcb3fd67 (patch) | |
tree | 83469040b27024d4c04f82034ab07e49beb30629 /sw/source/uibase/config/usrpref.cxx | |
parent | e3206e67402f623bac17ca94a20dfb45391dcb48 (diff) |
tdf#142450 add code to store showing whitespace
I have put in code to store the option to show whitespace.
This option is stored at the document level like the other
layout options.
Change-Id: I26989da2714f884a5a4d5ced3329ff669771fe7a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126497
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sw/source/uibase/config/usrpref.cxx')
-rw-r--r-- | sw/source/uibase/config/usrpref.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sw/source/uibase/config/usrpref.cxx b/sw/source/uibase/config/usrpref.cxx index e0949660471d..ed33926492eb 100644 --- a/sw/source/uibase/config/usrpref.cxx +++ b/sw/source/uibase/config/usrpref.cxx @@ -271,9 +271,10 @@ Sequence<OUString> SwLayoutViewConfig::GetPropertyNames() const "ViewLayout/BookMode", //17 "Other/IsSquaredPageMode", //18 "Other/ApplyCharUnit", //19 - "Window/ShowScrollBarTips" //20 + "Window/ShowScrollBarTips", //20 + "ViewLayout/HideWhitespace", //21 }; - const int nCount = m_bWeb ? 14 : 21; + const int nCount = m_bWeb ? 14 : 22; Sequence<OUString> aNames(nCount); OUString* pNames = aNames.getArray(); for(int i = 0; i < nCount; i++) @@ -336,6 +337,7 @@ void SwLayoutViewConfig::ImplCommit() case 18: rVal <<= m_rParent.IsSquaredPageMode(); break; // "Other/IsSquaredPageMode", case 19: rVal <<= m_rParent.IsApplyCharUnit(); break; // "Other/ApplyCharUnit", case 20: rVal <<= m_rParent.IsShowScrollBarTips(); break; // "Window/ShowScrollBarTips", + case 21: rVal <<= m_rParent.IsHideWhitespaceMode(); break; // "ViewLayout/HideWhitespace" } } PutProperties(aNames, aValues); @@ -392,6 +394,7 @@ void SwLayoutViewConfig::Load() case 18: m_rParent.SetDefaultPageMode(bSet,true); break;// "Other/IsSquaredPageMode", case 19: m_rParent.SetApplyCharUnit(bSet, true); break;// "Other/ApplyUserChar" case 20: m_rParent.SetShowScrollBarTips(bSet); break;// "Window/ShowScrollBarTips", + case 21: m_rParent.SetHideWhitespaceMode(bSet); break;// "ViewLayout/HideWhitespace" } } } |