diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-03-19 12:51:47 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-03-19 13:40:27 -0400 |
commit | 20c4921e901d84a7ef8835ee192e1a7a4b62ee61 (patch) | |
tree | c298901717bf1297e1d50c19f1e1347359105c89 /sc/source/filter/rtf/eeimpars.cxx | |
parent | d0314afa2fef363eba06e98c70ecdc83e690dcd0 (diff) |
Remove use of ScBaseCell and its derivatives outside ScDocument.
This is still work in progress.
Change-Id: Ifcdbefbdd307a2a8819b073d896e90a16980781e
Diffstat (limited to 'sc/source/filter/rtf/eeimpars.cxx')
-rw-r--r-- | sc/source/filter/rtf/eeimpars.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sc/source/filter/rtf/eeimpars.cxx b/sc/source/filter/rtf/eeimpars.cxx index 5e3dd69c366c..23a4c3c9501a 100644 --- a/sc/source/filter/rtf/eeimpars.cxx +++ b/sc/source/filter/rtf/eeimpars.cxx @@ -47,7 +47,6 @@ #include "docpool.hxx" #include "attrib.hxx" #include "patattr.hxx" -#include "cell.hxx" #include "eeparser.hxx" #include "drwlayer.hxx" #include "rangenam.hxx" @@ -386,19 +385,20 @@ void ScEEImport::WriteToDocument( bool bSizeColsRows, double nOutputFactor, SvNu aStr.SearchAndReplaceAll( (sal_Unicode)'\n', (sal_Unicode)' ' ); if (bTextFormat) - mpDoc->PutCell( nCol, nRow, nTab, new ScStringCell( aStr)); - else { - aParam.mbDetectNumberFormat = bConvertDate; - mpDoc->SetString( nCol, nRow, nTab, aStr, &aParam ); + aParam.mbDetectNumberFormat = false; + aParam.meSetTextNumFormat = ScSetStringParam::Always; } + else + aParam.mbDetectNumberFormat = bConvertDate; + + mpDoc->SetString(nCol, nRow, nTab, aStr, &aParam); } } else { // The cell will own the text object instance. - mpDoc->PutCell( - nCol, nRow, nTab, new ScEditCell(mpEngine->CreateTextObject(pE->aSel), mpDoc)); + mpDoc->SetEditText(ScAddress(nCol,nRow,nTab), mpEngine->CreateTextObject(pE->aSel)); } if ( pE->maImageList.size() ) bHasGraphics |= GraphicSize( nCol, nRow, nTab, pE ); |