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 #pragma once
11 
12 #include <com/sun/star/table/XTablePivotCharts.hpp>
13 #include <com/sun/star/lang/XServiceInfo.hpp>
14 #include <com/sun/star/container/XIndexAccess.hpp>
15 
16 #include <svl/lstner.hxx>
17 #include <cppuhelper/implbase.hxx>
18 
19 #include "types.hxx"
20 
21 class ScDocShell;
22 
23 namespace sc
24 {
25 typedef cppu::WeakImplHelper<css::table::XTablePivotCharts,
26  css::container::XIndexAccess,
27  css::lang::XServiceInfo>
29 
31 {
32 private:
35 
36 public:
37  TablePivotCharts(ScDocShell* pDocShell, SCTAB nTab);
38 
39  virtual ~TablePivotCharts() override;
40 
41  virtual void Notify(SfxBroadcaster& rBC, const SfxHint& rHint) override;
42 
43  // XTablePivotCharts
44  virtual void SAL_CALL addNewByName(OUString const & aName,
45  const css::awt::Rectangle& aRect,
46  OUString const & aDataPilotName) override;
47  virtual void SAL_CALL removeByName(OUString const & aName) override;
48 
49  // XNameAccess
50  virtual css::uno::Any SAL_CALL getByName(OUString const & aName) override;
51  virtual css::uno::Sequence<OUString> SAL_CALL getElementNames() override;
52  virtual sal_Bool SAL_CALL hasByName(OUString const & aName) override;
53 
54  // XIndexAccess
55  virtual sal_Int32 SAL_CALL getCount() override;
56  virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) override;
57 
58  // XElementAccess
59  virtual css::uno::Type SAL_CALL getElementType() override;
60  virtual sal_Bool SAL_CALL hasElements() override;
61 
62  // XServiceInfo
63  virtual OUString SAL_CALL getImplementationName() override;
64  virtual sal_Bool SAL_CALL supportsService(OUString const & ServiceName) override;
65  virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override;
66 };
67 
68 }
69 
70 /* 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:22