summaryrefslogtreecommitdiff
path: root/sc/source/ui/view
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/view')
-rw-r--r--sc/source/ui/view/tabvwsh3.cxx13
-rw-r--r--sc/source/ui/view/tabvwsha.cxx7
2 files changed, 20 insertions, 0 deletions
diff --git a/sc/source/ui/view/tabvwsh3.cxx b/sc/source/ui/view/tabvwsh3.cxx
index 60754c58baff..208748b7110f 100644
--- a/sc/source/ui/view/tabvwsh3.cxx
+++ b/sc/source/ui/view/tabvwsh3.cxx
@@ -56,6 +56,7 @@
#include <comphelper/string.hxx>
#include <sfx2/lokhelper.hxx>
#include <scabstdlg.hxx>
+#include <officecfg/Office/Calc.hxx>
#include <basegfx/utils/zoomtools.hxx>
@@ -696,6 +697,18 @@ void ScTabViewShell::Execute( SfxRequest& rReq )
rReq.Done();
}
break;
+ case FID_TOGGLECOLROWHIGHLIGHTING:
+ {
+ bool bNewVal = !officecfg::Office::Calc::Content::Display::ColumnRowHighlighting::get();
+
+ auto pChange(comphelper::ConfigurationChanges::create());
+ officecfg::Office::Calc::Content::Display::ColumnRowHighlighting::set(bNewVal, pChange);
+ pChange->commit();
+
+ rReq.AppendItem(SfxBoolItem(nSlot, bNewVal));
+ rReq.Done();
+ }
+ break;
case FID_TOGGLEHEADERS:
{
bool bSet = !GetViewData().IsHeaderMode();
diff --git a/sc/source/ui/view/tabvwsha.cxx b/sc/source/ui/view/tabvwsha.cxx
index 84a3acbcdf44..c332c9542a66 100644
--- a/sc/source/ui/view/tabvwsha.cxx
+++ b/sc/source/ui/view/tabvwsha.cxx
@@ -18,6 +18,7 @@
*/
#include <com/sun/star/table/BorderLineStyle.hpp>
+#include <officecfg/Office/Calc.hxx>
#include <comphelper/lok.hxx>
#include <editeng/boxitem.hxx>
@@ -378,6 +379,12 @@ void ScTabViewShell::GetState( SfxItemSet& rSet )
rSet.Put(SfxBoolItem(nWhich, GetViewData().IsSyntaxMode()));
break;
+ case FID_TOGGLECOLROWHIGHLIGHTING:
+ rSet.Put(SfxBoolItem(
+ nWhich,
+ officecfg::Office::Calc::Content::Display::ColumnRowHighlighting::get()));
+ break;
+
case FID_TOGGLEHEADERS:
rSet.Put(SfxBoolItem(nWhich, GetViewData().IsHeaderMode()));
break;