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)
 
virtual ~SchXMLChartContext () 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...
 
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext (sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &AttrList) override
 
- 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
 

Private Member Functions

void InitChart (const OUString &rChartTypeServiceName)
 @descr 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 74 of file SchXMLChartContext.hxx.

Constructor & Destructor Documentation

◆ SchXMLChartContext()

SchXMLChartContext::SchXMLChartContext ( SchXMLImportHelper rImpHelper,
SvXMLImport rImport 
)

Definition at line 227 of file SchXMLChartContext.cxx.

◆ ~SchXMLChartContext()

SchXMLChartContext::~SchXMLChartContext ( )
overridevirtual

Definition at line 241 of file SchXMLChartContext.cxx.

Member Function Documentation

◆ createFastChildContext()

css::uno::Reference< css::xml::sax::XFastContextHandler > SchXMLChartContext::createFastChildContext ( sal_Int32  nElement,
const css::uno::Reference< css::xml::sax::XFastAttributeList > &  AttrList 
)
overridevirtual

◆ endFastElement()

void SchXMLChartContext::endFastElement ( sal_Int32  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 715 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.

◆ InitChart()

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

@descr 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 1135 of file SchXMLChartContext.cxx.

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

Referenced by startFastElement().

◆ MergeSeriesForStockChart()

void SchXMLChartContext::MergeSeriesForStockChart ( )
private

◆ startFastElement()

void SchXMLChartContext::startFastElement ( sal_Int32  nElement,
const css::uno::Reference< css::xml::sax::XFastAttributeList > &  xAttrList 
)
overridevirtual

Member Data Documentation

◆ m_aXLinkHRefAttributeToIndicateDataProvider

OUString SchXMLChartContext::m_aXLinkHRefAttributeToIndicateDataProvider
private

Definition at line 93 of file SchXMLChartContext.hxx.

Referenced by createFastChildContext(), endFastElement(), and startFastElement().

◆ m_bHasRangeAtPlotArea

bool SchXMLChartContext::m_bHasRangeAtPlotArea
private

Definition at line 94 of file SchXMLChartContext.hxx.

Referenced by createFastChildContext(), and endFastElement().

◆ m_bHasTableElement

bool SchXMLChartContext::m_bHasTableElement
private

Definition at line 95 of file SchXMLChartContext.hxx.

Referenced by createFastChildContext(), and endFastElement().

◆ maChartSize

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

Definition at line 115 of file SchXMLChartContext.hxx.

Referenced by createFastChildContext(), and startFastElement().

◆ maChartTypeServiceName

OUString SchXMLChartContext::maChartTypeServiceName
private

◆ maLSequencesPerIndex

tSchXMLLSequencesPerIndex SchXMLChartContext::maLSequencesPerIndex
private

Definition at line 108 of file SchXMLChartContext.hxx.

Referenced by createFastChildContext(), and endFastElement().

◆ maMainTitle

OUString SchXMLChartContext::maMainTitle
private

Definition at line 92 of file SchXMLChartContext.hxx.

Referenced by createFastChildContext(), and endFastElement().

◆ maSeriesDefaultsAndStyles

SeriesDefaultsAndStyles SchXMLChartContext::maSeriesDefaultsAndStyles
private

Definition at line 107 of file SchXMLChartContext.hxx.

Referenced by createFastChildContext(), and endFastElement().

◆ maSubTitle

OUString SchXMLChartContext::maSubTitle
private

Definition at line 92 of file SchXMLChartContext.hxx.

Referenced by createFastChildContext(), and endFastElement().

◆ maTable

SchXMLTable SchXMLChartContext::maTable
private

Definition at line 89 of file SchXMLChartContext.hxx.

Referenced by createFastChildContext(), and endFastElement().

◆ mbAllRangeAddressesAvailable

bool SchXMLChartContext::mbAllRangeAddressesAvailable
private

Definition at line 96 of file SchXMLChartContext.hxx.

Referenced by createFastChildContext(), and endFastElement().

◆ mbColHasLabels

bool SchXMLChartContext::mbColHasLabels
private

Definition at line 97 of file SchXMLChartContext.hxx.

Referenced by createFastChildContext(), and endFastElement().

◆ mbIsStockChart

bool SchXMLChartContext::mbIsStockChart
private

◆ mbRowHasLabels

bool SchXMLChartContext::mbRowHasLabels
private

Definition at line 98 of file SchXMLChartContext.hxx.

Referenced by createFastChildContext(), and endFastElement().

◆ meDataRowSource

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

Definition at line 99 of file SchXMLChartContext.hxx.

Referenced by createFastChildContext(), and endFastElement().

◆ mrImportHelper

SchXMLImportHelper& SchXMLChartContext::mrImportHelper
private

◆ msCategoriesAddress

OUString SchXMLChartContext::msCategoriesAddress
private

Definition at line 102 of file SchXMLChartContext.hxx.

Referenced by createFastChildContext().

◆ msChartAddress

OUString SchXMLChartContext::msChartAddress
private

Definition at line 103 of file SchXMLChartContext.hxx.

Referenced by createFastChildContext(), and endFastElement().

◆ msColTrans

OUString SchXMLChartContext::msColTrans
private

◆ msDataPilotSource

OUString SchXMLChartContext::msDataPilotSource
private

Definition at line 105 of file SchXMLChartContext.hxx.

Referenced by startFastElement().

◆ msRowTrans

OUString SchXMLChartContext::msRowTrans
private

◆ mxDrawPage

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

Definition at line 110 of file SchXMLChartContext.hxx.

Referenced by createFastChildContext().


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