diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-03-20 19:18:36 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-03-22 21:49:18 -0400 |
commit | 05c49983366f3686576d678293c3903a08213907 (patch) | |
tree | e776fb5aecd682e244d89cc3be1e3960fb637de2 /sc/inc/stringutil.hxx | |
parent | This shouldn't be virtual. (diff) | |
download | core-05c49983366f3686576d678293c3903a08213907.tar.gz core-05c49983366f3686576d678293c3903a08213907.zip |
One less use of PutCell().
Change-Id: I10120476e3bb17c330fa8a59ae51ac7d4573d937
Diffstat (limited to 'sc/inc/stringutil.hxx')
-rw-r--r-- | sc/inc/stringutil.hxx | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/sc/inc/stringutil.hxx b/sc/inc/stringutil.hxx index f5bdf3e1ec42..e161fc7c2052 100644 --- a/sc/inc/stringutil.hxx +++ b/sc/inc/stringutil.hxx @@ -23,6 +23,7 @@ #include "rtl/ustring.hxx" #include "tools/string.hxx" #include "scdllapi.h" +#include "i18npool/lang.h" class SvNumberFormatter; @@ -96,9 +97,21 @@ struct SC_DLLPUBLIC ScSetStringParam // ============================================================================ +struct ScInputStringType +{ + enum StringType { Unknown = 0, Text, Formula, Number }; + + StringType meType; + + OUString maText; + double mfValue; + short mnFormatType; +}; + class ScStringUtil { public: + /** * Check if a given string is a simple decimal number (e.g. 12.345). We * don't do any elaborate parsing here; we only check for the simplest @@ -121,6 +134,9 @@ public: sal_Unicode cTok, sal_Int32& rIndex ); static bool SC_DLLPUBLIC isMultiline( const OUString& rStr ); + + static ScInputStringType parseInputString( + SvNumberFormatter& rFormatter, const OUString& rStr, LanguageType eLang ); }; |