LibreOffice Module xmloff (master) 1
|
#include <controlpropertyhdl.hxx>
Public Member Functions | |
OControlPropertyHandlerFactory () | |
virtual const XMLPropertyHandler * | GetPropertyHandler (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 XMLPropertyHandler * | GetPropertyHandler (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 | |
std::unique_ptr< XMLConstantsPropertyHandler > | m_pTextAlignHandler |
std::unique_ptr< OControlBorderHandler > | m_pControlBorderStyleHandler |
std::unique_ptr< OControlBorderHandler > | m_pControlBorderColorHandler |
std::unique_ptr< ORotationAngleHandler > | m_pRotationAngleHandler |
std::unique_ptr< OFontWidthHandler > | m_pFontWidthHandler |
std::unique_ptr< XMLConstantsPropertyHandler > | m_pFontEmphasisHandler |
std::unique_ptr< XMLConstantsPropertyHandler > | m_pFontReliefHandler |
std::unique_ptr< XMLNamedBoolPropertyHdl > | m_pTextLineModeHandler |
Additional Inherited Members | |
Static Public Member Functions inherited from XMLPropertyHandlerFactory | |
static std::unique_ptr< XMLPropertyHandler > | CreatePropertyHandler (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 XMLPropertyHandler * | GetHdlCache (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 |
Definition at line 105 of file controlpropertyhdl.hxx.
xmloff::OControlPropertyHandlerFactory::OControlPropertyHandlerFactory | ( | ) |
Definition at line 46 of file controlpropertyhdl.cxx.
|
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.
|
mutableprivate |
Definition at line 109 of file controlpropertyhdl.hxx.
Referenced by GetPropertyHandler().
|
mutableprivate |
Definition at line 108 of file controlpropertyhdl.hxx.
Referenced by GetPropertyHandler().
|
mutableprivate |
Definition at line 112 of file controlpropertyhdl.hxx.
Referenced by GetPropertyHandler().
|
mutableprivate |
Definition at line 113 of file controlpropertyhdl.hxx.
Referenced by GetPropertyHandler().
|
mutableprivate |
Definition at line 111 of file controlpropertyhdl.hxx.
Referenced by GetPropertyHandler().
|
mutableprivate |
Definition at line 110 of file controlpropertyhdl.hxx.
Referenced by GetPropertyHandler().
|
mutableprivate |
Definition at line 107 of file controlpropertyhdl.hxx.
Referenced by GetPropertyHandler().
|
mutableprivate |
Definition at line 114 of file controlpropertyhdl.hxx.
Referenced by GetPropertyHandler().