LibreOffice Module chart2 (master) 1
ChartToolbarController.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
13
14#include <com/sun/star/frame/XToolbarController.hpp>
15#include <com/sun/star/frame/XStatusListener.hpp>
16#include <com/sun/star/util/XUpdatable.hpp>
17#include <com/sun/star/lang/XInitialization.hpp>
18#include <com/sun/star/lang/XServiceInfo.hpp>
19
20namespace com::sun::star::awt { class XWindow; }
21namespace com::sun::star::frame { class XFramesSupplier; }
22
23namespace chart {
24
26 css::frame::XToolbarController, css::frame::XStatusListener,
27 css::util::XUpdatable, css::lang::XInitialization,
28 css::lang::XServiceInfo> ChartToolbarControllerBase;
29
31{
32public:
33 ChartToolbarController(const css::uno::Sequence<css::uno::Any>& rProperties);
34 virtual ~ChartToolbarController() override;
35
38
39 // XToolbarController
40 virtual void SAL_CALL execute(sal_Int16 nKeyModifier) override;
41
42 virtual void SAL_CALL click() override;
43
44 virtual void SAL_CALL doubleClick() override;
45
46 virtual css::uno::Reference<css::awt::XWindow> SAL_CALL createPopupWindow() override;
47
48 virtual css::uno::Reference<css::awt::XWindow> SAL_CALL
49 createItemWindow(const css::uno::Reference<css::awt::XWindow>& rParent) override;
50
51 // XServiceInfo
52 virtual OUString SAL_CALL getImplementationName() override;
53
54 virtual sal_Bool SAL_CALL supportsService(OUString const & ServiceName) override;
55
56 virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override;
57
58 // XStatusListener
59 virtual void SAL_CALL statusChanged(const css::frame::FeatureStateEvent& rEvent) override;
60
61 // XEventListener
62 virtual void SAL_CALL disposing(const css::lang::EventObject& rSource) override;
63
64 // XInitialization
65 virtual void SAL_CALL initialize(const css::uno::Sequence<css::uno::Any>& rAny) override;
66
67 // XUpdatable
68 virtual void SAL_CALL update() override;
69
71
72private:
73
74 css::uno::Reference<css::frame::XFramesSupplier> mxFramesSupplier;
75};
76
77}
78
79/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual css::uno::Reference< css::awt::XWindow > SAL_CALL createItemWindow(const css::uno::Reference< css::awt::XWindow > &rParent) override
ChartToolbarController(const ChartToolbarController &)=delete
virtual sal_Bool SAL_CALL supportsService(OUString const &ServiceName) override
virtual void SAL_CALL initialize(const css::uno::Sequence< css::uno::Any > &rAny) override
const ChartToolbarController & operator=(const ChartToolbarController &)=delete
ChartToolbarController(const css::uno::Sequence< css::uno::Any > &rProperties)
virtual void SAL_CALL doubleClick() override
virtual void SAL_CALL update() override
virtual css::uno::Reference< css::awt::XWindow > SAL_CALL createPopupWindow() override
virtual ~ChartToolbarController() override
css::uno::Reference< css::frame::XFramesSupplier > mxFramesSupplier
virtual void SAL_CALL click() override
virtual void SAL_CALL statusChanged(const css::frame::FeatureStateEvent &rEvent) override
virtual void SAL_CALL disposing(const css::lang::EventObject &rSource) override
virtual void SAL_CALL execute(sal_Int16 nKeyModifier) override
virtual OUString SAL_CALL getImplementationName() override
virtual void disposing(std::unique_lock< std::mutex > &)
comphelper::WeakComponentImplHelper< css::frame::XToolbarController, css::frame::XStatusListener, css::util::XUpdatable, css::lang::XInitialization, css::lang::XServiceInfo > ChartToolbarControllerBase
unsigned char sal_Bool