summaryrefslogtreecommitdiff
path: root/xmloff/source/style/XMLBitmapRepeatOffsetPropertyHandler.cxx
diff options
context:
space:
mode:
authorMichael Stahl <mst@openoffice.org>2011-10-11 14:19:00 +0200
committerMichael Stahl <mst@openoffice.org>2011-10-11 17:57:00 +0200
commit3ca2bef76886450058d1667703aeafe4c2e456c3 (patch)
treeb18d70f79bfcfd2b2e34790e86edafb4c4337a80 /xmloff/source/style/XMLBitmapRepeatOffsetPropertyHandler.cxx
parent02c32e0f0e75a9df80888051d1ec189fa14129bd (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/XMLBitmapRepeatOffsetPropertyHandler.cxx')
-rw-r--r--xmloff/source/style/XMLBitmapRepeatOffsetPropertyHandler.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/xmloff/source/style/XMLBitmapRepeatOffsetPropertyHandler.cxx b/xmloff/source/style/XMLBitmapRepeatOffsetPropertyHandler.cxx
index 6f7143d62da3..0d1bb476cf51 100644
--- a/xmloff/source/style/XMLBitmapRepeatOffsetPropertyHandler.cxx
+++ b/xmloff/source/style/XMLBitmapRepeatOffsetPropertyHandler.cxx
@@ -30,6 +30,7 @@
#include "precompiled_xmloff.hxx"
#include <xmloff/xmltoken.hxx>
#include <xmloff/xmluconv.hxx>
+#include <sax/tools/converter.hxx>
#include <rtl/ustrbuf.hxx>
#include <com/sun/star/uno/Any.hxx>
#include "XMLBitmapRepeatOffsetPropertyHandler.hxx"
@@ -66,7 +67,7 @@ sal_Bool XMLBitmapRepeatOffsetPropertyHandler::importXML(
if( aTokenEnum.getNextToken( aToken ) )
{
sal_Int32 nValue;
- if( SvXMLUnitConverter::convertPercent( nValue, aToken ) )
+ if (::sax::Converter::convertPercent( nValue, aToken ))
{
if( aTokenEnum.getNextToken( aToken ) )
{
@@ -93,7 +94,7 @@ sal_Bool XMLBitmapRepeatOffsetPropertyHandler::exportXML(
sal_Int32 nValue = 0;
if( rValue >>= nValue )
{
- SvXMLUnitConverter::convertPercent( aOut, nValue );
+ ::sax::Converter::convertPercent( aOut, nValue );
aOut.append( sal_Unicode( ' ' ) );
aOut.append( mbX ? msHorizontal : msVertical );
rStrExpValue = aOut.makeStringAndClear();