LibreOffice Module chart2 (master) 1
DataTable.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 "OPropertySet.hxx"
14#include <comphelper/uno3.hxx>
15
16#include "charttoolsdllapi.hxx"
17#include <com/sun/star/chart2/XDataTable.hpp>
18#include <com/sun/star/lang/XServiceInfo.hpp>
19#include <com/sun/star/util/XCloneable.hpp>
21
22namespace chart
23{
24typedef cppu::WeakImplHelper<css::chart2::XDataTable, css::lang::XServiceInfo,
25 css::util::XCloneable, css::util::XModifyBroadcaster,
26 css::util::XModifyListener>
28
32{
33public:
34 explicit DataTable();
35 virtual ~DataTable() override;
36
38 virtual OUString SAL_CALL getImplementationName() override;
39 virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) override;
40 virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override;
41
44
45
46 DECLARE_XTYPEPROVIDER()
47
48 explicit DataTable(DataTable const& rOther);
49
50private:
51 // ____ OPropertySet ____
52 virtual void GetDefaultValue(sal_Int32 nHandle, css::uno::Any& rAny) const override;
53
54 // ____ OPropertySet ____
55 virtual ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper() override;
56
57public:
58 // ____ XPropertySet ____
59 virtual css::uno::Reference<css::beans::XPropertySetInfo>
60 SAL_CALL getPropertySetInfo() override;
61
62 // ____ XCloneable ____
63 virtual css::uno::Reference<css::util::XCloneable> SAL_CALL createClone() override;
64
65 // ____ XModifyBroadcaster ____
66 virtual void SAL_CALL
67 addModifyListener(const css::uno::Reference<css::util::XModifyListener>& aListener) override;
68 virtual void SAL_CALL
69 removeModifyListener(const css::uno::Reference<css::util::XModifyListener>& aListener) override;
70
71private:
72 // ____ XModifyListener ____
73 virtual void SAL_CALL modified(const css::lang::EventObject& aEvent) override;
74
75 // ____ XEventListener (base of XModifyListener) ____
76 virtual void SAL_CALL disposing(const css::lang::EventObject& Source) override;
77
78 // ____ OPropertySet ____
79 virtual void firePropertyChangeEvent() override;
80 using OPropertySet::disposing;
81
82 rtl::Reference<ModifyEventForwarder> m_xModifyEventForwarder;
83};
84
85} // namespace chart
86
87/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
#define OOO_DLLPUBLIC_CHARTTOOLS
Data table implementation.
Definition: DataTable.hxx:32
virtual ~DataTable() override
This helper class serves as forwarder of modify events.
cppu::WeakImplHelper< css::chart2::XDataTable, css::lang::XServiceInfo, css::util::XCloneable, css::util::XModifyBroadcaster, css::util::XModifyListener > DataTable_Base
Definition: DataTable.hxx:27
css::uno::Sequence< OUString > getSupportedServiceNames()
OUString getImplementationName()
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
unsigned char sal_Bool
#define DECLARE_XINTERFACE()