LibreOffice Module xmloff (master) 1
Public Member Functions | Private Attributes | List of all members
XMLChartPropHdlFactory Class Referencefinal

#include <XMLChartPropertySetMapper.hxx>

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

Public Member Functions

 XMLChartPropHdlFactory (SvXMLExport const *)
 
virtual ~XMLChartPropHdlFactory () override
 
virtual const XMLPropertyHandlerGetPropertyHandler (sal_Int32 nType) const override
 This method retrieves a PropertyHandler for the given XML-type. More...
 
- Public Member Functions inherited from XMLPropertyHandlerFactory
 XMLPropertyHandlerFactory ()
 
virtual ~XMLPropertyHandlerFactory () override
 
virtual const XMLPropertyHandlerGetPropertyHandler (sal_Int32 nType) const
 This method retrieves a PropertyHandler for the given XML-type. More...
 
- Public Member Functions inherited from salhelper::SimpleReferenceObject
 SimpleReferenceObject ()
 
void acquire ()
 
void release ()
 

Private Attributes

SvXMLExport const *const m_pExport
 

Additional Inherited Members

- Static Public Member Functions inherited from XMLPropertyHandlerFactory
static std::unique_ptr< XMLPropertyHandlerCreatePropertyHandler (sal_Int32 nType)
 helper method to statically create a property handler; this will not use the handler cache. More...
 
- Static Public Member Functions inherited from salhelper::SimpleReferenceObject
static void * operator new (std::size_t nSize)
 
static void * operator new (std::size_t nSize, std::nothrow_t const &rNothrow)
 
static void operator delete (void *pPtr)
 
static void operator delete (void *pPtr, std::nothrow_t const &rNothrow)
 
- Protected Member Functions inherited from XMLPropertyHandlerFactory
const XMLPropertyHandlerGetHdlCache (sal_Int32 nType) const
 Retrieves a PropertyHandler from the internal cache. More...
 
void PutHdlCache (sal_Int32 nType, const XMLPropertyHandler *pHdl) const
 Puts a PropertyHandler into the internal cache. More...
 
- Protected Member Functions inherited from salhelper::SimpleReferenceObject
virtual ~SimpleReferenceObject () COVERITY_NOEXCEPT_FALSE
 
- Protected Attributes inherited from salhelper::SimpleReferenceObject
oslInterlockedCount m_nCount
 

Detailed Description

Definition at line 29 of file XMLChartPropertySetMapper.hxx.

Constructor & Destructor Documentation

◆ XMLChartPropHdlFactory()

XMLChartPropHdlFactory::XMLChartPropHdlFactory ( SvXMLExport const *  pExport)

Definition at line 389 of file PropertyMaps.cxx.

◆ ~XMLChartPropHdlFactory()

XMLChartPropHdlFactory::~XMLChartPropHdlFactory ( )
overridevirtual

Definition at line 394 of file PropertyMaps.cxx.

Member Function Documentation

◆ GetPropertyHandler()

const XMLPropertyHandler * XMLChartPropHdlFactory::GetPropertyHandler ( sal_Int32  nType) const
overridevirtual

This method retrieves a PropertyHandler for the given XML-type.

To extend this method for more XML-types override this method like the example below. If you call the method of the base-class you get propertyhandler for basic-XML-types ( e.g. for color, percent, ... ). After that you could create your new XML-types. After creating a new type you have to put the pointer into the cache via the method PutHdlCache( sal_Int32 , XMLPropertyHandler* ).

virtual const XMLPropertyHandler* GetPropertyHandler( sal_Int32 nType ) const { XMLPropertyHandler* pHdl = XMLPropertyHandlerFactory::GetPropertyHandler( nType );

if( !pHdl ) { switch( nType ) { case XML_TYPE_XYZ : pHdl = new XML_xyz_PropHdl; break; case ... : : }

if( pHdl ) PutHdlCache( nType, pHdl ); }

return pHdl; }

Reimplemented from XMLPropertyHandlerFactory.

Definition at line 398 of file PropertyMaps.cxx.

References aXMLChartAxisArrangementEnumMap, aXMLChartAxisLabelPositionEnumMap, aXMLChartAxisMarkPositionEnumMap, aXMLChartDataLabelPlacementEnumMap, aXMLChartDataRowSourceTypeEnumMap, aXMLChartErrorBarStyleEnumMap, aXMLChartMissingValueTreatmentEnumMap, aXMLChartSolidTypeEnumMap, g_XMLChartInterpolationTypeEnumMap, g_XMLChartInterpolationTypeEnumMap_ODF12, XMLPropertyHandlerFactory::GetPropertyHandler(), SvXMLExport::getSaneDefaultVersion(), m_pExport, nType, SvtSaveOptions::ODFSVER_013, XMLPropertyHandlerFactory::PutHdlCache(), XML_SCH_TYPE_AXIS_ARRANGEMENT, XML_SCH_TYPE_AXIS_LABEL_POSITION, XML_SCH_TYPE_AXIS_POSITION, XML_SCH_TYPE_AXIS_POSITION_VALUE, XML_SCH_TYPE_DATAROWSOURCE, XML_SCH_TYPE_ERROR_BAR_STYLE, XML_SCH_TYPE_ERROR_INDICATOR_LOWER, XML_SCH_TYPE_ERROR_INDICATOR_UPPER, XML_SCH_TYPE_INTERPOLATION, XML_SCH_TYPE_LABEL_BORDER_OPACITY, XML_SCH_TYPE_LABEL_BORDER_STYLE, XML_SCH_TYPE_LABEL_FILL_STYLE, XML_SCH_TYPE_LABEL_PLACEMENT_TYPE, XML_SCH_TYPE_MISSING_VALUE_TREATMENT, XML_SCH_TYPE_NAMED_SYMBOL, XML_SCH_TYPE_SOLID_TYPE, XML_SCH_TYPE_SYMBOL_TYPE, XML_SCH_TYPE_TEXT_ORIENTATION, and XML_SCH_TYPE_TICK_MARK_POSITION.

Member Data Documentation

◆ m_pExport

SvXMLExport const* const XMLChartPropHdlFactory::m_pExport
private

Definition at line 32 of file XMLChartPropertySetMapper.hxx.

Referenced by GetPropertyHandler().


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