22#include <osl/diagnose.h>
29using ::com::sun::star::uno::Reference;
30using ::com::sun::star::uno::Sequence;
37 sal_Int32 nNumberOfLines ) :
38 m_nNumberOfLines( nNumberOfLines )
53 OSL_ASSERT( aResult.
Series.size() == 1 );
54 if( aResult.
Series.size() == 1 )
56 sal_Int32 nNumberOfSeries = aResult.
Series[0].size();
64 std::vector< rtl::Reference< DataSeries > > & rColumnDataSeries = aResult.
Series[0];
65 std::vector< rtl::Reference< DataSeries > > & rLineDataSeries = aResult.
Series[1];
66 rLineDataSeries.resize( nNumOfLines );
67 std::copy( std::cbegin(rColumnDataSeries) + nNumberOfSeries - nNumOfLines,
68 std::cbegin(rColumnDataSeries) + nNumberOfSeries,
69 rLineDataSeries.begin() );
70 rColumnDataSeries.resize( nNumberOfSeries - nNumOfLines );
sal_Int32 m_nNumberOfLines
ColumnLineDataInterpreter(sal_Int32 nNumberOfLines)
virtual InterpretedData interpretDataSource(const css::uno::Reference< css::chart2::data::XDataSource > &xSource, const css::uno::Sequence< css::beans::PropertyValue > &aArguments, const std::vector< rtl::Reference<::chart::DataSeries > > &aSeriesToReUse) override
virtual ~ColumnLineDataInterpreter() override
virtual InterpretedData interpretDataSource(const css::uno::Reference< css::chart2::data::XDataSource > &xSource, const css::uno::Sequence< css::beans::PropertyValue > &aArguments, const std::vector< rtl::Reference< ::chart::DataSeries > > &aSeriesToReUse)
Interprets the given data.
Sequence< PropertyValue > aArguments
offers tooling to interpret different data sources in a structural and chart-type-dependent way.
std::vector< std::vector< rtl::Reference<::chart::DataSeries > > > Series