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 startUnknownElement (const OUString &Namespace, const OUString &Name, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override
 
virtual void SAL_CALL endUnknownElement (const OUString &Namespace, const OUString &Name) 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 () 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
 

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 30 of file SchXMLAxisContext.hxx.

Constructor & Destructor Documentation

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 ( )
overridevirtual

Definition at line 127 of file SchXMLAxisContext.cxx.

Member Function Documentation

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 671 of file SchXMLAxisContext.cxx.

References u.

Referenced by SchXMLPlotAreaContext::endFastElement().

void SchXMLAxisContext::CreateAxis ( )
private
css::uno::Reference< css::xml::sax::XFastContextHandler > SchXMLAxisContext::createFastChildContext ( sal_Int32  nElement,
const css::uno::Reference< css::xml::sax::XFastAttributeList > &  AttrList 
)
overridevirtual
void SchXMLAxisContext::CreateGrid ( const OUString &  sAutoStyleName,
bool  bIsMajor 
)
private
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 637 of file SchXMLAxisContext.cxx.

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

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

Definition at line 553 of file SchXMLAxisContext.cxx.

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

Referenced by endFastElement().

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

Member Data Documentation

OUString SchXMLAxisContext::m_aAutoStyleName
private

Definition at line 62 of file SchXMLAxisContext.hxx.

Referenced by CreateAxis(), and startFastElement().

SchXMLAxis SchXMLAxisContext::m_aCurrentAxis
private
bool SchXMLAxisContext::m_bAdaptWrongPercentScaleValues
private

Definition at line 68 of file SchXMLAxisContext.hxx.

Referenced by CreateAxis().

bool SchXMLAxisContext::m_bAdaptXAxisOrientationForOld2DBarCharts
private

Definition at line 69 of file SchXMLAxisContext.hxx.

Referenced by CreateAxis().

bool SchXMLAxisContext::m_bAddMissingXAxisForNetCharts
private

Definition at line 67 of file SchXMLAxisContext.hxx.

Referenced by CreateAxis().

bool SchXMLAxisContext::m_bAxisTypeImported
private

Definition at line 65 of file SchXMLAxisContext.hxx.

Referenced by CreateAxis(), and startFastElement().

bool SchXMLAxisContext::m_bDateScaleImported
private

Definition at line 66 of file SchXMLAxisContext.hxx.

Referenced by createFastChildContext(), and endFastElement().

sal_Int32 SchXMLAxisContext::m_nAxisType
private

Definition at line 64 of file SchXMLAxisContext.hxx.

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

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

Definition at line 60 of file SchXMLAxisContext.hxx.

Referenced by CreateAxis(), and startFastElement().

bool& SchXMLAxisContext::m_rbAxisPositionAttributeImported
private

Definition at line 70 of file SchXMLAxisContext.hxx.

Referenced by CreateAxis().

OUString& SchXMLAxisContext::m_rCategoriesAddress
private

Definition at line 63 of file SchXMLAxisContext.hxx.

Referenced by createFastChildContext().

SchXMLImportHelper& SchXMLAxisContext::m_rImportHelper
private
css::uno::Reference< css::beans::XPropertySet > SchXMLAxisContext::m_xAxisProps
private

Definition at line 61 of file SchXMLAxisContext.hxx.

Referenced by CreateAxis(), and createFastChildContext().

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

Definition at line 58 of file SchXMLAxisContext.hxx.

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


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