23#include <rtl/ustring.hxx>
24#include <rtl/ustrbuf.hxx>
25#include <com/sun/star/uno/Any.hxx>
42 switch(
mrType.getTypeClass() )
48 rValue <<= static_cast<sal_Int32>(
nValue);
51 rValue <<= static_cast<sal_Int16>(
nValue);
54 rValue <<= static_cast<sal_Int8>(
nValue);
57 assert(!
"Wrong type for enum property handler!");
70 if(!::cppu::enum2int(
nValue, rValue) )
78 rStrExpValue = aOut.makeStringAndClear();
the SvXMLTypeConverter converts values of various types from their internal representation to the tex...
static bool convertEnum(EnumT &rEnum, std::u16string_view rValue, const SvXMLEnumMapEntry< EnumT > *pMap)
convert string to enum using given enum map, if the enum is not found in the map, this method will re...
const css::uno::Type & mrType
virtual bool importXML(const OUString &rStrImpValue, css::uno::Any &rValue, const SvXMLUnitConverter &rUnitConverter) const override
Imports the given value according to the XML-data-type corresponding to the derived class.
virtual bool exportXML(OUString &rStrExpValue, const css::uno::Any &rValue, const SvXMLUnitConverter &rUnitConverter) const override
Exports the given value according to the XML-data-type corresponding to the derived class.
const SvXMLEnumMapEntry< sal_uInt16 > * mpEnumMap
virtual ~XMLEnumPropertyHdl() override