LibreOffice Module sc (master)  1
TablePivotCharts.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 #ifndef INCLUDED_SC_INC_TABLEPIVOTCHARTS_HXX
11 #define INCLUDED_SC_INC_TABLEPIVOTCHARTS_HXX
12 
13 #include <com/sun/star/table/XTablePivotCharts.hpp>
14 #include <com/sun/star/lang/XServiceInfo.hpp>
15 #include <com/sun/star/container/XIndexAccess.hpp>
16 
17 #include <svl/lstner.hxx>
18 #include <cppuhelper/implbase.hxx>
19 
20 #include "types.hxx"
21 
22 class ScDocShell;
23 
24 namespace sc
25 {
26 typedef cppu::WeakImplHelper<css::table::XTablePivotCharts,
27  css::container::XIndexAccess,
28  css::lang::XServiceInfo>
30 
32 {
33 private:
36 
37 public:
38  TablePivotCharts(ScDocShell* pDocShell, SCTAB nTab);
39 
40  virtual ~TablePivotCharts() override;
41 
42  virtual void Notify(SfxBroadcaster& rBC, const SfxHint& rHint) override;
43 
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;
49 
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;
54 
55  // XIndexAccess
56  virtual sal_Int32 SAL_CALL getCount() override;
57  virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) override;
58 
59  // XElementAccess
60  virtual css::uno::Type SAL_CALL getElementType() override;
61  virtual sal_Bool SAL_CALL hasElements() override;
62 
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;
67 };
68 
69 }
70 
71 #endif
72 
73 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual OUString SAL_CALL getImplementationName() override
virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) override
virtual void SAL_CALL addNewByName(OUString const &aName, const css::awt::Rectangle &aRect, OUString const &aDataPilotName) override
virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override
virtual ~TablePivotCharts() override
virtual sal_Bool SAL_CALL hasElements() override
virtual css::uno::Any SAL_CALL getByName(OUString const &aName) override
virtual sal_Bool SAL_CALL supportsService(OUString const &ServiceName) override
virtual void Notify(SfxBroadcaster &rBC, const SfxHint &rHint) override
virtual sal_Int32 SAL_CALL getCount() override
unsigned char sal_Bool
virtual sal_Bool SAL_CALL hasByName(OUString const &aName) override
virtual css::uno::Type SAL_CALL getElementType() override
virtual void SAL_CALL removeByName(OUString const &aName) override
TablePivotCharts(ScDocShell *pDocShell, SCTAB nTab)
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
cppu::WeakImplHelper< css::table::XTablePivotCharts, css::container::XIndexAccess, css::lang::XServiceInfo > TablePivotCharts_Base
sal_Int16 SCTAB
Definition: types.hxx:23