1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/.
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>
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
34 ScDocShell
* m_pDocShell
;
38 TablePivotCharts(ScDocShell
* pDocShell
, SCTAB nTab
);
40 virtual ~TablePivotCharts() override
;
42 virtual void Notify(SfxBroadcaster
& rBC
, const SfxHint
& rHint
) override
;
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
;
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
;
56 virtual sal_Int32 SAL_CALL
getCount() override
;
57 virtual css::uno::Any SAL_CALL
getByIndex(sal_Int32 nIndex
) override
;
60 virtual css::uno::Type SAL_CALL
getElementType() override
;
61 virtual sal_Bool SAL_CALL
hasElements() override
;
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
;
73 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */