From 611cb65c2a5d8d99b1ce0b3d9d0fbde95d877f72 Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Wed, 20 Mar 2013 10:16:10 -0400 Subject: Add convenience methods to set maximum text input and numeric input modes. And remove one use of ScDocument::PutCell(). Change-Id: Iaa3c115794894964cb7c9f809235cdb7669be094 --- sc/qa/unit/ucalc.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'sc/qa') 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"); -- cgit