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>
18
19#include "types.hxx"
20
21class ScDocShell;
22
23namespace sc
24{
25typedef cppu::WeakImplHelper<css::table::XTablePivotCharts,
26 css::container::XIndexAccess,
27 css::lang::XServiceInfo>
29
31{
32private:
35
36public:
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 sal_Bool SAL_CALL hasByName(OUString const &aName) override
TablePivotCharts(ScDocShell *pDocShell, SCTAB nTab)
virtual sal_Bool SAL_CALL hasElements() override
virtual css::uno::Type SAL_CALL getElementType() override
virtual void SAL_CALL addNewByName(OUString const &aName, const css::awt::Rectangle &aRect, OUString const &aDataPilotName) override
virtual OUString SAL_CALL getImplementationName() override
virtual sal_Bool SAL_CALL supportsService(OUString const &ServiceName) override
virtual ~TablePivotCharts() override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override
virtual void Notify(SfxBroadcaster &rBC, const SfxHint &rHint) override
virtual void SAL_CALL removeByName(OUString const &aName) override
virtual css::uno::Any SAL_CALL getByName(OUString const &aName) override
virtual sal_Int32 SAL_CALL getCount() override
virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) override
CAUTION! The following defines must be in the same namespace as the respective type.
Definition: broadcast.cxx:15
cppu::WeakImplHelper< css::table::XTablePivotCharts, css::container::XIndexAccess, css::lang::XServiceInfo > TablePivotCharts_Base
unsigned char sal_Bool
sal_Int16 SCTAB
Definition: types.hxx:22