From 69c826957362be0de36bff190d299545a5780e1a Mon Sep 17 00:00:00 2001 From: Jim Raykowski Date: Mon, 8 Oct 2018 16:29:13 -0800 Subject: Unhardcode sidebar used customizable key bindings Change-Id: Ia3bc171e2c9805955394fac274de382c3f87d35f Reviewed-on: https://gerrit.libreoffice.org/61564 Tested-by: Jenkins Reviewed-by: Mike Kaganski --- include/sfx2/sidebar/SidebarController.hxx | 2 ++ include/sfx2/sidebar/SidebarDockingWindow.hxx | 3 +++ include/sfx2/sidebar/TabBar.hxx | 2 ++ 3 files changed, 7 insertions(+) (limited to 'include') diff --git a/include/sfx2/sidebar/SidebarController.hxx b/include/sfx2/sidebar/SidebarController.hxx index c314391f195a..c81e306736bd 100644 --- a/include/sfx2/sidebar/SidebarController.hxx +++ b/include/sfx2/sidebar/SidebarController.hxx @@ -168,6 +168,8 @@ public: tools::Rectangle GetDeckDragArea() const; + css::uno::Reference getXFrame() {return mxFrame;} + private: SidebarController( SidebarDockingWindow* pParentWindow, diff --git a/include/sfx2/sidebar/SidebarDockingWindow.hxx b/include/sfx2/sidebar/SidebarDockingWindow.hxx index 2df114e1c585..931cb34c5c6b 100644 --- a/include/sfx2/sidebar/SidebarDockingWindow.hxx +++ b/include/sfx2/sidebar/SidebarDockingWindow.hxx @@ -23,6 +23,8 @@ #include +#include + namespace sfx2 { namespace sidebar { class SidebarChildWindow; @@ -55,6 +57,7 @@ protected: private: ::rtl::Reference mpSidebarController; bool mbIsReadyToDrag; + std::unique_ptr mpAccel; void DoDispose(); }; diff --git a/include/sfx2/sidebar/TabBar.hxx b/include/sfx2/sidebar/TabBar.hxx index c672bcbf71d0..0c6cd097711c 100644 --- a/include/sfx2/sidebar/TabBar.hxx +++ b/include/sfx2/sidebar/TabBar.hxx @@ -31,6 +31,7 @@ #include +#include class Button; class CheckBox; @@ -119,6 +120,7 @@ private: DECL_LINK(OnToolboxClicked, Button*, void); SidebarController* pParentSidebarController; + std::unique_ptr mpAccel; }; -- cgit