LibreOffice Module xmloff (master) 1
|
#include <SchXMLAxisContext.hxx>
Public Member Functions | |
SchXMLAxisContext (SchXMLImportHelper &rImpHelper, SvXMLImport &rImport, css::uno::Reference< css::chart::XDiagram > const &xDiagram, std::vector< SchXMLAxis > &aAxes, OUString &rCategoriesAddress, bool bAddMissingXAxisForNetCharts, bool bAdaptWrongPercentScaleValues, bool bAdaptXAxisOrientationForOld2DBarCharts, bool &rbAxisPositionAttributeImported) | |
virtual | ~SchXMLAxisContext () 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 |
Static Public Member Functions | |
static void | CorrectAxisPositions (const css::uno::Reference< css::chart2::XChartDocument > &xNewDoc, std::u16string_view rChartTypeServiceName, std::u16string_view rODFVersionOfFile, bool bAxisPositionAttributeImported) |
Private Member Functions | |
css::uno::Reference< css::drawing::XShape > | getTitleShape () const |
void | CreateGrid (const OUString &sAutoStyleName, bool bIsMajor) |
void | CreateAxis () |
void | SetAxisTitle () |
Private Attributes | |
SchXMLImportHelper & | m_rImportHelper |
css::uno::Reference< css::chart::XDiagram > | m_xDiagram |
SchXMLAxis | m_aCurrentAxis |
std::vector< SchXMLAxis > & | m_rAxes |
css::uno::Reference< css::beans::XPropertySet > | m_xAxisProps |
OUString | m_aAutoStyleName |
OUString & | m_rCategoriesAddress |
sal_Int32 | m_nAxisType |
bool | m_bAxisTypeImported |
bool | m_bDateScaleImported |
bool | m_bAddMissingXAxisForNetCharts |
bool | m_bAdaptWrongPercentScaleValues |
bool | m_bAdaptXAxisOrientationForOld2DBarCharts |
bool & | m_rbAxisPositionAttributeImported |
Additional Inherited Members | |
Protected Member Functions inherited from SvXMLImportContext | |
SvXMLImport & | GetImport () |
const SvXMLImport & | GetImport () const |
Definition at line 29 of file SchXMLAxisContext.hxx.
SchXMLAxisContext::SchXMLAxisContext | ( | SchXMLImportHelper & | rImpHelper, |
SvXMLImport & | rImport, | ||
css::uno::Reference< css::chart::XDiagram > const & | xDiagram, | ||
std::vector< SchXMLAxis > & | aAxes, | ||
OUString & | rCategoriesAddress, | ||
bool | bAddMissingXAxisForNetCharts, | ||
bool | bAdaptWrongPercentScaleValues, | ||
bool | bAdaptXAxisOrientationForOld2DBarCharts, | ||
bool & | rbAxisPositionAttributeImported | ||
) |
Definition at line 103 of file SchXMLAxisContext.cxx.
References AUTOMATIC.
|
overridevirtual |
Definition at line 127 of file SchXMLAxisContext.cxx.
|
static |
Definition at line 672 of file SchXMLAxisContext.cxx.
References u.
Referenced by SchXMLPlotAreaContext::endFastElement().
|
private |
Definition at line 339 of file SchXMLAxisContext.cxx.
References aPropName, COL_BLACK(), SchXMLAxis::eDimension, SvXMLStylesContext::FindStyleChildContext(), SchXMLImportHelper::GetAutoStylesContext(), SchXMLImportHelper::GetChartDocument(), SchXMLImportHelper::GetChartFamilyID(), SvXMLImportContext::GetImport(), SchXMLTools::getPropertyFromContext(), uno::Any::hasValue(), lcl_getChartAxis(), m_aAutoStyleName, m_aCurrentAxis, m_bAdaptWrongPercentScaleValues, m_bAdaptXAxisOrientationForOld2DBarCharts, m_bAddMissingXAxisForNetCharts, m_bAxisTypeImported, m_nAxisType, m_rAxes, m_rbAxisPositionAttributeImported, m_rImportHelper, m_xAxisProps, m_xDiagram, SchXMLAxis::nAxisIndex, SAL_INFO, SCH_XML_AXIS_UNDEF, SCH_XML_AXIS_X, SCH_XML_AXIS_Y, SCH_XML_AXIS_Z, and u.
Referenced by startFastElement().
|
overridevirtual |
Reimplemented from SvXMLImportContext.
Definition at line 577 of file SchXMLAxisContext.cxx.
References SchXMLAxis::aTitle, SchXMLAxis::bHasCategories, sax_fastparser::castToFastAttributeList(), CHART, CreateGrid(), SvXMLImportContext::GetImport(), getTitleShape(), xmloff::token::IsXMLToken(), m_aCurrentAxis, m_bDateScaleImported, m_rCategoriesAddress, m_rImportHelper, m_xAxisProps, xmloff::token::XML_CATEGORIES, xmloff::token::XML_CLASS, xmloff::token::XML_DATE_SCALE, XML_ELEMENT, xmloff::token::XML_GRID, xmloff::token::XML_MINOR, xmloff::token::XML_STYLE_NAME, xmloff::token::XML_TITLE, XMLOFF_WARN_UNKNOWN, and XMLOFF_WARN_UNKNOWN_ELEMENT.
|
private |
Definition at line 181 of file SchXMLAxisContext.cxx.
References aPropName, COL_BLACK(), SchXMLAxis::eDimension, SchXMLImportHelper::FillAutoStyle(), SchXMLImportHelper::GetChartDocument(), lcl_getChartAxis(), m_aCurrentAxis, m_rImportHelper, m_xDiagram, SAL_INFO, SCH_XML_AXIS_UNDEF, SCH_XML_AXIS_X, SCH_XML_AXIS_Y, and SCH_XML_AXIS_Z.
Referenced by createFastChildContext().
|
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 638 of file SchXMLAxisContext.cxx.
References SchXMLAxis::eDimension, SvXMLImportContext::GetImport(), m_aCurrentAxis, m_bDateScaleImported, m_nAxisType, SchXMLAxis::nAxisIndex, and SetAxisTitle().
|
private |
Definition at line 146 of file SchXMLAxisContext.cxx.
References aPropName, SchXMLAxis::eDimension, SchXMLImportHelper::GetChartDocument(), lcl_getChartAxis(), m_aCurrentAxis, m_rImportHelper, m_xDiagram, SchXMLAxis::nAxisIndex, SAL_INFO, SCH_XML_AXIS_UNDEF, SCH_XML_AXIS_X, SCH_XML_AXIS_Y, and SCH_XML_AXIS_Z.
Referenced by createFastChildContext().
|
private |
Definition at line 554 of file SchXMLAxisContext.cxx.
References SchXMLAxis::aTitle, lcl_getChartAxis(), m_aCurrentAxis, m_xDiagram, and SAL_INFO.
Referenced by endFastElement().
|
overridevirtual |
Reimplemented from SvXMLImportContext.
Definition at line 232 of file SchXMLAxisContext.cxx.
References SchXMLAxis::aName, aXMLAxisDimensionMap, aXMLAxisTypeMap, sax_fastparser::castToFastAttributeList(), CHART, SvXMLUnitConverter::convertEnum(), CreateAxis(), SchXMLAxis::eDimension, m_aAutoStyleName, m_aCurrentAxis, m_bAxisTypeImported, m_nAxisType, m_rAxes, SchXMLAxis::nAxisIndex, xmloff::token::XML_AXIS_TYPE, xmloff::token::XML_DIMENSION, XML_ELEMENT, xmloff::token::XML_NAME, xmloff::token::XML_STYLE_NAME, and XMLOFF_WARN_UNKNOWN.
|
private |
Definition at line 61 of file SchXMLAxisContext.hxx.
Referenced by CreateAxis(), and startFastElement().
|
private |
Definition at line 58 of file SchXMLAxisContext.hxx.
Referenced by CreateAxis(), createFastChildContext(), CreateGrid(), endFastElement(), getTitleShape(), SetAxisTitle(), and startFastElement().
|
private |
Definition at line 67 of file SchXMLAxisContext.hxx.
Referenced by CreateAxis().
|
private |
Definition at line 68 of file SchXMLAxisContext.hxx.
Referenced by CreateAxis().
|
private |
Definition at line 66 of file SchXMLAxisContext.hxx.
Referenced by CreateAxis().
|
private |
Definition at line 64 of file SchXMLAxisContext.hxx.
Referenced by CreateAxis(), and startFastElement().
|
private |
Definition at line 65 of file SchXMLAxisContext.hxx.
Referenced by createFastChildContext(), and endFastElement().
|
private |
Definition at line 63 of file SchXMLAxisContext.hxx.
Referenced by CreateAxis(), endFastElement(), and startFastElement().
|
private |
Definition at line 59 of file SchXMLAxisContext.hxx.
Referenced by CreateAxis(), and startFastElement().
|
private |
Definition at line 69 of file SchXMLAxisContext.hxx.
Referenced by CreateAxis().
|
private |
Definition at line 62 of file SchXMLAxisContext.hxx.
Referenced by createFastChildContext().
|
private |
Definition at line 56 of file SchXMLAxisContext.hxx.
Referenced by CreateAxis(), createFastChildContext(), CreateGrid(), and getTitleShape().
|
private |
Definition at line 60 of file SchXMLAxisContext.hxx.
Referenced by CreateAxis(), and createFastChildContext().
|
private |
Definition at line 57 of file SchXMLAxisContext.hxx.
Referenced by CreateAxis(), CreateGrid(), getTitleShape(), and SetAxisTitle().