diff options
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/style/xmlbahdl.hxx | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/xmloff/source/style/xmlbahdl.hxx b/xmloff/source/style/xmlbahdl.hxx index 6daf127df5ea..0ca0035f28a4 100644 --- a/xmloff/source/style/xmlbahdl.hxx +++ b/xmloff/source/style/xmlbahdl.hxx @@ -4,9 +4,9 @@ * * $RCSfile: xmlbahdl.hxx,v $ * - * $Revision: 1.14 $ + * $Revision: 1.15 $ * - * last change: $Author: hr $ $Date: 2007-06-27 15:46:47 $ + * last change: $Author: hr $ $Date: 2007-08-03 12:54:56 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -306,4 +306,18 @@ public: virtual sal_Bool exportXML( ::rtl::OUString& rStrExpValue, const ::com::sun::star::uno::Any& rValue, const SvXMLUnitConverter& rUnitConverter ) const; }; +/** + PropertyHandler for the XML-data-type: XML_TYPE_NUMBER16_AUTO + Reads/writes numeric properties with special handling for the value zero + (i.e., a value 0 property will be written as "auto") +*/ +class XMLNumberWithAutoInsteadZeroPropHdl : public XMLNumberWithoutZeroPropHdl +{ +public: + virtual ~XMLNumberWithAutoInsteadZeroPropHdl(); + + virtual sal_Bool importXML( const ::rtl::OUString& rStrImpValue, ::com::sun::star::uno::Any& rValue, const SvXMLUnitConverter& rUnitConverter ) const; + virtual sal_Bool exportXML( ::rtl::OUString& rStrExpValue, const ::com::sun::star::uno::Any& rValue, const SvXMLUnitConverter& rUnitConverter ) const; +}; + #endif // _XMLOFF_PROPERTYHANDLER_BASICTYPES_HXX |