diff options
Diffstat (limited to 'sc/source/ui/view/tabvwsh3.cxx')
-rw-r--r-- | sc/source/ui/view/tabvwsh3.cxx | 13 |
1 files changed, 13 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(); |