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;
54using ::com::sun::star::xml::sax::XAttributeList;
60 vector<XMLPropertyState> & rProps,
65 rMapper(
std::move(xMapperRef)),
76 const Reference<css::xml::sax::XFastAttributeList> & xAttrList)
79 sal_Int16 nLineWeight = 0;
80 sal_Int32 nLineColor = 0;
82 text::HorizontalAdjust eLineAdjust = text::HorizontalAdjust_LEFT;
83 sal_Int32 nLineTextDistance = 0;
84 sal_Int32 nLineDistance = 0;
94 switch (aIter.getToken())
98 if (
GetImport().GetMM100UnitConverter().convertMeasureToCore(
99 nTmp, aIter.toView()))
101 nLineWeight =
static_cast<sal_Int16
>(nTmp);
107 if (
GetImport().GetMM100UnitConverter().convertMeasureToCore(
108 nTmp, aIter.toView()))
109 nLineTextDistance = nTmp;
114 if (
GetImport().GetMM100UnitConverter().convertMeasureToCore(
115 nTmp, aIter.toView()))
116 nLineDistance = nTmp;
123 {
XML_LEFT, text::HorizontalAdjust_LEFT },
124 {
XML_CENTER, text::HorizontalAdjust_CENTER },
125 {
XML_RIGHT, text::HorizontalAdjust_RIGHT },
136 nLineRelWidth =
static_cast<sal_uInt8>(nTmp);
194 "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)