diff options
Diffstat (limited to 'starmath/source/view.cxx')
-rw-r--r-- | starmath/source/view.cxx | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx index c9a6303ba0e1..eb7074c2d811 100644 --- a/starmath/source/view.cxx +++ b/starmath/source/view.cxx @@ -2039,6 +2039,13 @@ void SmViewShell::Execute(SfxRequest& rReq) } break; + case SID_CMDBOXWINDOW: + { + GetViewFrame().ToggleChildWindow(SID_CMDBOXWINDOW); + GetViewFrame().GetBindings().Invalidate(SID_CMDBOXWINDOW); + } + break; + case SID_UNICODE_NOTATION_TOGGLE: { EditEngine* pEditEngine = nullptr; @@ -2202,6 +2209,15 @@ void SmViewShell::GetState(SfxItemSet &rSet) rSet.Put(SfxBoolItem(SID_ELEMENTSDOCKINGWINDOW, bState)); } break; + case SID_CMDBOXWINDOW: + { + bool bState = false; + auto pCmdWin = GetViewFrame().GetChildWindow(SID_CMDBOXWINDOW); + if (pCmdWin) + bState = pCmdWin->IsVisible(); + rSet.Put(SfxBoolItem(SID_CMDBOXWINDOW, bState)); + } + break; case SID_ATTR_PARA_LEFT_TO_RIGHT: rSet.Put(SfxBoolItem(nWh, !GetDoc()->GetFormat().IsRightToLeft())); break; |