22#include <com/sun/star/drawing/Hatch.hpp>
32#include <rtl/ustrbuf.hxx>
33#include <rtl/ustring.hxx>
58 const uno::Reference< xml::sax::XFastAttributeList >& xAttrList,
62 OUString aDisplayName;
64 drawing::Hatch aHatch;
65 aHatch.Style = drawing::HatchStyle_SINGLE;
74 switch( aIter.getToken() )
78 rStrName = aIter.toString();
82 aDisplayName = aIter.toString();
101 aHatch.Angle = sal_Int16(
nValue);
111 if( !aDisplayName.isEmpty() )
115 rStrName = aDisplayName;
127 const OUString& rStrName,
130 drawing::Hatch aHatch;
132 if( rStrName.isEmpty() )
135 if( !(rValue >>= aHatch) )
149 bool bEncoded =
false;
157 aStrValue = aOut.makeStringAndClear();
162 aStrValue = aOut.makeStringAndClear();
167 aStrValue = aOut.makeStringAndClear();
SvXMLEnumMapEntry< drawing::HatchStyle > const pXML_HatchStyle_Enum[]
const SvXMLImport & m_rImport
void AddAttribute(sal_uInt16 nPrefix, const OUString &rName, const OUString &rValue)
OUString EncodeStyleName(const OUString &rName, bool *pEncoded=nullptr) const
const SvXMLUnitConverter & GetMM100UnitConverter() const
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...
bool convertMeasureToCore(sal_Int32 &rValue, std::u16string_view rString, sal_Int32 nMin=SAL_MIN_INT32, sal_Int32 nMax=SAL_MAX_INT32) const
convert string to measure with meCoreMeasureUnit, using optional min and max values
void convertMeasureToXML(OUStringBuffer &rBuffer, sal_Int32 nMeasure) const
convert measure to string: from meCoreMeasureUnit to meXMLMeasureUnit
void exportXML(const OUString &rStrName, const css::uno::Any &rValue)
XMLHatchStyleExport(SvXMLExport &rExport)
XMLHatchStyleImport(SvXMLImport &rImport)
void importXML(const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Any &rValue, OUString &rStrName)
static bool convertColor(sal_Int32 &rColor, std::u16string_view rValue)
static bool convertNumber(sal_Int32 &rValue, std::u16string_view aString, sal_Int32 nMin=SAL_MIN_INT32, sal_Int32 nMax=SAL_MAX_INT32)
FastAttributeList & castToFastAttributeList(const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
Handling of tokens in XML:
#define XMLOFF_WARN_UNKNOWN(area, rIter)
#define XML_ELEMENT(prefix, name)
constexpr sal_uInt16 XML_NAMESPACE_DRAW