22 #include <rtl/ustrbuf.hxx>
28 struct SvXMLSignedEnumMapEntry
34 const SvXMLSignedEnumMapEntry aXMLChartSymbolTypeEnumMap[] =
42 const SvXMLSignedEnumMapEntry aXMLChartSymbolNameMap[] =
63 OUStringBuffer & rBuffer,
65 const SvXMLSignedEnumMapEntry *pMap )
71 if( pMap->nValue == nValue )
87 std::u16string_view
rValue,
88 const SvXMLSignedEnumMapEntry *pMap )
107 : m_bIsNamedSymbol( bIsNamedSymbol )
116 bool bResult =
false;
120 sal_Int32 nValue = -3;
121 bResult = lcl_convertEnum( nValue, rStrImpValue, aXMLChartSymbolNameMap );
126 sal_Int32 nValue = -3;
127 bResult = lcl_convertEnum( nValue, rStrImpValue, aXMLChartSymbolTypeEnumMap );
137 bool bResult =
false;
139 sal_Int32
nType = -3;
145 bResult = lcl_convertEnum( aBuf, nType, aXMLChartSymbolNameMap );
146 rStrExpValue = aBuf.makeStringAndClear();
153 bResult = lcl_convertEnum( aBuf, nType, aXMLChartSymbolTypeEnumMap );
154 rStrExpValue = aBuf.makeStringAndClear();
the SvXMLTypeConverter converts values of various types from their internal representation to the tex...
bool IsXMLToken(std::u16string_view rString, enum XMLTokenEnum eToken)
compare eToken to the string
virtual ~XMLSymbolTypePropertyHdl() override
css::uno::Any const & rValue
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...
XMLTokenEnum
The enumeration of all XML tokens.
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...
const OUString & GetXMLToken(enum XMLTokenEnum eToken)
return the OUString representation for eToken
Handling of tokens in XML:
XMLSymbolTypePropertyHdl(bool bIsNamedSymbol)