diff options
Diffstat (limited to 'include/svl/zforlist.hxx')
-rw-r--r-- | include/svl/zforlist.hxx | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/include/svl/zforlist.hxx b/include/svl/zforlist.hxx index 5839c7faa636..8091c2faea71 100644 --- a/include/svl/zforlist.hxx +++ b/include/svl/zforlist.hxx @@ -373,6 +373,16 @@ public: typedef std::vector< OUString > NfWSStringsDtor; +/** Input options to be used with IsNumberFormat() */ +enum class SvNumInputOptions : sal_uInt16 +{ + NONE = 0, + LAX_TIME = 1 ///< allow input of minutes or seconds >59 +}; +namespace o3tl { + template<> struct typed_flags<SvNumInputOptions> : is_typed_flags<SvNumInputOptions, 0x0001> {}; +} + class SvNumberFormatterRegistry_Impl; class NfCurrencyTable; @@ -532,7 +542,8 @@ public: returned in fOutNumber <FALSE/> if input is not a number */ - bool IsNumberFormat( const OUString& sString, sal_uInt32& F_Index, double& fOutNumber ); + bool IsNumberFormat( const OUString& sString, sal_uInt32& F_Index, double& fOutNumber, + SvNumInputOptions eInputOptions = SvNumInputOptions::NONE ); /// Format a number according to a format index, return string and color void GetOutputString( const double& fOutNumber, sal_uInt32 nFIndex, |