24#include <rtl/ustrbuf.hxx>
25#include <com/sun/star/uno/Any.hxx>
26#include <com/sun/star/style/LineSpacing.hpp>
27#include <com/sun/star/style/LineSpacingMode.hpp>
43 style::LineSpacing aLSp;
46 if( -1 != rStrImpValue.indexOf(
'%' ) )
48 aLSp.Mode = style::LineSpacingMode::PROP;
51 aLSp.Height = sal::static_int_cast< sal_Int16 >(nTemp);
55 aLSp.Mode = style::LineSpacingMode::PROP;
60 aLSp.Mode = style::LineSpacingMode::FIX;
62 nTemp, rStrImpValue, 0x0000, 0xffff))
64 aLSp.Height = sal::static_int_cast< sal_Int16 >(nTemp);
75 style::LineSpacing aLSp;
76 if(!(rValue >>= aLSp))
79 if( style::LineSpacingMode::PROP != aLSp.Mode && style::LineSpacingMode::FIX != aLSp.Mode )
82 if( style::LineSpacingMode::PROP == aLSp.Mode )
91 rStrExpValue = aOut.makeStringAndClear();
92 return !rStrExpValue.isEmpty();
105 style::LineSpacing aLSp;
108 aLSp.Mode = style::LineSpacingMode::MINIMUM;
111 aLSp.Height = sal::static_int_cast< sal_Int16 >(nTemp);
121 style::LineSpacing aLSp;
122 if(!(rValue >>= aLSp))
125 if( style::LineSpacingMode::MINIMUM != aLSp.Mode )
130 rStrExpValue = aOut.makeStringAndClear();
131 return !rStrExpValue.isEmpty();
144 style::LineSpacing aLSp;
147 aLSp.Mode = style::LineSpacingMode::LEADING;
150 aLSp.Height = sal::static_int_cast< sal_Int16 >(nTemp);
160 style::LineSpacing aLSp;
161 if(!(rValue >>= aLSp))
164 if( style::LineSpacingMode::LEADING != aLSp.Mode )
169 rStrExpValue = aOut.makeStringAndClear();
170 return !rStrExpValue.isEmpty();
the SvXMLTypeConverter converts values of various types from their internal representation to the tex...
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
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 ~XMLLineHeightAtLeastHdl() override
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 ~XMLLineHeightHdl() override
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 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 ~XMLLineSpacingHdl() override
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.
static bool convertPercent(sal_Int32 &rValue, std::u16string_view rString)
bool IsXMLToken(std::u16string_view rString, enum XMLTokenEnum eToken)
compare eToken to the string