diff options
author | Jim Raykowski <raykowj@gmail.com> | 2018-10-08 16:29:13 -0800 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2018-10-10 17:32:37 +0200 |
commit | 69c826957362be0de36bff190d299545a5780e1a (patch) | |
tree | fbc4da31ff9f536f34c07762adc184f5e415d9fb /include | |
parent | f7982d4dfa85f15a6f0c25e9795a5847ecfcbf31 (diff) |
Unhardcode sidebar used customizable key bindings
Change-Id: Ia3bc171e2c9805955394fac274de382c3f87d35f
Reviewed-on: https://gerrit.libreoffice.org/61564
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/sfx2/sidebar/SidebarController.hxx | 2 | ||||
-rw-r--r-- | include/sfx2/sidebar/SidebarDockingWindow.hxx | 3 | ||||
-rw-r--r-- | include/sfx2/sidebar/TabBar.hxx | 2 |
3 files changed, 7 insertions, 0 deletions
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<css::frame::XFrame> 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 <rtl/ref.hxx> +#include <svtools/acceleratorexecute.hxx> + namespace sfx2 { namespace sidebar { class SidebarChildWindow; @@ -55,6 +57,7 @@ protected: private: ::rtl::Reference<sfx2::sidebar::SidebarController> mpSidebarController; bool mbIsReadyToDrag; + std::unique_ptr<svt::AcceleratorExecute> 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 <functional> +#include <svtools/acceleratorexecute.hxx> class Button; class CheckBox; @@ -119,6 +120,7 @@ private: DECL_LINK(OnToolboxClicked, Button*, void); SidebarController* pParentSidebarController; + std::unique_ptr<svt::AcceleratorExecute> mpAccel; }; |