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

Abstract base-class for different XML-types. More...

#include <XMLConstantsPropertyHandler.hxx>

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

Public Member Functions

template<typename EnumT >
 XMLConstantsPropertyHandler (const SvXMLEnumMapEntry< EnumT > *pM, enum::xmloff::token::XMLTokenEnum eDflt)
 
virtual ~XMLConstantsPropertyHandler () override
 
virtual bool importXML (const OUString &rStrImpValue, css::uno::Any &rValue, const SvXMLUnitConverter &rUnitConverter) const override
 Imports the given value in case of the given XML-data-type. More...
 
virtual bool exportXML (OUString &rStrExpValue, const css::uno::Any &rValue, const SvXMLUnitConverter &rUnitConverter) const override
 Exports the given value in case of the given XML-data-type. More...
 
- Public Member Functions inherited from XMLPropertyHandler
virtual ~XMLPropertyHandler ()
 
virtual bool equals (const css::uno::Any &r1, const css::uno::Any &r2) const
 Compares two Any's in case of the given XML-data-type. More...
 

Private Attributes

const SvXMLEnumMapEntry< sal_uInt16 > * pMap
 
enum::xmloff::token::XMLTokenEnum eDefault
 

Detailed Description

Abstract base-class for different XML-types.

Derivations of this class knows how to compare, im/export a special XML-type

Definition at line 35 of file XMLConstantsPropertyHandler.hxx.

Constructor & Destructor Documentation

template<typename EnumT >
XMLConstantsPropertyHandler::XMLConstantsPropertyHandler ( const SvXMLEnumMapEntry< EnumT > *  pM,
enum::xmloff::token::XMLTokenEnum  eDflt 
)
inline

Definition at line 42 of file XMLConstantsPropertyHandler.hxx.

XMLConstantsPropertyHandler::~XMLConstantsPropertyHandler ( )
overridevirtual

Definition at line 28 of file XMLConstantsPropertyHandler.cxx.

Member Function Documentation

bool XMLConstantsPropertyHandler::exportXML ( OUString &  rStrExpValue,
const css::uno::Any &  rValue,
const SvXMLUnitConverter rUnitConverter 
) const
overridevirtual

Exports the given value in case of the given XML-data-type.

Implements XMLPropertyHandler.

Definition at line 47 of file XMLConstantsPropertyHandler.cxx.

References SvXMLUnitConverter::convertEnum(), eDefault, and pMap.

bool XMLConstantsPropertyHandler::importXML ( const OUString &  rStrImpValue,
css::uno::Any &  rValue,
const SvXMLUnitConverter rUnitConverter 
) const
overridevirtual

Imports the given value in case of the given XML-data-type.

Implements XMLPropertyHandler.

Definition at line 32 of file XMLConstantsPropertyHandler.cxx.

References SvXMLUnitConverter::convertEnum(), and pMap.

Member Data Documentation

enum ::xmloff::token::XMLTokenEnum XMLConstantsPropertyHandler::eDefault
private

Definition at line 38 of file XMLConstantsPropertyHandler.hxx.

Referenced by exportXML().

const SvXMLEnumMapEntry<sal_uInt16>* XMLConstantsPropertyHandler::pMap
private

Definition at line 37 of file XMLConstantsPropertyHandler.hxx.

Referenced by exportXML(), and importXML().


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