tdf#48459 sw inline heading: don't apply inside frames or over 120 chars
[LibreOffice.git] / sc / inc / TablePivotCharts.hxx
blob9660e3678233c415475b93bbf3f239a8d5b2d63f
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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/.
8 */
10 #pragma once
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>
19 #include "types.hxx"
21 class ScDocShell;
23 namespace sc
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
32 private:
33 ScDocShell* m_pDocShell;
34 SCTAB m_nTab;
36 public:
37 TablePivotCharts(ScDocShell* pDocShell, SCTAB nTab);
39 virtual ~TablePivotCharts() override;
41 virtual void Notify(SfxBroadcaster& rBC, const SfxHint& rHint) override;
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;
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;
54 // XIndexAccess
55 virtual sal_Int32 SAL_CALL getCount() override;
56 virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) override;
58 // XElementAccess
59 virtual css::uno::Type SAL_CALL getElementType() override;
60 virtual sal_Bool SAL_CALL hasElements() override;
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;
70 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */