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/.
12 #include <com/sun/star/table/XTablePivotCharts.hpp>
13 #include <com/sun/star/lang/XServiceInfo.hpp>
14 #include <com/sun/star/container/XIndexAccess.hpp>
16 #include <svl/lstner.hxx>
17 #include <cppuhelper/implbase.hxx>
25 typedef cppu::WeakImplHelper
<css::table::XTablePivotCharts
,
26 css::container::XIndexAccess
,
27 css::lang::XServiceInfo
>
28 TablePivotCharts_Base
;
30 class TablePivotCharts final
: public TablePivotCharts_Base
, public SfxListener
33 ScDocShell
* m_pDocShell
;
37 TablePivotCharts(ScDocShell
* pDocShell
, SCTAB nTab
);
39 virtual ~TablePivotCharts() override
;
41 virtual void Notify(SfxBroadcaster
& rBC
, const SfxHint
& rHint
) override
;
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
;
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
;
55 virtual sal_Int32 SAL_CALL
getCount() override
;
56 virtual css::uno::Any SAL_CALL
getByIndex(sal_Int32 nIndex
) override
;
59 virtual css::uno::Type SAL_CALL
getElementType() override
;
60 virtual sal_Bool SAL_CALL
hasElements() override
;
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
;
70 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */