diff options
Diffstat (limited to 'xmloff/source/style/XMLClipPropertyHandler.cxx')
-rw-r--r-- | xmloff/source/style/XMLClipPropertyHandler.cxx | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/xmloff/source/style/XMLClipPropertyHandler.cxx b/xmloff/source/style/XMLClipPropertyHandler.cxx index f085e3cb6213..342d6c0964a5 100644 --- a/xmloff/source/style/XMLClipPropertyHandler.cxx +++ b/xmloff/source/style/XMLClipPropertyHandler.cxx @@ -2,9 +2,9 @@ * * $RCSfile: XMLClipPropertyHandler.cxx,v $ * - * $Revision: 1.1.1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: hr $ $Date: 2000-09-18 17:07:04 $ + * last change: $Author: dvo $ $Date: 2001-06-29 21:07:17 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -82,11 +82,15 @@ #ifndef _XMLOFF_XMLKYWD_HXX #include <xmlkywd.hxx> #endif +#ifndef _XMLOFF_XMLTOKEN_HXX +#include <xmltoken.hxx> +#endif using namespace ::rtl; using namespace ::com::sun::star; using namespace ::com::sun::star::uno; using namespace ::com::sun::star::text; +using namespace ::xmloff::token; /////////////////////////////////////////////////////////////////////////////// // @@ -130,7 +134,7 @@ sal_Bool XMLClipPropertyHandler::importXML( const OUString& rStrImpValue, uno::A while( aTokenEnum.getNextToken( aToken ) ) { sal_Int32 nVal = 0; - if( aToken.compareToAscii( sXML_auto ) != 0 && + if( !IsXMLToken(aToken, XML_AUTO) && !rUnitConverter.convertMeasure( nVal, aToken ) ) break; @@ -160,7 +164,7 @@ sal_Bool XMLClipPropertyHandler::exportXML( OUString& rStrExpValue, const uno::A if( rValue >>= aCrop ) { - aOut.appendAscii( sXML_rect ); + aOut.append( GetXMLToken(XML_RECT) ); aOut.append( (sal_Unicode)'(' ); rUnitConverter.convertMeasure( aOut, aCrop.Top ); aOut.append( (sal_Unicode)' ' ); |