LibreOffice Module xmloff (master) 1
Public Member Functions | List of all members
XMLTextPropertyHandlerFactory Class Reference

#include <txtprhdl.hxx>

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

Public Member Functions

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

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 23 of file txtprhdl.hxx.

Constructor & Destructor Documentation

◆ XMLTextPropertyHandlerFactory()

XMLTextPropertyHandlerFactory::XMLTextPropertyHandlerFactory ( )

Definition at line 1428 of file txtprhdl.cxx.

Member Function Documentation

◆ GetPropertyHandler()

const XMLPropertyHandler * XMLTextPropertyHandlerFactory::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 1432 of file txtprhdl.cxx.

References XMLPropertyHandlerFactory::GetPropertyHandler(), GetPropertyHandler(), nType, and XMLPropertyHandlerFactory::PutHdlCache().

Referenced by GetPropertyHandler().


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