LibreOffice Module sc (master)  1
PivotTableDataSource.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 #ifndef INCLUDED_SC_INC_PIVOTTABLEDATASOURCE_HXX
11 #define INCLUDED_SC_INC_PIVOTTABLEDATASOURCE_HXX
12 
13 #include <com/sun/star/chart2/data/XDataSource.hpp>
14 #include <com/sun/star/lang/XServiceInfo.hpp>
15 
16 #include <svl/lstner.hxx>
17 #include <cppuhelper/implbase.hxx>
18 #include <vector>
19 
20 namespace com::sun::star::chart2::data { class XLabeledDataSequence; }
21 
22 namespace sc
23 {
24 
25 typedef cppu::WeakImplHelper<css::chart2::data::XDataSource,
26  css::lang::XServiceInfo>
28 
30 {
31 public:
32  explicit PivotTableDataSource(const std::vector<css::uno::Reference<css::chart2::data::XLabeledDataSequence>>& xLabeledSequence);
33  virtual ~PivotTableDataSource() override;
34  virtual void Notify(SfxBroadcaster& rBroadcaster, const SfxHint& rHint) override;
35 
36  // XDataSource
37  virtual css::uno::Sequence<css::uno::Reference<css::chart2::data::XLabeledDataSequence>> SAL_CALL
38  getDataSequences() override;
39 
40  // XServiceInfo
41  virtual OUString SAL_CALL getImplementationName() override;
42 
43  virtual sal_Bool SAL_CALL supportsService(const OUString& rServiceName) override;
44 
45  virtual css::uno::Sequence<OUString> SAL_CALL
46  getSupportedServiceNames() override;
47 
48 private:
49  std::vector<css::uno::Reference<css::chart2::data::XLabeledDataSequence>> m_xLabeledSequence;
50 };
51 
52 }
53 
54 #endif
55 
56 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
PivotTableDataSource(const std::vector< css::uno::Reference< css::chart2::data::XLabeledDataSequence >> &xLabeledSequence)
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual ~PivotTableDataSource() override
virtual OUString SAL_CALL getImplementationName() override
virtual css::uno::Sequence< css::uno::Reference< css::chart2::data::XLabeledDataSequence > > SAL_CALL getDataSequences() override
std::vector< css::uno::Reference< css::chart2::data::XLabeledDataSequence > > m_xLabeledSequence
unsigned char sal_Bool
virtual void Notify(SfxBroadcaster &rBroadcaster, const SfxHint &rHint) override
cppu::WeakImplHelper< css::chart2::data::XDataSource, css::lang::XServiceInfo > PivotTableDataSource_Base
virtual sal_Bool SAL_CALL supportsService(const OUString &rServiceName) override