diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-01-29 18:52:34 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-01-31 11:46:57 +0000 |
commit | e964c55f463c5b9daeb41dbed6c330b40911c313 (patch) | |
tree | 6621007c909c999df0cbe1b1e0aac0019de3ed09 /sc | |
parent | 24af8af98edd3808d96b00b51648c1bb55da22eb (diff) |
implement missing FID_FUNCTION_BOX GetState
since it was turned into a sidebar thing
Change-Id: Ic7e53b9da3255bb8dfde048e0a12f1d9c89102d0
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/view/tabvwsha.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sc/source/ui/view/tabvwsha.cxx b/sc/source/ui/view/tabvwsha.cxx index 7eebef015072..513c735af81d 100644 --- a/sc/source/ui/view/tabvwsha.cxx +++ b/sc/source/ui/view/tabvwsha.cxx @@ -28,6 +28,7 @@ #include <svl/int64item.hxx> #include <svx/zoomslideritem.hxx> #include <sfx2/bindings.hxx> +#include <sfx2/sidebar/Sidebar.hxx> #include <sfx2/viewfrm.hxx> #include <sfx2/dispatch.hxx> #include <sfx2/request.hxx> @@ -312,6 +313,14 @@ void ScTabViewShell::GetState( SfxItemSet& rSet ) } break; + case FID_FUNCTION_BOX: + { + const bool bBoxOpen = ::sfx2::sidebar::Sidebar::IsPanelVisible("ScFunctionsPanel", + pThisFrame->GetFrame().GetFrameInterface()); + rSet.Put(SfxBoolItem(nWhich, bBoxOpen)); + break; + } + case FID_TOGGLESYNTAX: rSet.Put(SfxBoolItem(nWhich, GetViewData().IsSyntaxMode())); break; |