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

#include <SchXMLChartContext.hxx>

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

Public Member Functions

 SchXMLChartContext (SchXMLImportHelper &rImpHelper, SvXMLImport &rImport, const OUString &rLocalName)
 
virtual ~SchXMLChartContext () 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 void EndElement () override
 EndElement is called before a context will be destructed, but after an elements context has been 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...
 
- 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
 

Private Member Functions

void InitChart (const OUString &rChartTypeServiceName)
 This method bundles some settings to the chart model and executes them with a locked controller. More...
 
void MergeSeriesForStockChart ()
 

Private Attributes

SchXMLTable maTable
 
SchXMLImportHelpermrImportHelper
 
OUString maMainTitle
 
OUString maSubTitle
 
OUString m_aXLinkHRefAttributeToIndicateDataProvider
 
bool m_bHasRangeAtPlotArea
 
bool m_bHasTableElement
 
bool mbAllRangeAddressesAvailable
 
bool mbColHasLabels
 
bool mbRowHasLabels
 
css::chart::ChartDataRowSource meDataRowSource
 
bool mbIsStockChart
 
OUString msCategoriesAddress
 
OUString msChartAddress
 
OUString msDataPilotSource
 
SeriesDefaultsAndStyles maSeriesDefaultsAndStyles
 
tSchXMLLSequencesPerIndex maLSequencesPerIndex
 
css::uno::Reference< css::drawing::XShapes > mxDrawPage
 
OUString msColTrans
 
OUString msRowTrans
 
OUString maChartTypeServiceName
 
css::awt::Size maChartSize
 

Additional Inherited Members

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

Detailed Description

Definition at line 75 of file SchXMLChartContext.hxx.

Constructor & Destructor Documentation

SchXMLChartContext::SchXMLChartContext ( SchXMLImportHelper rImpHelper,
SvXMLImport rImport,
const OUString &  rLocalName 
)

Definition at line 223 of file SchXMLChartContext.cxx.

SchXMLChartContext::~SchXMLChartContext ( )
overridevirtual

Definition at line 237 of file SchXMLChartContext.cxx.

Member Function Documentation

SvXMLImportContextRef SchXMLChartContext::CreateChildContext ( sal_uInt16  nPrefix,
const OUString &  rLocalName,
const css::uno::Reference< css::xml::sax::XAttributeList > &  xAttrList 
)
overridevirtual
void SchXMLChartContext::EndElement ( )
overridevirtual

EndElement 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 712 of file SchXMLChartContext.cxx.

References SchXMLTableHelper::applyTableToInternalDataProvider(), SchXMLImportHelper::GetAutoStylesContext(), SchXMLImportHelper::GetChartDocument(), SchXMLSeriesHelper::getDataSeriesIndexMapFromDiagram(), SvXMLImportContext::GetImport(), SchXMLSeries2Context::initSeriesPropertySets(), SchXMLTools::isDocumentGeneratedWithOpenOfficeOlderThan2_3(), lcl_ApplyDataFromRectangularRangeToDiagram(), m_aXLinkHRefAttributeToIndicateDataProvider, m_bHasRangeAtPlotArea, m_bHasTableElement, maChartTypeServiceName, SeriesDefaultsAndStyles::maDeepDefault, SeriesDefaultsAndStyles::maLinesOnProperty, maLSequencesPerIndex, maMainTitle, SeriesDefaultsAndStyles::maPercentDefault, maSeriesDefaultsAndStyles, SeriesDefaultsAndStyles::maSeriesStyleVector, SeriesDefaultsAndStyles::maStackedBarsConnectedDefault, SeriesDefaultsAndStyles::maStackedDefault, maSubTitle, maTable, mbAllRangeAddressesAvailable, mbColHasLabels, mbIsStockChart, mbRowHasLabels, meDataRowSource, MergeSeriesForStockChart(), mrImportHelper, msChartAddress, msColTrans, msRowTrans, SAL_WARN, SchXMLSeries2Context::setDefaultsToSeries(), SchXMLSeries2Context::setStylesToDataPoints(), SchXMLSeries2Context::setStylesToRegressionCurves(), SchXMLSeries2Context::setStylesToSeries(), SchXMLSeries2Context::setStylesToStatisticsObjects(), SchXMLTools::switchBackToDataProviderFromParent(), SchXMLTableHelper::switchRangesFromOuterToInternalIfNecessary(), SchXMLSeries2Context::switchSeriesLinesOff(), and TOOLS_WARN_EXCEPTION.

