33#include <com/sun/star/text/HorizontalAdjust.hpp>
34#include <rtl/ustrbuf.hxx>
47 const vector<XMLPropertyState> * pProperties,
48 sal_uInt32
const nIdx,
54 text::HorizontalAdjust eLineAdjust = text::HorizontalAdjust_LEFT;
55 sal_Int32 nLineColor = 0;
56 sal_Int32 nLineDistance = 0;
58 sal_Int32 nLineTextDistance = 0;
59 sal_Int16 nLineWeight = 0;
63 sal_uInt32
nCount = pProperties->size();
71 switch (rMapper->GetEntryContextId(rState.
mnIndex))
77 eLineAdjust =
static_cast<text::HorizontalAdjust
>(nTmp);
84 rState.
maValue >>= nLineDistance;
87 rState.
maValue >>= nLineRelWidth;
90 rState.
maValue >>= nLineTextDistance;
94 assert(
i == nIdx &&
"received wrong property state index");
110 sBuf.makeStringAndClear());
114 if (nLineTextDistance > 0)
119 sBuf.makeStringAndClear());
123 if (nLineDistance > 0)
128 sBuf.makeStringAndClear());
141 sBuf, nLineStyle, aXML_LineStyle_Enum ) )
144 sBuf.makeStringAndClear());
150 {
XML_LEFT, text::HorizontalAdjust_LEFT },
151 {
XML_CENTER, text::HorizontalAdjust_CENTER },
152 {
XML_RIGHT, text::HorizontalAdjust_RIGHT },
160 sBuf.makeStringAndClear());
166 sBuf.makeStringAndClear());
171 sBuf.makeStringAndClear());
#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
void AddAttribute(sal_uInt16 nPrefix, const OUString &rName, const OUString &rValue)
const SvXMLUnitConverter & GetMM100UnitConverter() const
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...
void convertMeasureToXML(OUStringBuffer &rBuffer, sal_Int32 nMeasure) const
convert measure to string: from meCoreMeasureUnit to meXMLMeasureUnit
static bool convertPercent(sal_Int32 &rValue, std::u16string_view rString)
static bool convertColor(sal_Int32 &rColor, std::u16string_view rValue)
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.
constexpr sal_uInt16 XML_NAMESPACE_STYLE