19#include <com/sun/star/chart2/data/XLabeledDataSequence2.hpp>
20#include <com/sun/star/chart2/data/XDataSource.hpp>
21#include <com/sun/star/chart2/data/XDataSink.hpp>
22#include <com/sun/star/chart2/XChartDocument.hpp>
31 ,
const OUString& rRange
39 if( !(!rRange.isEmpty() && xChartDoc.is() && xSeriesSource.is()) )
49 xSeqProp->setPropertyValue(
"Role",
uno::Any( rRole));
50 xLabeledSeq->setValues( xSeq );
57 aData.getArray()[
aData.getLength() - 1 ] = xLabeledSeq;
58 xSink->setData( aData );
70 chart2::XDataSeries > xSeries ):
72 mxDataSeries(
std::move(xSeries)),
73 mrLSequencesPerIndex(rLSequencesPerIndex)
83 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList)
90 OUString aValue = aIter.toString();
91 switch( aIter.getToken() )
104 if( !aRange.isEmpty() && !aRole.isEmpty() )
108 createAndAddSequenceToSeries(aRole, aRange, xChartDoc,
mxDataSeries);
SchXMLPropertyMappingContext(SvXMLImport &rImport, tSchXMLLSequencesPerIndex &rLSequencesPerIndex, css::uno::Reference< css::chart2::XDataSeries > xSeries)
virtual void SAL_CALL startFastElement(sal_Int32 Element, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override
tSchXMLLSequencesPerIndex & mrLSequencesPerIndex
css::uno::Reference< css::chart2::XDataSeries > mxDataSeries
virtual ~SchXMLPropertyMappingContext() override
This class deliberately does not support XWeak, to improve performance when loading large documents.
SvXMLImport & GetImport()
tools::SvRef< SvBaseLink > xSink
constexpr OUStringLiteral aData
FastAttributeList & castToFastAttributeList(const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
Handling of tokens in XML:
::std::multimap< tSchXMLIndexWithPart, css::uno::Reference< css::chart2::data::XLabeledDataSequence > > tSchXMLLSequencesPerIndex
::std::pair< tSchXMLIndex, SchXMLLabeledSequencePart > tSchXMLIndexWithPart
#define XMLOFF_WARN_UNKNOWN(area, rIter)
#define XML_ELEMENT(prefix, name)