diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-03-20 10:16:10 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-03-22 21:49:16 -0400 |
commit | 611cb65c2a5d8d99b1ce0b3d9d0fbde95d877f72 (patch) | |
tree | 2e29229bf479c7a7644696f31e5e451512246ace /sc/source/core/tool/stringutil.cxx | |
parent | 95d2ab279414f9b24b43b9dd532cca842959389d (diff) |
Add convenience methods to set maximum text input and numeric input modes.
And remove one use of ScDocument::PutCell().
Change-Id: Iaa3c115794894964cb7c9f809235cdb7669be094
Diffstat (limited to 'sc/source/core/tool/stringutil.cxx')
-rw-r--r-- | sc/source/core/tool/stringutil.cxx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sc/source/core/tool/stringutil.cxx b/sc/source/core/tool/stringutil.cxx index 8924eca0f423..3a997e9d539f 100644 --- a/sc/source/core/tool/stringutil.cxx +++ b/sc/source/core/tool/stringutil.cxx @@ -30,6 +30,20 @@ ScSetStringParam::ScSetStringParam() : { } +void ScSetStringParam::setTextInput() +{ + mbDetectNumberFormat = false; + mbHandleApostrophe = false; + meSetTextNumFormat = Always; +} + +void ScSetStringParam::setNumericInput() +{ + mbDetectNumberFormat = true; + mbHandleApostrophe = true; + meSetTextNumFormat = Never; +} + // ============================================================================- bool ScStringUtil::parseSimpleNumber( |