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, const OUString &rLocalName, 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 StartElement (const css::uno::Reference< css::xml::sax::XAttributeList > &xAttrList) override
 StartElement is called after a context has been constructed and before an elements context is parsed. More...
 
virtual void EndElement () override
 EndElement is called before a context will be destructed, but after an elements context has been parsed. More...
 
virtual SvXMLImportContextRef CreateChildContext (sal_uInt16 nPrefix, const OUString &rLocalName, const css::uno::Reference< css::xml::sax::XAttributeList > &xAttrList) override
 Create a children element context. More...
 
- Public Member Functions inherited from SvXMLImportContext
bool IsPrefixFilledIn () const
 
sal_uInt16 GetPrefix () const
 
const OUString & GetLocalName () const
 
 SvXMLImportContext (SvXMLImport &rImport, sal_uInt16 nPrfx, const OUString &rLName)
 A contexts constructor does anything that is required if an element starts. More...
 
 SvXMLImportContext (SvXMLImport &rImport)
 
virtual ~SvXMLImportContext ()
 A contexts destructor does anything that is required if an element ends. More...
 
virtual void Characters (const OUString &rChars)
 This method is called for all characters that are contained in the current element. 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
 
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
 
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, const OUString &rChartTypeServiceName, const OUString &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,
const OUString &  rLocalName,
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 104 of file SchXMLAxisContext.cxx.

References AUTOMATIC.

SchXMLAxisContext::~SchXMLAxisContext ( )
overridevirtual

Definition at line 128 of file SchXMLAxisContext.cxx.

Member Function Documentation

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

Definition at line 750 of file SchXMLAxisContext.cxx.

Referenced by SchXMLPlotAreaContext::EndElement().

void SchXMLAxisContext::CreateAxis ( )
private
SvXMLImportContextRef SchXMLAxisContext::CreateChildContext ( sal_uInt16  nPrefix,
const OUString &  rLocalName,
const css::uno::Reference< css::xml::sax::XAttributeList > &  xAttrList 
)
overridevirtual
void SchXMLAxisContext::CreateGrid ( const OUString &  sAutoStyleName,
bool  bIsMajor 
)
private
void SchXMLAxisContext::EndElement ( )
overridevirtual

EndElement 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 716 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 591 of file SchXMLAxisContext.cxx.

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

Referenced by EndElement().

void SchXMLAxisContext::StartElement ( const css::uno::Reference< css::xml::sax::XAttributeList > &  xAttrList)
overridevirtual

StartElement is called after a context has been constructed and before an elements context is parsed.

It may be used for actions that require virtual methods. The default is to do nothing.

Reimplemented from SvXMLImportContext.

Definition at line 265 of file SchXMLAxisContext.cxx.

References SchXMLAxis::aName, SvXMLUnitConverter::convertEnum(), CreateAxis(), SchXMLAxis::eDimension, SvXMLTokenMap::Get(), SvXMLImportContext::GetImport(), SvXMLNamespaceMap::GetKeyByAttrName(), SvXMLImport::GetNamespaceMap(), i, m_aAutoStyleName, m_aCurrentAxis, m_bAxisTypeImported, m_nAxisType, m_rAxes, and SchXMLAxis::nAxisIndex.

Member Data Documentation

OUString SchXMLAxisContext::m_aAutoStyleName
private

Definition at line 62 of file SchXMLAxisContext.hxx.

Referenced by CreateAxis(), and StartElement().

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 StartElement().

bool SchXMLAxisContext::m_bDateScaleImported
private

Definition at line 66 of file SchXMLAxisContext.hxx.

Referenced by CreateChildContext(), and EndElement().

sal_Int32 SchXMLAxisContext::m_nAxisType
private

Definition at line 64 of file SchXMLAxisContext.hxx.

Referenced by CreateAxis(), EndElement(), and StartElement().

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

Definition at line 60 of file SchXMLAxisContext.hxx.

Referenced by CreateAxis(), and StartElement().

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 CreateChildContext().

SchXMLImportHelper& SchXMLAxisContext::m_rImportHelper
private

Definition at line 57 of file SchXMLAxisContext.hxx.

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

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

Definition at line 61 of file SchXMLAxisContext.hxx.

Referenced by CreateAxis(), and CreateChildContext().

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: