LibreOffice Module xmloff (master)  1
Public Member Functions | Private Attributes | List of all members
xmloff::OControlPropertyHandlerFactory Class Reference

#include <controlpropertyhdl.hxx>

Inheritance diagram for xmloff::OControlPropertyHandlerFactory:
[legend]
Collaboration diagram for xmloff::OControlPropertyHandlerFactory:
[legend]

Public Member Functions

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

std::unique_ptr< XMLConstantsPropertyHandlerm_pTextAlignHandler
 
std::unique_ptr< OControlBorderHandlerm_pControlBorderStyleHandler
 
std::unique_ptr< OControlBorderHandlerm_pControlBorderColorHandler
 
std::unique_ptr< ORotationAngleHandlerm_pRotationAngleHandler
 
std::unique_ptr< OFontWidthHandlerm_pFontWidthHandler
 
std::unique_ptr< XMLConstantsPropertyHandlerm_pFontEmphasisHandler
 
std::unique_ptr< XMLConstantsPropertyHandlerm_pFontReliefHandler
 
std::unique_ptr< XMLNamedBoolPropertyHdlm_pTextLineModeHandler
 

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 105 of file controlpropertyhdl.hxx.

Constructor & Destructor Documentation

xmloff::OControlPropertyHandlerFactory::OControlPropertyHandlerFactory ( )

Definition at line 46 of file controlpropertyhdl.cxx.

Member Function Documentation

const XMLPropertyHandler * xmloff::OControlPropertyHandlerFactory::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 50 of file controlpropertyhdl.cxx.

References xmloff::aFontEmphasisMap, xmloff::aFontReliefMap, xmloff::aTextAlignMap, xmloff::OControlBorderHandler::COLOR, XMLPropertyHandlerFactory::GetPropertyHandler(), m_pControlBorderColorHandler, m_pControlBorderStyleHandler, m_pFontEmphasisHandler, m_pFontReliefHandler, m_pFontWidthHandler, m_pRotationAngleHandler, m_pTextAlignHandler, m_pTextLineModeHandler, xmloff::OControlBorderHandler::STYLE, xmloff::token::XML_CONTINUOUS, xmloff::token::XML_NONE, xmloff::token::XML_SKIP_WHITE_SPACE, xmloff::token::XML_TOKEN_INVALID, XML_TYPE_CONTROL_BORDER, XML_TYPE_CONTROL_BORDER_COLOR, XML_TYPE_CONTROL_TEXT_EMPHASIZE, XML_TYPE_FONT_WIDTH, XML_TYPE_ROTATION_ANGLE, XML_TYPE_TEXT_ALIGN, XML_TYPE_TEXT_FONT_RELIEF, and XML_TYPE_TEXT_LINE_MODE.

Member Data Documentation

std::unique_ptr<OControlBorderHandler> xmloff::OControlPropertyHandlerFactory::m_pControlBorderColorHandler
mutableprivate

Definition at line 109 of file controlpropertyhdl.hxx.

Referenced by GetPropertyHandler().

std::unique_ptr<OControlBorderHandler> xmloff::OControlPropertyHandlerFactory::m_pControlBorderStyleHandler
mutableprivate

Definition at line 108 of file controlpropertyhdl.hxx.

Referenced by GetPropertyHandler().

std::unique_ptr<XMLConstantsPropertyHandler> xmloff::OControlPropertyHandlerFactory::m_pFontEmphasisHandler
mutableprivate

Definition at line 112 of file controlpropertyhdl.hxx.

Referenced by GetPropertyHandler().

std::unique_ptr<XMLConstantsPropertyHandler> xmloff::OControlPropertyHandlerFactory::m_pFontReliefHandler
mutableprivate

Definition at line 113 of file controlpropertyhdl.hxx.

Referenced by GetPropertyHandler().

std::unique_ptr<OFontWidthHandler> xmloff::OControlPropertyHandlerFactory::m_pFontWidthHandler
mutableprivate

Definition at line 111 of file controlpropertyhdl.hxx.

Referenced by GetPropertyHandler().

std::unique_ptr<ORotationAngleHandler> xmloff::OControlPropertyHandlerFactory::m_pRotationAngleHandler
mutableprivate

Definition at line 110 of file controlpropertyhdl.hxx.

Referenced by GetPropertyHandler().

std::unique_ptr<XMLConstantsPropertyHandler> xmloff::OControlPropertyHandlerFactory::m_pTextAlignHandler
mutableprivate

Definition at line 107 of file controlpropertyhdl.hxx.

Referenced by GetPropertyHandler().

std::unique_ptr<XMLNamedBoolPropertyHdl> xmloff::OControlPropertyHandlerFactory::m_pTextLineModeHandler
mutableprivate

Definition at line 114 of file controlpropertyhdl.hxx.

Referenced by GetPropertyHandler().


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