diff options
Diffstat (limited to 'include/vcl/notebookbar.hxx')
-rw-r--r-- | include/vcl/notebookbar.hxx | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/include/vcl/notebookbar.hxx b/include/vcl/notebookbar.hxx index 9dd7e9f5b708..37fa7ee3dc36 100644 --- a/include/vcl/notebookbar.hxx +++ b/include/vcl/notebookbar.hxx @@ -12,9 +12,13 @@ #include <vcl/builder.hxx> #include <vcl/ctrl.hxx> +#include <vcl/contexttabctrl.hxx> +#include <com/sun/star/ui/XContextChangeEventListener.hpp> +#include <vcl/EnumContext.hxx> /// This implements Widget Layout-based notebook-like menu bar. -class NotebookBar : public Control, public VclBuilderContainer +class NotebookBar : public Control, public VclBuilderContainer, + public css::ui::XContextChangeEventListener { public: NotebookBar(Window* pParent, const OString& rID, const OUString& rUIXMLDescription, const css::uno::Reference<css::frame::XFrame> &rFrame); @@ -25,6 +29,20 @@ public: virtual void setPosSizePixel(long nX, long nY, long nWidth, long nHeight, PosSizeFlags nFlags = PosSizeFlags::All) SAL_OVERRIDE; virtual void StateChanged(StateChangedType nType) override; + + // XContextChangeEventListener + virtual void SAL_CALL notifyContextChangeEvent(const css::ui::ContextChangeEventObject& rEvent) + throw (css::uno::RuntimeException, std::exception) override; + + virtual ::css::uno::Any SAL_CALL queryInterface(const ::css::uno::Type& aType) + throw (::css::uno::RuntimeException, ::std::exception) override; + virtual void SAL_CALL acquire() throw () override; + virtual void SAL_CALL release() throw () override; + virtual void SAL_CALL disposing(const ::css::lang::EventObject&) + throw (::css::uno::RuntimeException, ::std::exception) override; + +private: + VclPtr<ContextTabControl> m_pTabControl; }; #endif // INCLUDED_VCL_NOTEBOOKBAR_HXX |