23 #include <rtl/ustrbuf.hxx>
25 #include <com/sun/star/uno/Any.hxx>
42 const OUString& rStrImpValue,
46 if( rStrImpValue.indexOf(
'%' ) != -1 )
59 OUString& rStrExpValue,
66 if( !(rValue >>= nValue ) )
71 rStrExpValue = aOut.makeStringAndClear();
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 ...
the SvXMLTypeConverter converts values of various types from their internal representation to the tex...
css::uno::Any const & rValue
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 ~XMLPercentOrMeasurePropertyHandler() 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...
XMLPercentOrMeasurePropertyHandler()
void convertMeasureToXML(OUStringBuffer &rBuffer, sal_Int32 nMeasure) const
convert measure to string: from meCoreMeasureUnit to meXMLMeasureUnit