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#pragma once
11
12#include <com/sun/star/chart2/data/XDataSource.hpp>
13#include <com/sun/star/lang/XServiceInfo.hpp>
14
15#include <svl/lstner.hxx>
17#include <vector>
18
19namespace com::sun::star::chart2::data { class XLabeledDataSequence; }
20
21namespace sc
22{
23
24typedef cppu::WeakImplHelper<css::chart2::data::XDataSource,
25 css::lang::XServiceInfo>
27
29{
30public:
31 explicit PivotTableDataSource(std::vector<css::uno::Reference<css::chart2::data::XLabeledDataSequence>>&& xLabeledSequence);
32 virtual ~PivotTableDataSource() override;
33 virtual void Notify(SfxBroadcaster& rBroadcaster, const SfxHint& rHint) override;
34
35 // XDataSource
36 virtual css::uno::Sequence<css::uno::Reference<css::chart2::data::XLabeledDataSequence>> SAL_CALL
37 getDataSequences() override;
38
39 // XServiceInfo
40 virtual OUString SAL_CALL getImplementationName() override;
41
42 virtual sal_Bool SAL_CALL supportsService(const OUString& rServiceName) override;
43
44 virtual css::uno::Sequence<OUString> SAL_CALL
46
47private:
48 std::vector<css::uno::Reference<css::chart2::data::XLabeledDataSequence>> m_xLabeledSequence;
49};
50
51}
52
53/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual void Notify(SfxBroadcaster &rBroadcaster, const SfxHint &rHint) override
virtual ~PivotTableDataSource() override
std::vector< css::uno::Reference< css::chart2::data::XLabeledDataSequence > > m_xLabeledSequence
virtual OUString SAL_CALL getImplementationName() override
PivotTableDataSource(std::vector< css::uno::Reference< css::chart2::data::XLabeledDataSequence > > &&xLabeledSequence)
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual css::uno::Sequence< css::uno::Reference< css::chart2::data::XLabeledDataSequence > > SAL_CALL getDataSequences() override
virtual sal_Bool SAL_CALL supportsService(const OUString &rServiceName) override
CAUTION! The following defines must be in the same namespace as the respective type.
Definition: broadcast.cxx:15
cppu::WeakImplHelper< css::chart2::data::XDataSource, css::lang::XServiceInfo > PivotTableDataSource_Base
unsigned char sal_Bool