LibreOffice Module xmloff (master)  1
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
SchXMLSeries2Context Class Reference

#include <SchXMLSeries2Context.hxx>

Inheritance diagram for SchXMLSeries2Context:
[legend]
Collaboration diagram for SchXMLSeries2Context:
[legend]

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 startUnknownElement (const OUString &Namespace, const OUString &Name, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override
 
virtual void SAL_CALL endUnknownElement (const OUString &Namespace, const OUString &Name) 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

SchXMLImportHelpermrImportHelper
 
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
 
GlobalSeriesImportInfom_rGlobalSeriesImportInfo
 
SchXMLAxismpAttachedAxis
 
sal_Int32 mnAttachedAxis
 
OUString msAutoStyleName
 
::std::vector< OUString > maDomainAddresses
 
OUString maGlobalChartTypeName
 
OUString maSeriesChartTypeName
 
OUString m_aSeriesRange
 
bool m_bHasDomainContext
 
tSchXMLLSequencesPerIndexmrLSequencesPerIndex
 
tSchXMLLSequencesPerIndex maPostponedSequences
 
bool & mrGlobalChartTypeUsedBySeries
 
bool mbSymbolSizeIsMissingInFile
 
css::awt::Size maChartSize
 
DataRowPointStyle mDataLabel
 

Additional Inherited Members

- Protected Member Functions inherited from SvXMLImportContext
SvXMLImportGetImport ()
 
const SvXMLImportGetImport () const
 

Detailed Description

Definition at line 40 of file SchXMLSeries2Context.hxx.

Constructor & Destructor Documentation

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 256 of file SchXMLSeries2Context.cxx.

SchXMLSeries2Context::~SchXMLSeries2Context ( )
overridevirtual

Definition at line 299 of file SchXMLSeries2Context.cxx.

References maPostponedSequences, and SAL_WARN_IF.

Member Function Documentation

css::uno::Reference< css::xml::sax::XFastContextHandler > SchXMLSeries2Context::createFastChildContext ( sal_Int32  nElement,
const css::uno::Reference< css::xml::sax::XFastAttributeList > &  AttrList 
)
overridevirtual
void SchXMLSeries2Context::endFastElement ( sal_Int32  Element)
overridevirtual
void SchXMLSeries2Context::initSeriesPropertySets ( SeriesDefaultsAndStyles rSeriesDefaultsAndStyles,
const css::uno::Reference< css::frame::XModel > &  xChartModel 
)
static
void SchXMLSeries2Context::setDefaultsToSeries ( SeriesDefaultsAndStyles rSeriesDefaultsAndStyles)
static
void SchXMLSeries2Context::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 SchXMLSeries2Context::setStylesToRegressionCurves ( SeriesDefaultsAndStyles rSeriesDefaultsAndStyles,
const SvXMLStylesContext pStylesCtxt,
const SvXMLStyleContext *&  rpStyle,
OUString const &  rCurrStyleName 
)
static
void SchXMLSeries2Context::setStylesToSeries ( SeriesDefaultsAndStyles rSeriesDefaultsAndStyles,
const SvXMLStylesContext pStylesCtxt,
const SvXMLStyleContext *&  rpStyle,
OUString &  rCurrStyleName,
const SchXMLImportHelper rImportHelper,
const SvXMLImport rImport,
bool  bIsStockChart,
tSchXMLLSequencesPerIndex rInOutLSequencesPerIndex 
)
static
void SchXMLSeries2Context::setStylesToStatisticsObjects ( SeriesDefaultsAndStyles rSeriesDefaultsAndStyles,
const SvXMLStylesContext pStylesCtxt,
const SvXMLStyleContext *&  rpStyle,
OUString &  rCurrStyleName 
)
static
void SchXMLSeries2Context::startFastElement ( sal_Int32  nElement,
const css::uno::Reference< css::xml::sax::XFastAttributeList > &  xAttrList 
)
overridevirtual

Reimplemented from SvXMLImportContext.

Definition at line 304 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(), SvXMLNamespaceMap::GetKeyByAttrValueQName(), SvXMLImport::GetNamespaceMap(), 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.

void SchXMLSeries2Context::switchSeriesLinesOff ( ::std::vector< DataRowPointStyle > &  rSeriesStyleVector)
static

Member Data Documentation

OUString SchXMLSeries2Context::m_aSeriesRange
private

Definition at line 61 of file SchXMLSeries2Context.hxx.

Referenced by endFastElement(), and startFastElement().

bool SchXMLSeries2Context::m_bHasDomainContext
private

Definition at line 62 of file SchXMLSeries2Context.hxx.

Referenced by createFastChildContext(), and endFastElement().

bool SchXMLSeries2Context::m_bStockHasVolume
private

Definition at line 51 of file SchXMLSeries2Context.hxx.

Referenced by startFastElement().

GlobalSeriesImportInfo& SchXMLSeries2Context::m_rGlobalSeriesImportInfo
private

Definition at line 53 of file SchXMLSeries2Context.hxx.

Referenced by endFastElement(), and startFastElement().

css::uno::Reference< css::chart2::XDataSeries > SchXMLSeries2Context::m_xSeries
private
css::awt::Size SchXMLSeries2Context::maChartSize
private

Definition at line 67 of file SchXMLSeries2Context.hxx.

Referenced by createFastChildContext().

::std::vector< OUString > SchXMLSeries2Context::maDomainAddresses
private

Definition at line 58 of file SchXMLSeries2Context.hxx.

Referenced by createFastChildContext(), and endFastElement().

OUString SchXMLSeries2Context::maGlobalChartTypeName
private

Definition at line 59 of file SchXMLSeries2Context.hxx.

Referenced by startFastElement().

tSchXMLLSequencesPerIndex SchXMLSeries2Context::maPostponedSequences
private
OUString SchXMLSeries2Context::maSeriesChartTypeName
private

Definition at line 60 of file SchXMLSeries2Context.hxx.

Referenced by endFastElement(), and startFastElement().

bool SchXMLSeries2Context::mbSymbolSizeIsMissingInFile
private
DataRowPointStyle SchXMLSeries2Context::mDataLabel
private

Definition at line 69 of file SchXMLSeries2Context.hxx.

Referenced by createFastChildContext(), and endFastElement().

sal_Int32 SchXMLSeries2Context::mnAttachedAxis
private

Definition at line 56 of file SchXMLSeries2Context.hxx.

Referenced by endFastElement(), and startFastElement().

sal_Int32 SchXMLSeries2Context::mnDataPointIndex
private

Definition at line 50 of file SchXMLSeries2Context.hxx.

Referenced by createFastChildContext().

sal_Int32 SchXMLSeries2Context::mnSeriesIndex
private

Definition at line 49 of file SchXMLSeries2Context.hxx.

Referenced by endFastElement(), and startFastElement().

SchXMLAxis* SchXMLSeries2Context::mpAttachedAxis
private

Definition at line 55 of file SchXMLSeries2Context.hxx.

Referenced by startFastElement().

::std::vector< SchXMLAxis >& SchXMLSeries2Context::mrAxes
private

Definition at line 45 of file SchXMLSeries2Context.hxx.

Referenced by startFastElement().

bool& SchXMLSeries2Context::mrGlobalChartTypeUsedBySeries
private

Definition at line 65 of file SchXMLSeries2Context.hxx.

Referenced by startFastElement().

SchXMLImportHelper& SchXMLSeries2Context::mrImportHelper
private

Definition at line 43 of file SchXMLSeries2Context.hxx.

Referenced by createFastChildContext(), and startFastElement().

tSchXMLLSequencesPerIndex& SchXMLSeries2Context::mrLSequencesPerIndex
private

Definition at line 63 of file SchXMLSeries2Context.hxx.

Referenced by createFastChildContext(), and endFastElement().

::std::vector< RegressionStyle >& SchXMLSeries2Context::mrRegressionStyleVector
private

Definition at line 47 of file SchXMLSeries2Context.hxx.

Referenced by createFastChildContext().

::std::vector< DataRowPointStyle >& SchXMLSeries2Context::mrStyleVector
private

Definition at line 46 of file SchXMLSeries2Context.hxx.

Referenced by createFastChildContext(), and endFastElement().

OUString SchXMLSeries2Context::msAutoStyleName
private
css::uno::Reference< css::chart2::XChartDocument > SchXMLSeries2Context::mxNewDoc
private

Definition at line 44 of file SchXMLSeries2Context.hxx.

Referenced by endFastElement(), and startFastElement().


The documentation for this class was generated from the following files: