diff options
author | Szymon Kłos <eszkadev@gmail.com> | 2016-12-27 17:58:09 +0100 |
---|---|---|
committer | Maxim Monastirsky <momonasmon@gmail.com> | 2017-01-05 09:36:54 +0000 |
commit | 9152f16b7901af6bceaa296b8e0fc171ee5fe03c (patch) | |
tree | e106a6fe6330e2d519a9e6555f7f36657a2147a7 /include/vcl/notebookbar.hxx | |
parent | 4f55dedce3a618df65aacb536ec9902299e2e6d7 (diff) |
tdf#102059 NotebookBar accessible using F6 key
Change-Id: I873c49d8c0557eb3702de921fb5d2281acfed526
Reviewed-on: https://gerrit.libreoffice.org/32459
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
Diffstat (limited to 'include/vcl/notebookbar.hxx')
-rw-r--r-- | include/vcl/notebookbar.hxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/vcl/notebookbar.hxx b/include/vcl/notebookbar.hxx index a2ad0fecae7e..cf01dc669707 100644 --- a/include/vcl/notebookbar.hxx +++ b/include/vcl/notebookbar.hxx @@ -16,6 +16,8 @@ #include <sfx2/notebookbar/NotebookbarContextControl.hxx> #include <com/sun/star/ui/XContextChangeEventListener.hpp> +class SystemWindow; + /// This implements Widget Layout-based notebook-like menu bar. class VCL_DLLPUBLIC NotebookBar : public Control, public VclBuilderContainer { @@ -25,13 +27,17 @@ public: virtual ~NotebookBar() override; virtual void dispose() SAL_OVERRIDE; + virtual bool PreNotify( NotifyEvent& rNEvt ) override; virtual Size GetOptimalSize() const SAL_OVERRIDE; virtual void setPosSizePixel(long nX, long nY, long nWidth, long nHeight, PosSizeFlags nFlags = PosSizeFlags::All) SAL_OVERRIDE; void SetIconClickHdl(Link<NotebookBar*, void> aHdl); + void SetSystemWindow(SystemWindow* pSystemWindow); + const css::uno::Reference<css::ui::XContextChangeEventListener>& getContextChangeEventListener() const { return m_pEventListener; } private: + VclPtr<SystemWindow> m_pSystemWindow; css::uno::Reference<css::ui::XContextChangeEventListener> m_pEventListener; NotebookbarContextControl* m_pContextContainer; }; |