summaryrefslogtreecommitdiff
path: root/xmloff/source/style/weighhdl.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/weighhdl.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/weighhdl.cxx')
-rw-r--r--xmloff/source/style/weighhdl.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/xmloff/source/style/weighhdl.cxx b/xmloff/source/style/weighhdl.cxx
index 9955d446e66f..90b82ce2414c 100644
--- a/xmloff/source/style/weighhdl.cxx
+++ b/xmloff/source/style/weighhdl.cxx
@@ -28,9 +28,12 @@
// MARKER(update_precomp.py): autogen include statement, do not remove
#include "precompiled_xmloff.hxx"
+
#include <weighhdl.hxx>
+
+#include <sax/tools/converter.hxx>
+
#include <xmloff/xmltoken.hxx>
-#include <xmloff/xmluconv.hxx>
#include <tools/fontenum.hxx>
#include <tools/solar.h>
@@ -99,7 +102,7 @@ sal_Bool XMLFontWeightPropHdl::importXML( const OUString& rStrImpValue, Any& rVa
else
{
sal_Int32 nTemp;
- bRet = SvXMLUnitConverter::convertNumber( nTemp, rStrImpValue, 100, 900 );
+ bRet = ::sax::Converter::convertNumber(nTemp, rStrImpValue, 100, 900);
if( bRet )
nWeight = sal::static_int_cast< sal_uInt16 >(nTemp);
}
@@ -166,7 +169,7 @@ sal_Bool XMLFontWeightPropHdl::exportXML( OUString& rStrExpValue, const Any& rVa
else if( 700 == nWeight )
aOut.append( GetXMLToken(XML_WEIGHT_BOLD) );
else
- SvXMLUnitConverter::convertNumber( aOut, (sal_Int32)nWeight );
+ ::sax::Converter::convertNumber( aOut, (sal_Int32)nWeight );
rStrExpValue = aOut.makeStringAndClear();
}