From 3ca2bef76886450058d1667703aeafe4c2e456c3 Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Tue, 11 Oct 2011 14:19:00 +0200 Subject: #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 --- sax/inc/sax/tools/converter.hxx | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'sax/inc') diff --git a/sax/inc/sax/tools/converter.hxx b/sax/inc/sax/tools/converter.hxx index 13fb189d8429..20fe821d05bb 100644 --- a/sax/inc/sax/tools/converter.hxx +++ b/sax/inc/sax/tools/converter.hxx @@ -119,6 +119,16 @@ public: sal_Int32 nMin = SAL_MIN_INT32, sal_Int32 nMax = SAL_MAX_INT32 ); + /** convert number to string */ + static void convertNumber64(::rtl::OUStringBuffer& rBuffer, + sal_Int64 nNumber); + + /** convert string to number with optional min and max values */ + static bool convertNumber64(sal_Int64& rValue, + const ::rtl::OUString& rString, + sal_Int64 nMin = SAL_MIN_INT64, + sal_Int64 nMax = SAL_MAX_INT64); + /** convert double number to string (using ::rtl::math) and DO convert from source unit to target unit */ static void convertDouble( ::rtl::OUStringBuffer& rBuffer, -- cgit