LibreOffice Module xmloff (master) 1
|
#include <PageMasterPropHdlFactory.hxx>
Public Member Functions | |
XMLPageMasterPropHdlFactory () | |
virtual | ~XMLPageMasterPropHdlFactory () override |
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 () |
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 24 of file PageMasterPropHdlFactory.hxx.
XMLPageMasterPropHdlFactory::XMLPageMasterPropHdlFactory | ( | ) |
Definition at line 52 of file PageMasterPropHdlFactory.cxx.
|
overridevirtual |
Definition at line 56 of file PageMasterPropHdlFactory.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 60 of file PageMasterPropHdlFactory.cxx.
References aXML_BitmapMode_EnumMap, aXML_FillStyle_EnumMap, aXML_RefPoint_EnumMap, aXML_TextGridMode_ConstantMap, XMLPropertyHandlerFactory::GetPropertyHandler(), xmloff::token::GetXMLToken(), MID_FLAG_MASK, nType, XMLPropertyHandlerFactory::PutHdlCache(), xmloff::token::XML_ANNOTATIONS, xmloff::token::XML_BORDER, xmloff::token::XML_CHARTS, xmloff::token::XML_CONTINUE, xmloff::token::XML_DRAWINGS, xmloff::token::XML_FORMULAS, xmloff::token::XML_FULL, xmloff::token::XML_GRID, xmloff::token::XML_HEADERS, xmloff::token::XML_LANDSCAPE, xmloff::token::XML_LTR, xmloff::token::XML_NONE, xmloff::token::XML_OBJECTS, XML_PM_TYPE_CENTER_HORIZONTAL, XML_PM_TYPE_CENTER_VERTICAL, XML_PM_TYPE_FIRSTPAGENUMBER, XML_PM_TYPE_NUMFORMAT, XML_PM_TYPE_NUMLETTERSYNC, XML_PM_TYPE_PAGESTYLELAYOUT, XML_PM_TYPE_PAPERTRAYNUMBER, XML_PM_TYPE_PRINTANNOTATIONS, XML_PM_TYPE_PRINTCHARTS, XML_PM_TYPE_PRINTDRAWING, XML_PM_TYPE_PRINTFORMULAS, XML_PM_TYPE_PRINTGRID, XML_PM_TYPE_PRINTHEADERS, XML_PM_TYPE_PRINTOBJECTS, XML_PM_TYPE_PRINTORIENTATION, XML_PM_TYPE_PRINTPAGEORDER, XML_PM_TYPE_PRINTZEROVALUES, xmloff::token::XML_PORTRAIT, XML_SW_TYPE_BITMAP_MODE, XML_SW_TYPE_BITMAP_REFPOINT, XML_SW_TYPE_BITMAPREPOFFSETX, XML_SW_TYPE_BITMAPREPOFFSETY, XML_SW_TYPE_FILLBITMAPSIZE, XML_SW_TYPE_FILLSTYLE, XML_SW_TYPE_LOGICAL_SIZE, XML_SW_TYPE_PRESPAGE_BACKSIZE, XML_SW_TYPE_RTLGUTTER, xmloff::token::XML_TTB, XML_TYPE_LAYOUT_GRID_MODE, XML_TYPE_TEXT_COLUMNS, and xmloff::token::XML_ZERO_VALUES.