22#include <rtl/ustrbuf.hxx>
28struct SvXMLSignedEnumMapEntry
34const SvXMLSignedEnumMapEntry aXMLChartSymbolTypeEnumMap[] =
42const 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;
121 bResult = lcl_convertEnum(
nValue, rStrImpValue, aXMLChartSymbolNameMap );
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...
XMLSymbolTypePropertyHdl(bool bIsNamedSymbol)
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.
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 ~XMLSymbolTypePropertyHdl() override
Handling of tokens in XML:
XMLTokenEnum
The enumeration of all XML tokens.
@ XML_GRADIENTSTYLE_SQUARE
bool IsXMLToken(std::u16string_view rString, enum XMLTokenEnum eToken)
compare eToken to the string
const OUString & GetXMLToken(enum XMLTokenEnum eToken)
return the OUString representation for eToken