diff options
author | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2018-10-07 11:32:55 -0400 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-26 07:42:14 +0200 |
commit | aef615ac9c69775bf51d5bf77d62686244f586af (patch) | |
tree | 7fe8ed1559dc90bbcbdd5b9cca71f11739399177 /include/sfx2 | |
parent | 15664117ef4db51bdcabb46b7990573509da0d73 (diff) |
LOK: sfx2: disble sidebar menu-button when deck is hidden
There is no render area on the sidebar virtual-device
to render the popup menu when the sidebar is collapsed
into the TabBar, so we disable it altogether as we
can't properly display it in LoKit.
Change-Id: I2edee9e734485bb685f0ddc0c30bfe584e42a550
Reviewed-on: https://gerrit.libreoffice.org/73507
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/sfx2')
-rw-r--r-- | include/sfx2/sidebar/TabBar.hxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sfx2/sidebar/TabBar.hxx b/include/sfx2/sidebar/TabBar.hxx index a6fcf6a33db4..1796094c3660 100644 --- a/include/sfx2/sidebar/TabBar.hxx +++ b/include/sfx2/sidebar/TabBar.hxx @@ -83,6 +83,9 @@ public: void UpdateFocusManager (FocusManager& rFocusManager); + /// Enables/Disables the menu button. Used by LoKit. + void EnableMenuButton(const bool bEnable); + private: css::uno::Reference<css::frame::XFrame> mxFrame; VclPtr<CheckBox> mpMenuButton; |