23#include <rtl/ustring.hxx>
26#include <com/sun/star/uno/Reference.h>
27#include <com/sun/star/xml/sax/XAttributeList.hpp>
28#include <com/sun/star/text/HorizontalAdjust.hpp>
52using ::com::sun::star::uno::Any;
53using ::com::sun::star::uno::Reference;
59 vector<XMLPropertyState> & rProps,
64 rMapper(
std::move(xMapperRef)),
75 const Reference<css::xml::sax::XFastAttributeList> & xAttrList)
78 sal_Int16 nLineWeight = 0;
79 sal_Int32 nLineColor = 0;
81 text::HorizontalAdjust eLineAdjust = text::HorizontalAdjust_LEFT;
82 sal_Int32 nLineTextDistance = 0;
83 sal_Int32 nLineDistance = 0;
93 switch (aIter.getToken())
97 if (
GetImport().GetMM100UnitConverter().convertMeasureToCore(
98 nTmp, aIter.toView()))
100 nLineWeight =
static_cast<sal_Int16
>(nTmp);
106 if (
GetImport().GetMM100UnitConverter().convertMeasureToCore(
107 nTmp, aIter.toView()))
108 nLineTextDistance = nTmp;
113 if (
GetImport().GetMM100UnitConverter().convertMeasureToCore(
114 nTmp, aIter.toView()))
115 nLineDistance = nTmp;
122 {
XML_LEFT, text::HorizontalAdjust_LEFT },
123 {
XML_CENTER, text::HorizontalAdjust_CENTER },
124 {
XML_RIGHT, text::HorizontalAdjust_RIGHT },
135 nLineRelWidth =
static_cast<sal_uInt8>(nTmp);
193 "Received wrong property map index!" );
#define CTF_PM_FTN_LINE_STYLE
#define CTF_PM_FTN_LINE_WEIGHT
#define CTF_PM_FTN_LINE_WIDTH
#define CTF_PM_FTN_LINE_COLOR
#define CTF_PM_FTN_DISTANCE
#define CTF_PM_FTN_LINE_DISTANCE
#define CTF_PM_FTN_LINE_ADJUST
This class deliberately does not support XWeak, to improve performance when loading large documents.
SvXMLImport & GetImport()
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...
static bool convertPercent(sal_Int32 &rValue, std::u16string_view rString)
static bool convertColor(sal_Int32 &rColor, std::u16string_view rValue)
#define SAL_WARN_IF(condition, area, stream)
FastAttributeList & castToFastAttributeList(const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
Handling of tokens in XML:
@ XML_DISTANCE_BEFORE_SEP
SvXMLEnumMapEntry< text::HorizontalAdjust > const aXML_HorizontalAdjust_Enum[]
Smart struct to transport an Any with an index to the appropriate property-name.
#define XMLOFF_WARN_UNKNOWN(area, rIter)
#define XML_ELEMENT(prefix, name)