void SchXMLChartContext::InitChart ( const OUString &  rChartTypeServiceName)
private

This method bundles some settings to the chart model and executes them with a locked controller.

This includes setting the chart type.

Parameters
aServiceNameThe name of the service the diagram is initialized with.

Definition at line 1134 of file SchXMLChartContext.cxx.

References SchXMLImportHelper::GetChartDocument(), mrImportHelper, and SAL_WARN_IF.

Referenced by StartElement().

void SchXMLChartContext::MergeSeriesForStockChart ( )
private
void SchXMLChartContext::StartElement ( const css::uno::Reference< css::xml::sax::XAttributeList > &  xAttrList)
overridevirtual

Member Data Documentation

OUString SchXMLChartContext::m_aXLinkHRefAttributeToIndicateDataProvider
private

Definition at line 94 of file SchXMLChartContext.hxx.

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

bool SchXMLChartContext::m_bHasRangeAtPlotArea
private

Definition at line 95 of file SchXMLChartContext.hxx.

Referenced by CreateChildContext(), and EndElement().

bool SchXMLChartContext::m_bHasTableElement
private

Definition at line 96 of file SchXMLChartContext.hxx.

Referenced by CreateChildContext(), and EndElement().

css::awt::Size SchXMLChartContext::maChartSize
private

Definition at line 116 of file SchXMLChartContext.hxx.

Referenced by CreateChildContext(), and StartElement().

OUString SchXMLChartContext::maChartTypeServiceName
private

Definition at line 114 of file SchXMLChartContext.hxx.

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

tSchXMLLSequencesPerIndex SchXMLChartContext::maLSequencesPerIndex
private

Definition at line 109 of file SchXMLChartContext.hxx.

Referenced by CreateChildContext(), and EndElement().

OUString SchXMLChartContext::maMainTitle
private

Definition at line 93 of file SchXMLChartContext.hxx.

Referenced by CreateChildContext(), and EndElement().

SeriesDefaultsAndStyles SchXMLChartContext::maSeriesDefaultsAndStyles
private

Definition at line 108 of file SchXMLChartContext.hxx.

Referenced by CreateChildContext(), and EndElement().

OUString SchXMLChartContext::maSubTitle
private

Definition at line 93 of file SchXMLChartContext.hxx.

Referenced by CreateChildContext(), and EndElement().

SchXMLTable SchXMLChartContext::maTable
private

Definition at line 90 of file SchXMLChartContext.hxx.

Referenced by CreateChildContext(), and EndElement().

bool SchXMLChartContext::mbAllRangeAddressesAvailable
private

Definition at line 97 of file SchXMLChartContext.hxx.

Referenced by CreateChildContext(), and EndElement().

bool SchXMLChartContext::mbColHasLabels
private

Definition at line 98 of file SchXMLChartContext.hxx.

Referenced by CreateChildContext(), and EndElement().

bool SchXMLChartContext::mbIsStockChart
private
bool SchXMLChartContext::mbRowHasLabels
private

Definition at line 99 of file SchXMLChartContext.hxx.

Referenced by CreateChildContext(), and EndElement().

css::chart::ChartDataRowSource SchXMLChartContext::meDataRowSource
private

Definition at line 100 of file SchXMLChartContext.hxx.

Referenced by CreateChildContext(), and EndElement().

SchXMLImportHelper& SchXMLChartContext::mrImportHelper
private
OUString SchXMLChartContext::msCategoriesAddress
private

Definition at line 103 of file SchXMLChartContext.hxx.

Referenced by CreateChildContext().

OUString SchXMLChartContext::msChartAddress
private

Definition at line 104 of file SchXMLChartContext.hxx.

Referenced by CreateChildContext(), and EndElement().

OUString SchXMLChartContext::msColTrans
private

Definition at line 112 of file SchXMLChartContext.hxx.

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

OUString SchXMLChartContext::msDataPilotSource
private

Definition at line 106 of file SchXMLChartContext.hxx.

Referenced by StartElement().

OUString SchXMLChartContext::msRowTrans
private

Definition at line 113 of file SchXMLChartContext.hxx.

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

css::uno::Reference< css::drawing::XShapes > SchXMLChartContext::mxDrawPage
private

Definition at line 111 of file SchXMLChartContext.hxx.

Referenced by CreateChildContext().


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