diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2007-08-03 11:54:56 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2007-08-03 11:54:56 +0000 |
commit | 77ec0ffdefb8feae3dca73e6e0b47c3e8b03144a (patch) | |
tree | 84bf078b668cba289382cdf8c765226f1200507b /xmloff | |
parent | 2601ca94e5f8e888ea1f9c1d73ed5fbde39411a7 (diff) |
INTEGRATION: CWS oasisrng03 (1.13.306); FILE MERGED
2007/07/10 09:21:11 ama 1.13.306.2: RESYNC: (1.13-1.14); FILE MERGED
2007/07/05 13:40:32 ama 1.13.306.1: #i35851#: Page number 'auto' instead '0'
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 |