nss: upgrade to release 3.73
[LibreOffice.git] / sc / inc / TablePivotCharts.hxx
blob9c44632b2001121ddd8973efa76da8c25686169c
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/lang/XServiceInfo.hpp>
15 #include <com/sun/star/container/XIndexAccess.hpp>
17 #include <svl/lstner.hxx>
18 #include <cppuhelper/implbase.hxx>
20 #include "types.hxx"
22 class ScDocShell;
24 namespace sc
26 typedef cppu::WeakImplHelper<css::table::XTablePivotCharts,
27 css::container::XIndexAccess,
28 css::lang::XServiceInfo>
29 TablePivotCharts_Base;
31 class TablePivotCharts final : public TablePivotCharts_Base, public SfxListener
33 private:
34 ScDocShell* m_pDocShell;
35 SCTAB m_nTab;
37 public:
38 TablePivotCharts(ScDocShell* pDocShell, SCTAB nTab);
40 virtual ~TablePivotCharts() override;
42 virtual void Notify(SfxBroadcaster& rBC, const SfxHint& rHint) override;
44 // XTablePivotCharts
45 virtual void SAL_CALL addNewByName(OUString const & aName,
46 const css::awt::Rectangle& aRect,
47 OUString const & aDataPilotName) override;
48 virtual void SAL_CALL removeByName(OUString const & aName) override;
50 // XNameAccess
51 virtual css::uno::Any SAL_CALL getByName(OUString const & aName) override;
52 virtual css::uno::Sequence<OUString> SAL_CALL getElementNames() override;
53 virtual sal_Bool SAL_CALL hasByName(OUString const & aName) override;
55 // XIndexAccess
56 virtual sal_Int32 SAL_CALL getCount() override;
57 virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) override;
59 // XElementAccess
60 virtual css::uno::Type SAL_CALL getElementType() override;
61 virtual sal_Bool SAL_CALL hasElements() override;
63 // XServiceInfo
64 virtual OUString SAL_CALL getImplementationName() override;
65 virtual sal_Bool SAL_CALL supportsService(OUString const & ServiceName) override;
66 virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override;
71 #endif
73 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */