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...
 
virtual bool importXML (const OUString &rStrImpValue, css::uno::Any &rValue, const SvXMLUnitConverter &rUnitConverter) const =0
 Imports the given value according to the XML-data-type corresponding to the derived class. More...
 
virtual bool exportXML (OUString &rStrExpValue, const css::uno::Any &rValue, const SvXMLUnitConverter &rUnitConverter) const =0
 Exports the given value according to the XML-data-type corresponding to the derived class. More...
 

Private Attributes

const SvXMLEnumMapEntry< sal_uInt16 > * m_pMap
 
enum ::xmloff::token::XMLTokenEnum m_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

◆ XMLConstantsPropertyHandler()

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::~XMLConstantsPropertyHandler ( )
overridevirtual

Definition at line 28 of file XMLConstantsPropertyHandler.cxx.

Member Function Documentation

◆ exportXML()

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(), m_eDefault, and m_pMap.

◆ importXML()

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 m_pMap.

Member Data Documentation

◆ m_eDefault

enum ::xmloff::token::XMLTokenEnum XMLConstantsPropertyHandler::m_eDefault
private

Definition at line 38 of file XMLConstantsPropertyHandler.hxx.

Referenced by exportXML().

◆ m_pMap

const SvXMLEnumMapEntry<sal_uInt16>* XMLConstantsPropertyHandler::m_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: