summaryrefslogtreecommitdiff
path: root/sc/source/filter/lotus/tool.cxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2013-03-21 15:15:15 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2013-03-22 21:49:21 -0400
commit18571d151383dd2fda423f286550b63e8c2bd256 (patch)
tree84c04aadce754b84c983426b831699881190fe24 /sc/source/filter/lotus/tool.cxx
parent38df6bbbbe23444732b07e438887b6863a8ad1e8 (diff)
More on PutCell() avoidance.
Change-Id: I9166a00f1aadd4bfcb9dc46ef794cd53c19f5692
Diffstat (limited to 'sc/source/filter/lotus/tool.cxx')
-rw-r--r--sc/source/filter/lotus/tool.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/sc/source/filter/lotus/tool.cxx b/sc/source/filter/lotus/tool.cxx
index 4fa8eb1a1f8e..136e607e49f2 100644
--- a/sc/source/filter/lotus/tool.cxx
+++ b/sc/source/filter/lotus/tool.cxx
@@ -23,7 +23,6 @@
#include <svl/zforlist.hxx>
#include <tools/solar.h>
-#include "cell.hxx"
#include "rangenam.hxx"
#include "compiler.hxx"
@@ -33,6 +32,8 @@
#include "lotrange.hxx"
#include "namebuff.hxx"
#include "ftools.hxx"
+#include "stringutil.hxx"
+#include "tokenarray.hxx"
#include <math.h>
@@ -98,8 +99,9 @@ void PutFormString( SCCOL nCol, SCROW nRow, SCTAB nTab, sal_Char* pString )
}
pDoc->ApplyAttr( nCol, nRow, nTab, *pJustify );
- ScStringCell* pZelle = new ScStringCell( String( pString, pLotusRoot->eCharsetQ ) );
- pDoc->PutCell( nCol, nRow, nTab, pZelle, true );
+ ScSetStringParam aParam;
+ aParam.setTextInput();
+ pDoc->SetString(ScAddress(nCol,nRow,nTab), String(pString, pLotusRoot->eCharsetQ), &aParam);
}