Version 6.1.0.2, tag libreoffice-6.1.0.2
[LibreOffice.git] / sc / inc / TablePivotCharts.hxx
blobf60726ee2650ce0a699cbb1cc683be2df00952f6
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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 */
10 #ifndef INCLUDED_SC_INC_TABLEPIVOTCHARTS_HXX
11 #define INCLUDED_SC_INC_TABLEPIVOTCHARTS_HXX
13 #include <com/sun/star/table/XTablePivotCharts.hpp>
14 #include <com/sun/star/document/XEmbeddedObjectSupplier.hpp>
15 #include <com/sun/star/lang/XServiceInfo.hpp>
16 #include <com/sun/star/container/XEnumerationAccess.hpp>
17 #include <com/sun/star/container/XIndexAccess.hpp>
19 #include <svl/lstner.hxx>
20 #include <cppuhelper/compbase.hxx>
21 #include <cppuhelper/implbase.hxx>
23 #include "types.hxx"
25 class ScDocShell;
27 namespace sc
29 typedef cppu::WeakImplHelper<css::table::XTablePivotCharts,
30 css::container::XIndexAccess,
31 css::lang::XServiceInfo>
32 TablePivotCharts_Base;
34 class TablePivotCharts : public TablePivotCharts_Base, public SfxListener
36 private:
37 ScDocShell* m_pDocShell;
38 SCTAB m_nTab;
40 public:
41 TablePivotCharts(ScDocShell* pDocShell, SCTAB nTab);
43 virtual ~TablePivotCharts() override;
45 virtual void Notify(SfxBroadcaster& rBC, const SfxHint& rHint) override;
47 // XTablePivotCharts
48 virtual void SAL_CALL addNewByName(OUString const & aName,
49 const css::awt::Rectangle& aRect,
50 OUString const & aDataPilotName) override;
51 virtual void SAL_CALL removeByName(OUString const & aName) override;
53 // XNameAccess
54 virtual css::uno::Any SAL_CALL getByName(OUString const & aName) override;
55 virtual css::uno::Sequence<OUString> SAL_CALL getElementNames() override;
56 virtual sal_Bool SAL_CALL hasByName(OUString const & aName) override;
58 // XIndexAccess
59 virtual sal_Int32 SAL_CALL getCount() override;
60 virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) override;
62 // XElementAccess
63 virtual css::uno::Type SAL_CALL getElementType() override;
64 virtual sal_Bool SAL_CALL hasElements() override;
66 // XServiceInfo
67 virtual OUString SAL_CALL getImplementationName() override;
68 virtual sal_Bool SAL_CALL supportsService(OUString const & ServiceName) override;
69 virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override;
74 #endif
76 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */