21 #include <rtl/ustrbuf.hxx>
22 #include <com/sun/star/uno/Any.hxx>
24 #include <com/sun/star/awt/Rectangle.hpp>
42 const OUString& rStrImpValue,
46 awt::Rectangle aRect( 0, 0, 0, 0 );
47 if( rValue.hasValue() )
66 aRect.Height = nValue;
78 OUString& rStrExpValue,
82 awt::Rectangle aRect( 0, 0, 0, 0 );
99 nValue = aRect.Height;
106 OUStringBuffer sBuffer;
108 rStrExpValue = sBuffer.makeStringAndClear();
virtual bool importXML(const OUString &rStrImpValue, css::uno::Any &rValue, const SvXMLUnitConverter &rUnitConverter) const override
Imports the given value in case of the given XML-data-type.
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...
#define XML_TYPE_RECTANGLE_HEIGHT
XMLRectangleMembersHdl(sal_Int32 nType)
#define XML_TYPE_RECTANGLE_WIDTH
virtual ~XMLRectangleMembersHdl() override
virtual bool exportXML(OUString &rStrExpValue, const css::uno::Any &rValue, const SvXMLUnitConverter &rUnitConverter) const override
Exports the given value in case of the given XML-data-type.
void convertMeasureToXML(OUStringBuffer &rBuffer, sal_Int32 nMeasure) const
convert measure to string: from meCoreMeasureUnit to meXMLMeasureUnit
#define XML_TYPE_RECTANGLE_TOP
#define XML_TYPE_RECTANGLE_LEFT