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/ui/view/dbfunc3.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/ui/view/dbfunc3.cxx')
-rw-r--r-- | sc/source/ui/view/dbfunc3.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sc/source/ui/view/dbfunc3.cxx b/sc/source/ui/view/dbfunc3.cxx index 5e2735554f56..b159103dd231 100644 --- a/sc/source/ui/view/dbfunc3.cxx +++ b/sc/source/ui/view/dbfunc3.cxx @@ -65,6 +65,7 @@ #include "userlist.hxx" #include "queryentry.hxx" #include "markdata.hxx" +#include "stringutil.hxx" #include <boost/unordered_set.hpp> #include <boost/unordered_map.hpp> @@ -2029,7 +2030,11 @@ void ScDBFunc::ShowDataPilotSourceData( ScDPObject& rDPObj, const Sequence<sheet rtl::OUString aStr; double fVal; if (rAny >>= aStr) - pInsDoc->PutCell( ScAddress(nCol, nRow, nNewTab), new ScStringCell(String(aStr)) ); + { + ScSetStringParam aParam; + aParam.setTextInput(); + pInsDoc->SetString(ScAddress(nCol,nRow,nNewTab), aStr); + } else if (rAny >>= fVal) pInsDoc->SetValue(nCol, nRow, nNewTab, fVal); } |