LibreOffice Module xmloff (master) 1
|
#include <SchXMLChartContext.hxx>
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 |
SchXMLImportHelper & | mrImportHelper |
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 | |
SvXMLImport & | GetImport () |
const SvXMLImport & | GetImport () const |
Definition at line 74 of file SchXMLChartContext.hxx.
SchXMLChartContext::SchXMLChartContext | ( | SchXMLImportHelper & | rImpHelper, |
SvXMLImport & | rImport | ||
) |
Definition at line 227 of file SchXMLChartContext.cxx.
|
overridevirtual |
Definition at line 241 of file SchXMLChartContext.cxx.
|
overridevirtual |
Reimplemented from SvXMLImportContext.
Definition at line 1026 of file SchXMLChartContext.cxx.
References CHART, XMLShapeImportHelper::CreateGroupChildContext(), SchXMLImportHelper::GetChartDocument(), SvXMLImportContext::GetImport(), m_aXLinkHRefAttributeToIndicateDataProvider, m_bHasRangeAtPlotArea, m_bHasTableElement, maChartSize, maChartTypeServiceName, maLSequencesPerIndex, maMainTitle, maSeriesDefaultsAndStyles, maSubTitle, maTable, mbAllRangeAddressesAvailable, mbColHasLabels, mbIsStockChart, mbRowHasLabels, meDataRowSource, mrImportHelper, msCategoriesAddress, msChartAddress, msColTrans, msRowTrans, mxDrawPage, SAL_WARN_IF, SchXMLTableContext::setColumnPermutation(), SchXMLTableContext::setRowPermutation(), TABLE, xmloff::token::XML_DATA_TABLE, XML_ELEMENT, xmloff::token::XML_LEGEND, xmloff::token::XML_PLOT_AREA, xmloff::token::XML_SUBTITLE, xmloff::token::XML_TABLE, and xmloff::token::XML_TITLE.
|
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.
|
private |
@descr This method bundles some settings to the chart model and executes them with a locked controller.
This includes setting the chart type.
aServiceName | The 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().
|
private |
Definition at line 949 of file SchXMLChartContext.cxx.
References SchXMLImportHelper::GetChartDocument(), i, mbIsStockChart, mrImportHelper, and TOOLS_WARN_EXCEPTION.
Referenced by endFastElement().
|
overridevirtual |
Reimplemented from SvXMLImportContext.
Definition at line 310 of file SchXMLChartContext.cxx.
References sax_fastparser::castToFastAttributeList(), CHART, SchXMLImportHelper::FillAutoStyle(), SchXMLImportHelper::GetChartDocument(), SchXMLTools::GetChartTypeByClassName(), SchXMLTools::GetChartTypeEnum(), SvXMLImportContext::GetImport(), SchXMLTools::GetNewChartTypeName(), xmloff::token::GetXMLToken(), InitChart(), m_aXLinkHRefAttributeToIndicateDataProvider, maChartSize, maChartTypeServiceName, mbIsStockChart, mrImportHelper, msColTrans, msDataPilotSource, msRowTrans, SAL_WARN, SAL_WARN_IF, setDataProvider(), SVG, TOOLS_WARN_EXCEPTION, xmloff::token::XML_BAR, SchXMLTools::XML_CHART_CLASS_STOCK, SchXMLTools::XML_CHART_CLASS_UNKNOWN, xmloff::token::XML_CLASS, xmloff::token::XML_COLUMN_MAPPING, xmloff::token::XML_DATA_PILOT_SOURCE, XML_ELEMENT, xmloff::token::XML_HEIGHT, xmloff::token::XML_HREF, XML_NAMESPACE_CHART, XML_NAMESPACE_OOO, xmloff::token::XML_ROW_MAPPING, xmloff::token::XML_STYLE_NAME, xmloff::token::XML_WIDTH, and XMLOFF_WARN_UNKNOWN.
|
private |
Definition at line 93 of file SchXMLChartContext.hxx.
Referenced by createFastChildContext(), endFastElement(), and startFastElement().
|
private |
Definition at line 94 of file SchXMLChartContext.hxx.
Referenced by createFastChildContext(), and endFastElement().
|
private |
Definition at line 95 of file SchXMLChartContext.hxx.
Referenced by createFastChildContext(), and endFastElement().
|
private |
Definition at line 115 of file SchXMLChartContext.hxx.
Referenced by createFastChildContext(), and startFastElement().
|
private |
Definition at line 113 of file SchXMLChartContext.hxx.
Referenced by createFastChildContext(), endFastElement(), and startFastElement().
|
private |
Definition at line 108 of file SchXMLChartContext.hxx.
Referenced by createFastChildContext(), and endFastElement().
|
private |
Definition at line 92 of file SchXMLChartContext.hxx.
Referenced by createFastChildContext(), and endFastElement().
|
private |
Definition at line 107 of file SchXMLChartContext.hxx.
Referenced by createFastChildContext(), and endFastElement().
|
private |
Definition at line 92 of file SchXMLChartContext.hxx.
Referenced by createFastChildContext(), and endFastElement().
|
private |
Definition at line 89 of file SchXMLChartContext.hxx.
Referenced by createFastChildContext(), and endFastElement().
|
private |
Definition at line 96 of file SchXMLChartContext.hxx.
Referenced by createFastChildContext(), and endFastElement().
|
private |
Definition at line 97 of file SchXMLChartContext.hxx.
Referenced by createFastChildContext(), and endFastElement().
|
private |
Definition at line 100 of file SchXMLChartContext.hxx.
Referenced by createFastChildContext(), endFastElement(), MergeSeriesForStockChart(), and startFastElement().
|
private |
Definition at line 98 of file SchXMLChartContext.hxx.
Referenced by createFastChildContext(), and endFastElement().
|
private |
Definition at line 99 of file SchXMLChartContext.hxx.
Referenced by createFastChildContext(), and endFastElement().
|
private |
Definition at line 90 of file SchXMLChartContext.hxx.
Referenced by createFastChildContext(), endFastElement(), InitChart(), MergeSeriesForStockChart(), and startFastElement().
|
private |
Definition at line 102 of file SchXMLChartContext.hxx.
Referenced by createFastChildContext().
|
private |
Definition at line 103 of file SchXMLChartContext.hxx.
Referenced by createFastChildContext(), and endFastElement().
|
private |
Definition at line 111 of file SchXMLChartContext.hxx.
Referenced by createFastChildContext(), endFastElement(), and startFastElement().
|
private |
Definition at line 105 of file SchXMLChartContext.hxx.
Referenced by startFastElement().
|
private |
Definition at line 112 of file SchXMLChartContext.hxx.
Referenced by createFastChildContext(), endFastElement(), and startFastElement().
|
private |
Definition at line 110 of file SchXMLChartContext.hxx.
Referenced by createFastChildContext().