LibreOffice Module sc (master)  1
PivotTableDataSource.cxx
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 #include <PivotTableDataSource.hxx>
11 
12 #include <sal/config.h>
13 
14 #include <miscuno.hxx>
15 
16 #include <comphelper/sequence.hxx>
17 #include <vcl/svapp.hxx>
18 
19 using namespace css;
20 
21 namespace sc
22 {
23 
24 SC_SIMPLE_SERVICE_INFO(PivotTableDataSource, "PivotTableDataSource", "com.sun.star.chart2.data.DataSource")
25 
26 PivotTableDataSource::PivotTableDataSource(const std::vector<css::uno::Reference<css::chart2::data::XLabeledDataSequence>>& xLabeledSequence)
27  : m_xLabeledSequence(xLabeledSequence)
28 {
29 }
30 
31 PivotTableDataSource::~PivotTableDataSource()
32 {
33 }
34 
35 void PivotTableDataSource::Notify(SfxBroadcaster& /*rBroadcaster*/, const SfxHint& /*rHint*/)
36 {
37 }
38 
39 uno::Sequence<uno::Reference<chart2::data::XLabeledDataSequence>> SAL_CALL
40  PivotTableDataSource::getDataSequences()
41 {
42  SolarMutexGuard aGuard;
43 
44  return comphelper::containerToSequence(m_xLabeledSequence);
45 }
46 
47 } // end sc namespace
48 
49 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
void Notify(ScModelObj &rModelObj, const ScRangeList &rChangeRanges, const OUString &rType=OUString("cell-change"), const css::uno::Sequence< css::beans::PropertyValue > &rProperties=css::uno::Sequence< css::beans::PropertyValue >())
Definition: docsh.hxx:477
#define SC_SIMPLE_SERVICE_INFO(ClassName, ClassNameAscii, ServiceAscii)
Definition: miscuno.hxx:64
css::uno::Sequence< DstElementType > containerToSequence(const SrcType &i_Container)