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

#include <SchXMLAxisContext.hxx>

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

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

SchXMLImportHelperm_rImportHelper
 
css::uno::Reference< css::chart::XDiagram > m_xDiagram
 
SchXMLAxis m_aCurrentAxis
 
std::vector< SchXMLAxis > & m_rAxes
 
css::uno::Reference< css::beans::XPropertySetm_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
SvXMLImportGetImport ()
 
const SvXMLImportGetImport () const
 

Detailed Description

Definition at line 29 of file SchXMLAxisContext.hxx.

Constructor & Destructor Documentation

◆ SchXMLAxisContext()

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.

◆ ~SchXMLAxisContext()

SchXMLAxisContext::~SchXMLAxisContext ( )
overridevirtual

Definition at line 127 of file SchXMLAxisContext.cxx.

Member Function Documentation

◆ CorrectAxisPositions()

void SchXMLAxisContext::CorrectAxisPositions ( const css::uno::Reference< css::chart2::XChartDocument > &  xNewDoc,
std::u16string_view  rChartTypeServiceName,
std::u16string_view  rODFVersionOfFile,
bool  bAxisPositionAttributeImported 
)
static

Definition at line 672 of file SchXMLAxisContext.cxx.

References u.

Referenced by SchXMLPlotAreaContext::endFastElement().

◆ CreateAxis()

void SchXMLAxisContext::CreateAxis ( )
private

◆ createFastChildContext()

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

◆ CreateGrid()

void SchXMLAxisContext::CreateGrid ( const OUString &  sAutoStyleName,
bool  bIsMajor 
)
private

◆ endFastElement()

void SchXMLAxisContext::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 638 of file SchXMLAxisContext.cxx.

References SchXMLAxis::eDimension, SvXMLImportContext::GetImport(), m_aCurrentAxis, m_bDateScaleImported, m_nAxisType, SchXMLAxis::nAxisIndex, and SetAxisTitle().

◆ getTitleShape()

Reference< drawing::XShape > SchXMLAxisContext::getTitleShape ( ) const
private

◆ SetAxisTitle()

void SchXMLAxisContext::SetAxisTitle ( )
private

Definition at line 554 of file SchXMLAxisContext.cxx.

References SchXMLAxis::aTitle, lcl_getChartAxis(), m_aCurrentAxis, m_xDiagram, and SAL_INFO.

Referenced by endFastElement().

◆ startFastElement()

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

Member Data Documentation

◆ m_aAutoStyleName

OUString SchXMLAxisContext::m_aAutoStyleName
private

Definition at line 61 of file SchXMLAxisContext.hxx.

Referenced by CreateAxis(), and startFastElement().

◆ m_aCurrentAxis

SchXMLAxis SchXMLAxisContext::m_aCurrentAxis
private

◆ m_bAdaptWrongPercentScaleValues

bool SchXMLAxisContext::m_bAdaptWrongPercentScaleValues
private

Definition at line 67 of file SchXMLAxisContext.hxx.

Referenced by CreateAxis().

◆ m_bAdaptXAxisOrientationForOld2DBarCharts

bool SchXMLAxisContext::m_bAdaptXAxisOrientationForOld2DBarCharts
private

Definition at line 68 of file SchXMLAxisContext.hxx.

Referenced by CreateAxis().

◆ m_bAddMissingXAxisForNetCharts

bool SchXMLAxisContext::m_bAddMissingXAxisForNetCharts
private

Definition at line 66 of file SchXMLAxisContext.hxx.

Referenced by CreateAxis().

◆ m_bAxisTypeImported

bool SchXMLAxisContext::m_bAxisTypeImported
private

Definition at line 64 of file SchXMLAxisContext.hxx.

Referenced by CreateAxis(), and startFastElement().

◆ m_bDateScaleImported

bool SchXMLAxisContext::m_bDateScaleImported
private

Definition at line 65 of file SchXMLAxisContext.hxx.

Referenced by createFastChildContext(), and endFastElement().

◆ m_nAxisType

sal_Int32 SchXMLAxisContext::m_nAxisType
private

Definition at line 63 of file SchXMLAxisContext.hxx.

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

◆ m_rAxes

std::vector< SchXMLAxis >& SchXMLAxisContext::m_rAxes
private

Definition at line 59 of file SchXMLAxisContext.hxx.

Referenced by CreateAxis(), and startFastElement().

◆ m_rbAxisPositionAttributeImported

bool& SchXMLAxisContext::m_rbAxisPositionAttributeImported
private

Definition at line 69 of file SchXMLAxisContext.hxx.

Referenced by CreateAxis().

◆ m_rCategoriesAddress

OUString& SchXMLAxisContext::m_rCategoriesAddress
private

Definition at line 62 of file SchXMLAxisContext.hxx.

Referenced by createFastChildContext().

◆ m_rImportHelper

SchXMLImportHelper& SchXMLAxisContext::m_rImportHelper
private

◆ m_xAxisProps

css::uno::Reference< css::beans::XPropertySet > SchXMLAxisContext::m_xAxisProps
private

Definition at line 60 of file SchXMLAxisContext.hxx.

Referenced by CreateAxis(), and createFastChildContext().

◆ m_xDiagram

css::uno::Reference< css::chart::XDiagram > SchXMLAxisContext::m_xDiagram
private

Definition at line 57 of file SchXMLAxisContext.hxx.

Referenced by CreateAxis(), CreateGrid(), getTitleShape(), and SetAxisTitle().


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