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/.
10 #include <PivotTableDataSource.hxx>
12 #include <sal/config.h>
14 #include <miscuno.hxx>
16 #include <comphelper/sequence.hxx>
17 #include <vcl/svapp.hxx>
24 SC_SIMPLE_SERVICE_INFO(PivotTableDataSource
, u
"PivotTableDataSource"_ustr
, u
"com.sun.star.chart2.data.DataSource"_ustr
)
26 PivotTableDataSource::PivotTableDataSource(std::vector
<css::uno::Reference
<css::chart2::data::XLabeledDataSequence
>>&& xLabeledSequence
)
27 : m_xLabeledSequence(std::move(xLabeledSequence
))
31 PivotTableDataSource::~PivotTableDataSource()
35 void PivotTableDataSource::Notify(SfxBroadcaster
& /*rBroadcaster*/, const SfxHint
& /*rHint*/)
39 uno::Sequence
<uno::Reference
<chart2::data::XLabeledDataSequence
>> SAL_CALL
40 PivotTableDataSource::getDataSequences()
42 SolarMutexGuard aGuard
;
44 return comphelper::containerToSequence(m_xLabeledSequence
);
49 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */