summaryrefslogtreecommitdiff
path: root/include/sfx2
diff options
context:
space:
mode:
authorAshod Nakashian <ashod.nakashian@collabora.co.uk>2018-10-07 11:32:55 -0400
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-07-26 07:42:14 +0200
commitaef615ac9c69775bf51d5bf77d62686244f586af (patch)
tree7fe8ed1559dc90bbcbdd5b9cca71f11739399177 /include/sfx2
parent15664117ef4db51bdcabb46b7990573509da0d73 (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.hxx3
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;