summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@suse.com>2011-11-03 23:22:46 -0400
committerKohei Yoshida <kohei.yoshida@suse.com>2011-11-04 22:40:27 -0400
commit5ec42cf012ac22c44fc9864726f7cc5671b72274 (patch)
tree0791bf506ea5169cf9f375f8de4effea28dc97d1
parent6d1c73b744e50f3cfc84c30378d2f6c74a6e528e (diff)
Support rtl::OUString reference here as well.
-rw-r--r--svl/inc/svl/zforlist.hxx5
-rw-r--r--svl/source/numbers/zforlist.cxx9
2 files changed, 13 insertions, 1 deletions
diff --git a/svl/inc/svl/zforlist.hxx b/svl/inc/svl/zforlist.hxx
index 67a1678fcf9d..afcb3268acd8 100644
--- a/svl/inc/svl/zforlist.hxx
+++ b/svl/inc/svl/zforlist.hxx
@@ -502,7 +502,10 @@ public:
/** Format a number according to the standard default format matching
the given format index */
void GetInputLineString( const double& fOutNumber,
- sal_uInt32 nFIndex, String& sOutString );
+ sal_uInt32 nFIndex, String& sOutString );
+
+ void GetInputLineString( const double& fOutNumber,
+ sal_uInt32 nFIndex, rtl::OUString& rOutString );
/** Format a number according to a format code string to be scanned.
@return
diff --git a/svl/source/numbers/zforlist.cxx b/svl/source/numbers/zforlist.cxx
index aaa506453a56..786e80aac7d1 100644
--- a/svl/source/numbers/zforlist.cxx
+++ b/svl/source/numbers/zforlist.cxx
@@ -1512,6 +1512,15 @@ void SvNumberFormatter::GetInputLineString(const double& fOutNumber,
ChangeStandardPrec(nOldPrec);
}
+void SvNumberFormatter::GetInputLineString(const double& fOutNumber,
+ sal_uInt32 nFIndex,
+ rtl::OUString& rOutString)
+{
+ String aTmp;
+ GetInputLineString(fOutNumber, nFIndex, aTmp);
+ rOutString = aTmp;
+}
+
void SvNumberFormatter::GetOutputString(const double& fOutNumber,
sal_uInt32 nFIndex,
String& sOutString,