20#ifndef INCLUDED_XMLOFF_ENUMPROPERTYHDL_HXX
21#define INCLUDED_XMLOFF_ENUMPROPERTYHDL_HXX
38 template<
typename EnumT>
40 : mpEnumMap( reinterpret_cast<const
SvXMLEnumMapEntry<sal_uInt16>*>(pEnumMap) ), mrType( ::
cppu::UnoType<EnumT>::
get() ) {}
43 virtual bool importXML(
const OUString& rStrImpValue, css::uno::Any& rValue,
const SvXMLUnitConverter& rUnitConverter )
const override;
44 virtual bool exportXML( OUString& rStrExpValue,
const css::uno::Any& rValue,
const SvXMLUnitConverter& rUnitConverter )
const override;
the SvXMLTypeConverter converts values of various types from their internal representation to the tex...
PropertyHandler for a generic xml enumeration type:
const css::uno::Type & mrType
XMLEnumPropertyHdl(const SvXMLEnumMapEntry< EnumT > *pEnumMap)
const SvXMLEnumMapEntry< sal_uInt16 > * mpEnumMap
Abstract base-class for different XML-types.
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.
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.
css::uno::Reference< css::linguistic2::XProofreadingIterator > get(css::uno::Reference< css::uno::XComponentContext > const &context)