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/qa | |
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/qa')
-rw-r--r-- | sc/qa/unit/ucalc.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sc/qa/unit/ucalc.cxx b/sc/qa/unit/ucalc.cxx index f399e0de8cfa..f72bdd0c60b2 100644 --- a/sc/qa/unit/ucalc.cxx +++ b/sc/qa/unit/ucalc.cxx @@ -498,9 +498,7 @@ void Test::testInput() // Customized string handling policy. ScSetStringParam aParam; - aParam.mbDetectNumberFormat = false; - aParam.meSetTextNumFormat = ScSetStringParam::Always; - aParam.mbHandleApostrophe = false; + aParam.setTextInput(); m_pDoc->SetString(0, 0, 0, "000123", &aParam); test = m_pDoc->GetString(0, 0, 0); CPPUNIT_ASSERT_MESSAGE("Text content should have been treated as string, not number.", test == "000123"); |