diff options
author | Michael Stahl <mst@openoffice.org> | 2011-10-11 14:19:00 +0200 |
---|---|---|
committer | Michael Stahl <mst@openoffice.org> | 2011-10-11 17:57:00 +0200 |
commit | 3ca2bef76886450058d1667703aeafe4c2e456c3 (patch) | |
tree | b18d70f79bfcfd2b2e34790e86edafb4c4337a80 /xmloff/source/style/XMLFillBitmapSizePropertyHandler.cxx | |
parent | 02c32e0f0e75a9df80888051d1ec189fa14129bd (diff) |
#i108468#: clean up xmluconv code duplication, part 1:
move convertNumber64 from SvXMLUnitConverter to sax::converter.
remove duplicate methods from SvXMLUnitConverter:
convertBool, convertPercent, convertColor, convertNumber, convertDouble,
indexOfComma, encodeBase64, decodeBase64, decodeBase64SomeChars,
clearUndefinedChars
Diffstat (limited to 'xmloff/source/style/XMLFillBitmapSizePropertyHandler.cxx')
-rw-r--r-- | xmloff/source/style/XMLFillBitmapSizePropertyHandler.cxx | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/xmloff/source/style/XMLFillBitmapSizePropertyHandler.cxx b/xmloff/source/style/XMLFillBitmapSizePropertyHandler.cxx index ac23035e9683..6f1363751214 100644 --- a/xmloff/source/style/XMLFillBitmapSizePropertyHandler.cxx +++ b/xmloff/source/style/XMLFillBitmapSizePropertyHandler.cxx @@ -28,11 +28,13 @@ // MARKER(update_precomp.py): autogen include statement, do not remove #include "precompiled_xmloff.hxx" -#include <com/sun/star/uno/Any.hxx> -#include <xmloff/xmluconv.hxx> -#include <rtl/ustrbuf.hxx> + #include "XMLFillBitmapSizePropertyHandler.hxx" +#include <rtl/ustrbuf.hxx> +#include <com/sun/star/uno/Any.hxx> #include <comphelper/extract.hxx> +#include <sax/tools/converter.hxx> +#include <xmloff/xmluconv.hxx> using namespace ::com::sun::star; using namespace ::com::sun::star::uno; @@ -58,7 +60,7 @@ sal_Bool XMLFillBitmapSizePropertyHandler::importXML( if( rStrImpValue.indexOf( sal_Unicode('%') ) != -1 ) { - bRet = rUnitConverter.convertPercent( nValue, rStrImpValue ); + bRet = ::sax::Converter::convertPercent( nValue, rStrImpValue ); nValue *= -1; } else @@ -84,7 +86,7 @@ sal_Bool XMLFillBitmapSizePropertyHandler::exportXML( { if( nValue < 0 ) { - rUnitConverter.convertPercent( aOut, -nValue ); + ::sax::Converter::convertPercent( aOut, -nValue ); } else { |