LibreOffice Module sc (master)  1
TablePivotChart.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/XTablePivotChart.hpp>
13 #include <com/sun/star/document/XEmbeddedObjectSupplier.hpp>
14 #include <com/sun/star/lang/XServiceInfo.hpp>
15 #include <com/sun/star/container/XNamed.hpp>
16 
17 #include <svl/lstner.hxx>
18 #include <comphelper/compbase.hxx>
19 
20 #include "types.hxx"
21 
22 class ScDocShell;
23 
24 namespace sc
25 {
26 
27 typedef comphelper::WeakComponentImplHelper<css::table::XTablePivotChart,
28  css::document::XEmbeddedObjectSupplier,
29  css::container::XNamed,
30  css::lang::XServiceInfo>
32 
34  public SfxListener
35 {
36 private:
38  SCTAB m_nTab; // Charts are per sheet
39  OUString m_aChartName;
40 
41 public:
42  TablePivotChart(ScDocShell* pDocShell, SCTAB nTab, OUString const & rName);
43  virtual ~TablePivotChart() override;
44 
45  virtual void Notify(SfxBroadcaster& rBC, const SfxHint& rHint) override;
46 
47  // XComponent
49 
50  // XEmbeddedObjectSupplier
51  virtual css::uno::Reference<css::lang::XComponent> SAL_CALL
52  getEmbeddedObject() override;
53 
54  // XNamed
55  virtual OUString SAL_CALL getName() override;
56  virtual void SAL_CALL setName(OUString const & aName) override;
57 
58  // XTablePivotChart
59  virtual OUString SAL_CALL getPivotTableName() override;
60 
61  // XServiceInfo
62  virtual OUString SAL_CALL getImplementationName() override;
63  virtual sal_Bool SAL_CALL supportsService(OUString const & ServiceName) override;
64  virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override;
65 };
66 
67 }
68 
69 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual void SAL_CALL setName(OUString const &aName) override
virtual OUString SAL_CALL getName() override
virtual css::uno::Reference< css::lang::XComponent > SAL_CALL getEmbeddedObject() override
virtual OUString SAL_CALL getImplementationName() override
TablePivotChart(ScDocShell *pDocShell, SCTAB nTab, OUString const &rName)
virtual ~TablePivotChart() override
virtual void disposing(std::unique_lock< std::mutex > &)
virtual void Notify(SfxBroadcaster &rBC, const SfxHint &rHint) override
CAUTION! The following defines must be in the same namespace as the respective type.
unsigned char sal_Bool
virtual sal_Bool SAL_CALL supportsService(OUString const &ServiceName) override
virtual OUString SAL_CALL getPivotTableName() override
ScDocShell * m_pDocShell
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
comphelper::WeakComponentImplHelper< css::table::XTablePivotChart, css::document::XEmbeddedObjectSupplier, css::container::XNamed, css::lang::XServiceInfo > TablePivotChart_Base
sal_Int16 SCTAB
Definition: types.hxx:22