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

#include <sdpropls.hxx>

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

Public Member Functions

 XMLSdPropHdlFactory (css::uno::Reference< css::frame::XModel > const &xModel, SvXMLExport &rExport)
 
 XMLSdPropHdlFactory (css::uno::Reference< css::frame::XModel > const &xModel, SvXMLImport &rImport)
 
virtual ~XMLSdPropHdlFactory () 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

css::uno::Reference< css::frame::XModel > mxModel
 
SvXMLExportmpExport
 
SvXMLImportmpImport
 

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 54 of file sdpropls.hxx.

Constructor & Destructor Documentation

XMLSdPropHdlFactory::XMLSdPropHdlFactory ( css::uno::Reference< css::frame::XModel > const &  xModel,
SvXMLExport rExport 
)
XMLSdPropHdlFactory::XMLSdPropHdlFactory ( css::uno::Reference< css::frame::XModel > const &  xModel,
SvXMLImport rImport 
)
XMLSdPropHdlFactory::~XMLSdPropHdlFactory ( )
overridevirtual

Definition at line 990 of file sdpropls.cxx.

Member Function Documentation

const XMLPropertyHandler * XMLSdPropHdlFactory::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 994 of file sdpropls.cxx.

References xmloff::aAnimations_EnumMap_TransitionSubType, xmloff::aAnimations_EnumMap_TransitionType, xmloff::OControlBorderHandler::COLOR, XMLPropertyHandlerFactory::GetPropertyHandler(), SvXMLExport::getSaneDefaultVersion(), xmloff::token::GetXMLToken(), mpExport, mpImport, mxModel, SvtSaveOptions::ODFSVER_012_EXT_COMPAT, XMLPropertyHandlerFactory::PutHdlCache(), xmloff::OControlBorderHandler::STYLE, xmloff::token::XML_ABOVE, xmloff::token::XML_BELOW, xmloff::token::XML_BORDER, xmloff::token::XML_DISABLED, xmloff::token::XML_ENABLED, xmloff::token::XML_FIXED, xmloff::token::XML_FORWARD, xmloff::token::XML_FREE, xmloff::token::XML_FULL, xmloff::token::XML_HIDDEN, xmloff::token::XML_HORIZONTAL, xmloff::token::XML_INVERSE, xmloff::token::XML_NONE, xmloff::token::XML_NORMAL, xmloff::token::XML_REVERSE, XML_SD_TYPE_BACKFACE_CULLING, XML_SD_TYPE_BITMAP_MODE, XML_SD_TYPE_BITMAP_REFPOINT, XML_SD_TYPE_BITMAPREPOFFSETX, XML_SD_TYPE_BITMAPREPOFFSETY, XML_SD_TYPE_CAPTION_ANGLE_TYPE, XML_SD_TYPE_CAPTION_ESC_ABS, XML_SD_TYPE_CAPTION_ESC_DIR, XML_SD_TYPE_CAPTION_ESC_REL, XML_SD_TYPE_CAPTION_IS_ESC_REL, XML_SD_TYPE_CAPTION_TYPE, XML_SD_TYPE_CELL_ROTATION_ANGLE, XML_SD_TYPE_CONTROL_BORDER, XML_SD_TYPE_CONTROL_BORDER_COLOR, XML_SD_TYPE_DATETIME_FORMAT, XML_SD_TYPE_DATETIMEUPDATE, XML_SD_TYPE_FILLBITMAPSIZE, XML_SD_TYPE_FILLSTYLE, XML_SD_TYPE_FITTOSIZE, XML_SD_TYPE_FITTOSIZE_AUTOFIT, XML_SD_TYPE_FONTWORK_ADJUST, XML_SD_TYPE_FONTWORK_FORM, XML_SD_TYPE_FONTWORK_SHADOW, XML_SD_TYPE_FONTWORK_STYLE, XML_SD_TYPE_HEADER_FOOTER_VISIBILITY_TYPE, XML_SD_TYPE_IMAGE_SCALE_MODE, XML_SD_TYPE_LINECAP, XML_SD_TYPE_LINEJOIN, XML_SD_TYPE_LOGICAL_SIZE, XML_SD_TYPE_MEASURE_HALIGN, XML_SD_TYPE_MEASURE_PLACING, XML_SD_TYPE_MEASURE_UNIT, XML_SD_TYPE_MEASURE_VALIGN, XML_SD_TYPE_MOVE_PROTECT, XML_SD_TYPE_NORMALS_DIRECTION, XML_SD_TYPE_NORMALS_KIND, XML_SD_TYPE_NUMBULLET, XML_SD_TYPE_OPACITY, XML_SD_TYPE_PRESPAGE_BACKSIZE, XML_SD_TYPE_PRESPAGE_DURATION, XML_SD_TYPE_PRESPAGE_SPEED, XML_SD_TYPE_PRESPAGE_STYLE, XML_SD_TYPE_PRESPAGE_TYPE, XML_SD_TYPE_PRESPAGE_VISIBILITY, XML_SD_TYPE_SIZE_PROTECT, XML_SD_TYPE_STROKE, XML_SD_TYPE_TEX_GENERATION_MODE_X, XML_SD_TYPE_TEX_GENERATION_MODE_Y, XML_SD_TYPE_TEX_KIND, XML_SD_TYPE_TEX_MODE, XML_SD_TYPE_TEXT_ALIGN, XML_SD_TYPE_TEXT_CROSSEDOUT, XML_SD_TYPE_TRANSITION_TYPE, XML_SD_TYPE_TRANSTIION_DIRECTION, XML_SD_TYPE_TRANSTIION_SUBTYPE, XML_SD_TYPE_VERTICAL_ALIGN, XML_SD_TYPE_VISIBLE_HIDDEN, XML_SD_TYPE_WRITINGMODE, xmloff::token::XML_SOLID, XML_TYPE_CONTROL_TEXT_EMPHASIZE, XML_TYPE_SD_MIRROR, XML_TYPE_TEXT_ANIMATION, XML_TYPE_TEXT_ANIMATION_BLINKING, XML_TYPE_TEXT_ANIMATION_DIRECTION, XML_TYPE_TEXT_ANIMATION_STEPS, XML_TYPE_TEXT_CLIP, XML_TYPE_TEXT_CLIP11, XML_TYPE_WRAP_OPTION, xmloff::token::XML_VARIABLE, and xmloff::token::XML_VISIBLE.

Member Data Documentation

SvXMLExport* XMLSdPropHdlFactory::mpExport
private

Definition at line 58 of file sdpropls.hxx.

Referenced by GetPropertyHandler().

SvXMLImport* XMLSdPropHdlFactory::mpImport
private

Definition at line 59 of file sdpropls.hxx.

Referenced by GetPropertyHandler().

css::uno::Reference< css::frame::XModel > XMLSdPropHdlFactory::mxModel
private

Definition at line 57 of file sdpropls.hxx.

Referenced by GetPropertyHandler().


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