LibreOffice Module sfx2 (master) 1
NotebookbarTabControl.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
9
10#pragma once
11
12#include <vcl/tabctrl.hxx>
13
14#include <com/sun/star/frame/XFrame.hpp>
15
16namespace com::sun::star::ui { class XUIConfigurationListener; }
17namespace com::sun::star::uno { class XComponentContext; }
18
19class NotebookbarTabControl final : public NotebookbarTabControlBase
20{
22
23public:
24 NotebookbarTabControl( Window* pParent );
25 ~NotebookbarTabControl() override;
26
27 virtual void KeyInput( const KeyEvent& rKEvt ) override;
28 virtual bool EventNotify( NotifyEvent& rNEvt ) override;
29 virtual void StateChanged(StateChangedType nStateChange) override;
30 virtual Size calculateRequisition() const override;
31
32private:
33 static void FillShortcutsToolBox(css::uno::Reference<css::uno::XComponentContext> const & xContext,
34 const css::uno::Reference<css::frame::XFrame>& xFrame,
35 const OUString& aModuleName,
36 ToolBox* pShortcuts
37 );
38 void ArrowStops( sal_uInt16 nCode );
39
40 DECL_LINK(OpenNotebookbarPopupMenu, NotebookBar*, void);
41
42 css::uno::Reference<css::ui::XUIConfigurationListener> m_pListener;
43 css::uno::Reference<css::frame::XFrame> m_xFrame;
46};
47
48/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
css::uno::Reference< css::frame::XFrame > m_xFrame
css::uno::Reference< css::ui::XUIConfigurationListener > m_pListener
virtual Size calculateRequisition() const override
virtual void KeyInput(const KeyEvent &rKEvt) override
virtual bool EventNotify(NotifyEvent &rNEvt) override
static void FillShortcutsToolBox(css::uno::Reference< css::uno::XComponentContext > const &xContext, const css::uno::Reference< css::frame::XFrame > &xFrame, const OUString &aModuleName, ToolBox *pShortcuts)
void ArrowStops(sal_uInt16 nCode)
virtual void StateChanged(StateChangedType nStateChange) override
NotebookbarTabControl(Window *pParent)
DECL_LINK(OpenNotebookbarPopupMenu, NotebookBar *, void)
StateChangedType