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
 
- 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 voidoperator new (std::size_t nSize)
 
static voidoperator 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 30 of file XMLChartPropertySetMapper.hxx.

Constructor & Destructor Documentation

XMLChartPropHdlFactory::XMLChartPropHdlFactory ( SvXMLExport const *  pExport)

Definition at line 92 of file PropertyMaps.cxx.

XMLChartPropHdlFactory::~XMLChartPropHdlFactory ( )
overridevirtual

Definition at line 97 of file PropertyMaps.cxx.

Member Function Documentation

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 101 of file PropertyMaps.cxx.

References XMLPropertyHandlerFactory::GetPropertyHandler(), SvXMLExport::getSaneDefaultVersion(), m_pExport, 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

SvXMLExport const* const XMLChartPropHdlFactory::m_pExport
private

Definition at line 33 of file XMLChartPropertySetMapper.hxx.

Referenced by GetPropertyHandler().


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