tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / sc / source / ui / unoobj / PivotTableDataSource.cxx
blobe6d0f74768dde558da380c562acb2b12fc33eb6b
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 #include <PivotTableDataSource.hxx>
12 #include <sal/config.h>
14 #include <miscuno.hxx>
16 #include <comphelper/sequence.hxx>
17 #include <vcl/svapp.hxx>
19 using namespace css;
21 namespace sc
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);
47 } // end sc namespace
49 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */