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 OUString &rLocalName, 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 void StartElement (const css::uno::Reference< css::xml::sax::XAttributeList > &xAttrList) override
 StartElement is called after a context has been constructed and before an elements context is parsed. More...
 
virtual SvXMLImportContextRef CreateChildContext (sal_uInt16 nPrefix, const OUString &rLocalName, const css::uno::Reference< css::xml::sax::XAttributeList > &xAttrList) override
 Create a children element context. More...
 
virtual void EndElement () override
 EndElement is called before a context will be destructed, but after an elements context has been parsed. More...
 
- Public Member Functions inherited from SvXMLImportContext
bool IsPrefixFilledIn () const
 
sal_uInt16 GetPrefix () const
 
const OUString & GetLocalName () const
 
 SvXMLImportContext (SvXMLImport &rImport, sal_uInt16 nPrfx, const OUString &rLName)
 A contexts constructor does anything that is required if an element starts. More...
 
 SvXMLImportContext (SvXMLImport &rImport)
 
virtual ~SvXMLImportContext ()
 A contexts destructor does anything that is required if an element ends. More...
 
virtual void Characters (const OUString &rChars)
 This method is called for all characters that are contained in the current element. 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
 
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
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &aType) final override
 
virtual void SAL_CALL acquire () final override throw ()
 
virtual void SAL_CALL release () final override throw ()
 
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 41 of file SchXMLSeries2Context.hxx.

Constructor & Destructor Documentation

SchXMLSeries2Context::SchXMLSeries2Context ( SchXMLImportHelper rImpHelper,
SvXMLImport rImport,
const OUString &  rLocalName,
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 263 of file SchXMLSeries2Context.cxx.

SchXMLSeries2Context::~SchXMLSeries2Context ( )
overridevirtual

Definition at line 306 of file SchXMLSeries2Context.cxx.

References maPostponedSequences, and SAL_WARN_IF.

Member Function Documentation

SvXMLImportContextRef SchXMLSeries2Context::CreateChildContext ( sal_uInt16  nPrefix,
const OUString &  rLocalName,
const css::uno::Reference< css::xml::sax::XAttributeList > &  xAttrList 
)
overridevirtual
void SchXMLSeries2Context::EndElement ( )
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::StartElement ( const css::uno::Reference< css::xml::sax::XAttributeList > &  xAttrList)
overridevirtual

StartElement is called after a context has been constructed and before an elements context is parsed.

It may be used for actions that require virtual methods. The default is to do nothing.

Reimplemented from SvXMLImportContext.

Definition at line 311 of file SchXMLSeries2Context.cxx.

References aName, aSeq, SchXMLTools::CreateDataSequence(), SchXMLTools::CreateDataSequenceWithoutConvert(), DBG_UNHANDLED_EXCEPTION, SvXMLStylesContext::FindStyleChildContext(), SvXMLTokenMap::Get(), SchXMLImportHelper::GetAutoStylesContext(), SchXMLImportHelper::GetChartFamilyID(), SchXMLTools::GetChartTypeByClassName(), SvXMLImportContext::GetImport(), SvXMLNamespaceMap::GetKeyByAttrName(), SvXMLNamespaceMap::GetKeyByAttrValueQName(), SvXMLImport::GetNamespaceMap(), SchXMLImportHelper::GetNewDataSeries(), SchXMLTools::GetNewLabeledDataSequence(), SchXMLTools::getPropertyFromContext(), SchXMLImportHelper::GetSeriesAttrTokenMap(), uno::Any::hasValue(), i, 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, XML_NAMESPACE_CHART, XML_TOK_SERIES_ATTACHED_AXIS, XML_TOK_SERIES_CELL_RANGE, XML_TOK_SERIES_CHART_CLASS, XML_TOK_SERIES_HIDE_LEGEND, XML_TOK_SERIES_LABEL_ADDRESS, XML_TOK_SERIES_LABEL_STRING, XML_TOK_SERIES_STYLE_NAME, and xSink.

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

Definition at line 1273 of file SchXMLSeries2Context.cxx.

References DataRowPointStyle::DATA_SERIES.

Referenced by SchXMLChartContext::EndElement().

Member Data Documentation

OUString SchXMLSeries2Context::m_aSeriesRange
private

Definition at line 62 of file SchXMLSeries2Context.hxx.

Referenced by EndElement(), and StartElement().

bool SchXMLSeries2Context::m_bHasDomainContext
private

Definition at line 63 of file SchXMLSeries2Context.hxx.

Referenced by CreateChildContext(), and EndElement().

bool SchXMLSeries2Context::m_bStockHasVolume
private

Definition at line 52 of file SchXMLSeries2Context.hxx.

Referenced by StartElement().

GlobalSeriesImportInfo& SchXMLSeries2Context::m_rGlobalSeriesImportInfo
private

Definition at line 54 of file SchXMLSeries2Context.hxx.

Referenced by EndElement(), and StartElement().

css::uno::Reference< css::chart2::XDataSeries > SchXMLSeries2Context::m_xSeries
private

Definition at line 49 of file SchXMLSeries2Context.hxx.

Referenced by CreateChildContext(), EndElement(), and StartElement().

css::awt::Size SchXMLSeries2Context::maChartSize
private

Definition at line 68 of file SchXMLSeries2Context.hxx.

Referenced by CreateChildContext().

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

Definition at line 59 of file SchXMLSeries2Context.hxx.

Referenced by CreateChildContext(), and EndElement().

OUString SchXMLSeries2Context::maGlobalChartTypeName
private

Definition at line 60 of file SchXMLSeries2Context.hxx.

Referenced by StartElement().

tSchXMLLSequencesPerIndex SchXMLSeries2Context::maPostponedSequences
private

Definition at line 65 of file SchXMLSeries2Context.hxx.

Referenced by EndElement(), StartElement(), and ~SchXMLSeries2Context().

OUString SchXMLSeries2Context::maSeriesChartTypeName
private

Definition at line 61 of file SchXMLSeries2Context.hxx.

Referenced by EndElement(), and StartElement().

bool SchXMLSeries2Context::mbSymbolSizeIsMissingInFile
private

Definition at line 67 of file SchXMLSeries2Context.hxx.

Referenced by CreateChildContext(), EndElement(), and StartElement().

DataRowPointStyle SchXMLSeries2Context::mDataLabel
private

Definition at line 70 of file SchXMLSeries2Context.hxx.

Referenced by CreateChildContext(), and EndElement().

sal_Int32 SchXMLSeries2Context::mnAttachedAxis
private

Definition at line 57 of file SchXMLSeries2Context.hxx.

Referenced by EndElement(), and StartElement().

sal_Int32 SchXMLSeries2Context::mnDataPointIndex
private

Definition at line 51 of file SchXMLSeries2Context.hxx.

Referenced by CreateChildContext().

sal_Int32 SchXMLSeries2Context::mnSeriesIndex
private

Definition at line 50 of file SchXMLSeries2Context.hxx.

Referenced by EndElement(), and StartElement().

SchXMLAxis* SchXMLSeries2Context::mpAttachedAxis
private

Definition at line 56 of file SchXMLSeries2Context.hxx.

Referenced by StartElement().

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

Definition at line 46 of file SchXMLSeries2Context.hxx.

Referenced by StartElement().

bool& SchXMLSeries2Context::mrGlobalChartTypeUsedBySeries
private

Definition at line 66 of file SchXMLSeries2Context.hxx.

Referenced by StartElement().

SchXMLImportHelper& SchXMLSeries2Context::mrImportHelper
private

Definition at line 44 of file SchXMLSeries2Context.hxx.

Referenced by CreateChildContext(), and StartElement().

tSchXMLLSequencesPerIndex& SchXMLSeries2Context::mrLSequencesPerIndex
private

Definition at line 64 of file SchXMLSeries2Context.hxx.

Referenced by CreateChildContext(), and EndElement().

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

Definition at line 48 of file SchXMLSeries2Context.hxx.

Referenced by CreateChildContext().

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

Definition at line 47 of file SchXMLSeries2Context.hxx.

Referenced by CreateChildContext(), and EndElement().

OUString SchXMLSeries2Context::msAutoStyleName
private

Definition at line 58 of file SchXMLSeries2Context.hxx.

Referenced by CreateChildContext(), EndElement(), and StartElement().

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

Definition at line 45 of file SchXMLSeries2Context.hxx.

Referenced by EndElement(), and StartElement().


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