LibreOffice Module xmloff (master) 1
|
#include <SchXMLSeries2Context.hxx>
Public Member Functions | |
SchXMLSeries2Context (SchXMLImportHelper &rImpHelper, SvXMLImport &rImport, const css::uno::Reference< css::chart2::XChartDocument > &xNewDoc, std::vector< SchXMLAxis > &rAxes, ::std::vector< DataRowPointStyle > &rStyleVector, ::std::vector< RegressionStyle > &rRegressionStyleVector, sal_Int32 nSeriesIndex, bool bStockHasVolume, GlobalSeriesImportInfo &rGlobalSeriesImportInfo, const OUString &aGlobalChartTypeName, tSchXMLLSequencesPerIndex &rLSequencesPerIndex, bool &rGlobalChartTypeUsedBySeries, const css::awt::Size &rChartSize) | |
virtual | ~SchXMLSeries2Context () override |
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL | createFastChildContext (sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &AttrList) override |
virtual void SAL_CALL | startFastElement (sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override |
virtual void SAL_CALL | endFastElement (sal_Int32 nElement) override |
endFastElement is called before a context will be destructed, but after an elements context has been parsed. More... | |
Public Member Functions inherited from SvXMLImportContext | |
SvXMLImportContext (SvXMLImport &rImport) | |
A contexts constructor does anything that is required if an element starts. More... | |
virtual | ~SvXMLImportContext () |
A contexts destructor does anything that is required if an element ends. More... | |
virtual void SAL_CALL | startFastElement (sal_Int32 Element, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override |
virtual void SAL_CALL | startUnknownElement (const OUString &Namespace, const OUString &Name, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override |
virtual void SAL_CALL | endFastElement (sal_Int32 Element) override |
endFastElement is called before a context will be destructed, but after an elements context has been parsed. More... | |
virtual void SAL_CALL | endUnknownElement (const OUString &Namespace, const OUString &Name) override |
virtual css::uno::Reference< XFastContextHandler > SAL_CALL | createFastChildContext (sal_Int32 Element, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override |
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL | createUnknownChildContext (const OUString &Namespace, const OUString &Name, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override |
virtual void SAL_CALL | characters (const OUString &aChars) override |
This method is called for all characters that are contained in the current element. More... | |
virtual css::uno::Any SAL_CALL | queryInterface (const css::uno::Type &aType) final override |
virtual void SAL_CALL | acquire () noexcept final override |
virtual void SAL_CALL | release () noexcept final override |
virtual css::uno::Sequence< css::uno::Type > SAL_CALL | getTypes () final override |
virtual css::uno::Sequence< sal_Int8 > SAL_CALL | getImplementationId () final override |
Static Public Member Functions | |
static void | initSeriesPropertySets (SeriesDefaultsAndStyles &rSeriesDefaultsAndStyles, const css::uno::Reference< css::frame::XModel > &xChartModel) |
static void | setDefaultsToSeries (SeriesDefaultsAndStyles &rSeriesDefaultsAndStyles) |
static void | setStylesToSeries (SeriesDefaultsAndStyles &rSeriesDefaultsAndStyles, const SvXMLStylesContext *pStylesCtxt, const SvXMLStyleContext *&rpStyle, OUString &rCurrStyleName, const SchXMLImportHelper &rImportHelper, const SvXMLImport &rImport, bool bIsStockChart, tSchXMLLSequencesPerIndex &rInOutLSequencesPerIndex) |
static void | setStylesToStatisticsObjects (SeriesDefaultsAndStyles &rSeriesDefaultsAndStyles, const SvXMLStylesContext *pStylesCtxt, const SvXMLStyleContext *&rpStyle, OUString &rCurrStyleName) |
static void | setStylesToRegressionCurves (SeriesDefaultsAndStyles &rSeriesDefaultsAndStyles, const SvXMLStylesContext *pStylesCtxt, const SvXMLStyleContext *&rpStyle, OUString const &rCurrStyleName) |
static void | setStylesToDataPoints (SeriesDefaultsAndStyles &rSeriesDefaultsAndStyles, const SvXMLStylesContext *pStylesCtxt, const SvXMLStyleContext *&rpStyle, OUString &rCurrStyleName, const SchXMLImportHelper &rImportHelper, const SvXMLImport &rImport, bool bIsStockChart, bool bIsDonutChart, bool bSwitchOffLinesForScatter) |
static void | switchSeriesLinesOff (::std::vector< DataRowPointStyle > &rSeriesStyleVector) |
Private Attributes | |
SchXMLImportHelper & | mrImportHelper |
css::uno::Reference< css::chart2::XChartDocument > | mxNewDoc |
::std::vector< SchXMLAxis > & | mrAxes |
::std::vector< DataRowPointStyle > & | mrStyleVector |
::std::vector< RegressionStyle > & | mrRegressionStyleVector |
css::uno::Reference< css::chart2::XDataSeries > | m_xSeries |
sal_Int32 | mnSeriesIndex |
sal_Int32 | mnDataPointIndex |
bool | m_bStockHasVolume |
GlobalSeriesImportInfo & | m_rGlobalSeriesImportInfo |
SchXMLAxis * | mpAttachedAxis |
sal_Int32 | mnAttachedAxis |
OUString | msAutoStyleName |
::std::vector< OUString > | maDomainAddresses |
OUString | maGlobalChartTypeName |
OUString | maSeriesChartTypeName |
OUString | m_aSeriesRange |
bool | m_bHasDomainContext |
tSchXMLLSequencesPerIndex & | mrLSequencesPerIndex |
tSchXMLLSequencesPerIndex | maPostponedSequences |
bool & | mrGlobalChartTypeUsedBySeries |
bool | mbSymbolSizeIsMissingInFile |
css::awt::Size | maChartSize |
DataRowPointStyle | mDataLabel |
Additional Inherited Members | |
Protected Member Functions inherited from SvXMLImportContext | |
SvXMLImport & | GetImport () |
const SvXMLImport & | GetImport () const |
Definition at line 40 of file SchXMLSeries2Context.hxx.
SchXMLSeries2Context::SchXMLSeries2Context | ( | SchXMLImportHelper & | rImpHelper, |
SvXMLImport & | rImport, | ||
const css::uno::Reference< css::chart2::XChartDocument > & | xNewDoc, | ||
std::vector< SchXMLAxis > & | rAxes, | ||
::std::vector< DataRowPointStyle > & | rStyleVector, | ||
::std::vector< RegressionStyle > & | rRegressionStyleVector, | ||
sal_Int32 | nSeriesIndex, | ||
bool | bStockHasVolume, | ||
GlobalSeriesImportInfo & | rGlobalSeriesImportInfo, | ||
const OUString & | aGlobalChartTypeName, | ||
tSchXMLLSequencesPerIndex & | rLSequencesPerIndex, | ||
bool & | rGlobalChartTypeUsedBySeries, | ||
const css::awt::Size & | rChartSize | ||
) |
Definition at line 258 of file SchXMLSeries2Context.cxx.
References maGlobalChartTypeName, and maSeriesChartTypeName.
|
overridevirtual |
Definition at line 301 of file SchXMLSeries2Context.cxx.
References maPostponedSequences, and SAL_WARN_IF.
|
overridevirtual |
Reimplemented from SvXMLImportContext.
Definition at line 680 of file SchXMLSeries2Context.cxx.
References CHART, SchXMLStatisticsObjectContext::CONTEXT_TYPE_ERROR_INDICATOR, SchXMLStatisticsObjectContext::CONTEXT_TYPE_MEAN_VALUE_LINE, SvXMLImportContext::GetImport(), m_bHasDomainContext, m_xSeries, maChartSize, maDomainAddresses, mbSymbolSizeIsMissingInFile, DataRowPointStyle::mCustomLabels, mDataLabel, mnDataPointIndex, mrImportHelper, mrLSequencesPerIndex, mrRegressionStyleVector, mrStyleVector, msAutoStyleName, xmloff::token::XML_DATA_LABEL, xmloff::token::XML_DATA_POINT, xmloff::token::XML_DOMAIN, XML_ELEMENT, xmloff::token::XML_ERROR_INDICATOR, xmloff::token::XML_MEAN_VALUE, xmloff::token::XML_PROPERTY_MAPPING, xmloff::token::XML_REGRESSION_CURVE, and XMLOFF_WARN_UNKNOWN_ELEMENT.
|
overridevirtual |
endFastElement is called before a context will be destructed, but after an elements context has been parsed.
It may be used for actions that require virtual methods. The default is to do nothing.
Reimplemented from SvXMLImportContext.
Definition at line 544 of file SchXMLSeries2Context.cxx.
References GlobalSeriesImportInfo::aFirstFirstDomainAddress, GlobalSeriesImportInfo::aFirstSecondDomainAddress, DataRowPointStyle::DATA_SERIES, SchXMLImportHelper::DeleteDataSeries(), SvXMLImportContext::GetImport(), SchXMLTools::isDocumentGeneratedWithOpenOfficeOlderThan2_3(), m_aSeriesRange, m_bHasDomainContext, m_rGlobalSeriesImportInfo, m_xSeries, DataRowPointStyle::m_xSeries, maDomainAddresses, maPostponedSequences, maSeriesChartTypeName, DataRowPointStyle::mbSymbolSizeForSeriesIsMissingInFile, mbSymbolSizeIsMissingInFile, mDataLabel, mnAttachedAxis, DataRowPointStyle::mnAttachedAxis, mnSeriesIndex, mrLSequencesPerIndex, mrStyleVector, msAutoStyleName, DataRowPointStyle::msStyleName, DataRowPointStyle::msStyleNameOfParent, mxNewDoc, GlobalSeriesImportInfo::nCurrentDataIndex, GlobalSeriesImportInfo::nFirstFirstDomainIndex, GlobalSeriesImportInfo::nFirstSecondDomainIndex, and SCH_XML_PART_VALUES.
|
static |
Definition at line 744 of file SchXMLSeries2Context.cxx.
References SchXMLSeriesHelper::createOldAPISeriesPropertySet(), DataRowPointStyle::DATA_SERIES, and SeriesDefaultsAndStyles::maSeriesStyleVector.
Referenced by SchXMLChartContext::endFastElement().
|
static |
Definition at line 772 of file SchXMLSeries2Context.cxx.
References DataRowPointStyle::DATA_SERIES, SeriesDefaultsAndStyles::maConstantErrorHighDefault, SeriesDefaultsAndStyles::maConstantErrorLowDefault, SeriesDefaultsAndStyles::maDataCaptionDefault, SeriesDefaultsAndStyles::maErrorCategoryDefault, SeriesDefaultsAndStyles::maErrorIndicatorDefault, SeriesDefaultsAndStyles::maErrorMarginDefault, SeriesDefaultsAndStyles::maMeanValueDefault, SeriesDefaultsAndStyles::maPercentageErrorDefault, SeriesDefaultsAndStyles::maRegressionCurvesDefault, SeriesDefaultsAndStyles::maSeriesStyleVector, and SeriesDefaultsAndStyles::maSymbolTypeDefault.
Referenced by SchXMLChartContext::endFastElement().
|
static |
Definition at line 1095 of file SchXMLSeries2Context.cxx.
References aApiToLabelFooPairs, aProperties, SchXMLSeriesHelper::createOldAPIDataPointPropertySet(), DataRowPointStyle::DATA_POINT, XMLPropStyleContext::FillPropertySet(), SvXMLStylesContext::FindStyleChildContext(), SchXMLImportHelper::GetChartDocument(), SchXMLImportHelper::GetChartFamilyID(), comphelper::getProcessComponentContext(), SchXMLTools::getPropertyFromContext(), uno::Any::hasValue(), i, SchXMLSeriesHelper::isCandleStickSeries(), XMLPropStyleContext::isEmptyDataStyleName(), SeriesDefaultsAndStyles::maSeriesStyleVector, and TOOLS_INFO_EXCEPTION.
Referenced by SchXMLChartContext::endFastElement().
|
static |
Definition at line 960 of file SchXMLSeries2Context.cxx.
References XMLPropStyleContext::FillPropertySet(), comphelper::getProcessServiceFactory(), SchXMLTools::getPropertyFromContext(), uno::Any::hasValue(), SeriesDefaultsAndStyles::maRegressionStyleVector, TOOLS_INFO_EXCEPTION, and u.
Referenced by SchXMLChartContext::endFastElement().
|
static |
Definition at line 839 of file SchXMLSeries2Context.cxx.
References aApiToLabelFooPairs, DataRowPointStyle::DATA_SERIES, XMLPropStyleContext::FillPropertySet(), SvXMLStylesContext::FindStyleChildContext(), SchXMLImportHelper::GetChartDocument(), SchXMLImportHelper::GetChartFamilyID(), SchXMLTools::getPropertyFromContext(), uno::Any::hasValue(), SchXMLSeriesHelper::isCandleStickSeries(), SeriesDefaultsAndStyles::maSeriesStyleVector, TOOLS_INFO_EXCEPTION, and u.
Referenced by SchXMLChartContext::endFastElement().
|
static |
Definition at line 1026 of file SchXMLSeries2Context.cxx.
References DataRowPointStyle::ERROR_INDICATOR, XMLPropStyleContext::FillPropertySet(), SvXMLStylesContext::FindStyleChildContext(), SchXMLImportHelper::GetChartFamilyID(), SeriesDefaultsAndStyles::maSeriesStyleVector, DataRowPointStyle::MEAN_VALUE, and TOOLS_INFO_EXCEPTION.
Referenced by SchXMLChartContext::endFastElement().
|
overridevirtual |
Reimplemented from SvXMLImportContext.
Definition at line 306 of file SchXMLSeries2Context.cxx.
References aName, aSeq, sax_fastparser::castToFastAttributeList(), CHART, SchXMLTools::CreateDataSequence(), SchXMLTools::CreateDataSequenceWithoutConvert(), DBG_UNHANDLED_EXCEPTION, SvXMLStylesContext::FindStyleChildContext(), SchXMLImportHelper::GetAutoStylesContext(), SchXMLImportHelper::GetChartFamilyID(), SchXMLTools::GetChartTypeByClassName(), SvXMLImportContext::GetImport(), SchXMLImportHelper::GetNewDataSeries(), SchXMLTools::GetNewLabeledDataSequence(), SchXMLTools::getPropertyFromContext(), uno::Any::hasValue(), m_aSeriesRange, m_bStockHasVolume, m_rGlobalSeriesImportInfo, m_xSeries, maGlobalChartTypeName, maPostponedSequences, maSeriesChartTypeName, mbSymbolSizeIsMissingInFile, mnAttachedAxis, mnSeriesIndex, mpAttachedAxis, mrAxes, mrGlobalChartTypeUsedBySeries, mrImportHelper, msAutoStyleName, mxNewDoc, SchXMLAxis::nAxisIndex, GlobalSeriesImportInfo::nCurrentDataIndex, GlobalSeriesImportInfo::rbAllRangeAddressesAvailable, SAL_WARN_IF, SCH_XML_AXIS_Y, SCH_XML_PART_LABEL, SCH_XML_PART_VALUES, u, xmloff::token::XML_ATTACHED_AXIS, xmloff::token::XML_CLASS, XML_ELEMENT, xmloff::token::XML_HIDE_LEGEND, xmloff::token::XML_LABEL_CELL_ADDRESS, xmloff::token::XML_LABEL_STRING, XML_NAMESPACE_CHART, xmloff::token::XML_STYLE_NAME, xmloff::token::XML_VALUES_CELL_RANGE_ADDRESS, XMLOFF_WARN_UNKNOWN, and xSink.
|
static |
Definition at line 1285 of file SchXMLSeries2Context.cxx.
References DataRowPointStyle::DATA_SERIES.
Referenced by SchXMLChartContext::endFastElement().
|
private |
Definition at line 61 of file SchXMLSeries2Context.hxx.
Referenced by endFastElement(), and startFastElement().
|
private |
Definition at line 62 of file SchXMLSeries2Context.hxx.
Referenced by createFastChildContext(), and endFastElement().
|
private |
Definition at line 51 of file SchXMLSeries2Context.hxx.
Referenced by startFastElement().
|
private |
Definition at line 53 of file SchXMLSeries2Context.hxx.
Referenced by endFastElement(), and startFastElement().
|
private |
Definition at line 48 of file SchXMLSeries2Context.hxx.
Referenced by createFastChildContext(), endFastElement(), and startFastElement().
|
private |
Definition at line 67 of file SchXMLSeries2Context.hxx.
Referenced by createFastChildContext().
|
private |
Definition at line 58 of file SchXMLSeries2Context.hxx.
Referenced by createFastChildContext(), and endFastElement().
|
private |
Definition at line 59 of file SchXMLSeries2Context.hxx.
Referenced by SchXMLSeries2Context(), and startFastElement().
|
private |
Definition at line 64 of file SchXMLSeries2Context.hxx.
Referenced by endFastElement(), startFastElement(), and ~SchXMLSeries2Context().
|
private |
Definition at line 60 of file SchXMLSeries2Context.hxx.
Referenced by endFastElement(), SchXMLSeries2Context(), and startFastElement().
|
private |
Definition at line 66 of file SchXMLSeries2Context.hxx.
Referenced by createFastChildContext(), endFastElement(), and startFastElement().
|
private |
Definition at line 69 of file SchXMLSeries2Context.hxx.
Referenced by createFastChildContext(), and endFastElement().
|
private |
Definition at line 56 of file SchXMLSeries2Context.hxx.
Referenced by endFastElement(), and startFastElement().
|
private |
Definition at line 50 of file SchXMLSeries2Context.hxx.
Referenced by createFastChildContext().
|
private |
Definition at line 49 of file SchXMLSeries2Context.hxx.
Referenced by endFastElement(), and startFastElement().
|
private |
Definition at line 55 of file SchXMLSeries2Context.hxx.
Referenced by startFastElement().
|
private |
Definition at line 45 of file SchXMLSeries2Context.hxx.
Referenced by startFastElement().
|
private |
Definition at line 65 of file SchXMLSeries2Context.hxx.
Referenced by startFastElement().
|
private |
Definition at line 43 of file SchXMLSeries2Context.hxx.
Referenced by createFastChildContext(), and startFastElement().
|
private |
Definition at line 63 of file SchXMLSeries2Context.hxx.
Referenced by createFastChildContext(), and endFastElement().
|
private |
Definition at line 47 of file SchXMLSeries2Context.hxx.
Referenced by createFastChildContext().
|
private |
Definition at line 46 of file SchXMLSeries2Context.hxx.
Referenced by createFastChildContext(), and endFastElement().
|
private |
Definition at line 57 of file SchXMLSeries2Context.hxx.
Referenced by createFastChildContext(), endFastElement(), and startFastElement().
|
private |
Definition at line 44 of file SchXMLSeries2Context.hxx.
Referenced by endFastElement(), and startFastElement().