1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
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 <sal/config.h>
12 #include "HistogramDataInterpreter.hxx"
13 #include <HistogramDataSequence.hxx>
14 #include "HistogramCalculator.hxx"
15 #include <LabeledDataSequence.hxx>
17 #include <DataSeries.hxx>
18 #include <DataSeriesHelper.hxx>
19 #include <CommonConverters.hxx>
20 #include <com/sun/star/util/XCloneable.hpp>
21 #include <comphelper/diagnose_ex.hxx>
22 #include <sal/log.hxx>
28 InterpretedData
HistogramDataInterpreter::interpretDataSource(
29 const uno::Reference
<chart2::data::XDataSource
>& xSource
,
30 const uno::Sequence
<beans::PropertyValue
>& aArguments
,
31 const std::vector
<rtl::Reference
<DataSeries
>>& aSeriesToReUse
)
34 return InterpretedData();
36 InterpretedData
aInterpretedData(
37 DataInterpreter::interpretDataSource(xSource
, aArguments
, aSeriesToReUse
));
39 std::vector
<uno::Reference
<chart2::data::XLabeledDataSequence
>> aData
40 = DataInterpreter::getDataSequences(xSource
);
42 if (aData
.empty() || !aData
[0].is())
43 return InterpretedData();
45 SetRole(aData
[0]->getValues(), u
"values-y-original"_ustr
);
47 return aInterpretedData
;
51 HistogramDataInterpreter::reinterpretDataSeries(const InterpretedData
& rInterpretedData
)
53 return rInterpretedData
;
56 bool HistogramDataInterpreter::isDataCompatible(const InterpretedData
& /*aInterpretedData*/)
63 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */