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/document/XEmbeddedObjectSupplier.hpp>
15 #include <com/sun/star/lang/XServiceInfo.hpp>
16 #include <com/sun/star/container/XEnumerationAccess.hpp>
17 #include <com/sun/star/container/XIndexAccess.hpp>
19 #include <svl/lstner.hxx>
20 #include <cppuhelper/compbase.hxx>
21 #include <cppuhelper/implbase.hxx>
29 typedef cppu::WeakImplHelper
<css::table::XTablePivotCharts
,
30 css::container::XIndexAccess
,
31 css::lang::XServiceInfo
>
32 TablePivotCharts_Base
;
34 class TablePivotCharts
: public TablePivotCharts_Base
, public SfxListener
37 ScDocShell
* m_pDocShell
;
41 TablePivotCharts(ScDocShell
* pDocShell
, SCTAB nTab
);
43 virtual ~TablePivotCharts() override
;
45 virtual void Notify(SfxBroadcaster
& rBC
, const SfxHint
& rHint
) override
;
48 virtual void SAL_CALL
addNewByName(OUString
const & aName
,
49 const css::awt::Rectangle
& aRect
,
50 OUString
const & aDataPilotName
) override
;
51 virtual void SAL_CALL
removeByName(OUString
const & aName
) override
;
54 virtual css::uno::Any SAL_CALL
getByName(OUString
const & aName
) override
;
55 virtual css::uno::Sequence
<OUString
> SAL_CALL
getElementNames() override
;
56 virtual sal_Bool SAL_CALL
hasByName(OUString
const & aName
) override
;
59 virtual sal_Int32 SAL_CALL
getCount() override
;
60 virtual css::uno::Any SAL_CALL
getByIndex(sal_Int32 nIndex
) override
;
63 virtual css::uno::Type SAL_CALL
getElementType() override
;
64 virtual sal_Bool SAL_CALL
hasElements() override
;
67 virtual OUString SAL_CALL
getImplementationName() override
;
68 virtual sal_Bool SAL_CALL
supportsService(OUString
const & ServiceName
) override
;
69 virtual css::uno::Sequence
<OUString
> SAL_CALL
getSupportedServiceNames() override
;
76 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */