diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-03-28 12:39:24 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-03-28 17:03:55 -0400 |
commit | 51b28807b8c72edfb32006da287165b03273a7b8 (patch) | |
tree | f914bb7c5db1338721051ffbdaa01d6e72a738ca /sc | |
parent | 4729b18c542068f122d4b1dfbf18626bac3f805b (diff) |
We don't need this now.
Change-Id: I12d2e79708d712829d96aac43fe63de2b04c6c07
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/inc/interpre.hxx | 1 | ||||
-rw-r--r-- | sc/source/core/tool/interpr4.cxx | 49 |
2 files changed, 0 insertions, 50 deletions
diff --git a/sc/source/core/inc/interpre.hxx b/sc/source/core/inc/interpre.hxx index 6d142fdbe93b..7821b603cbe3 100644 --- a/sc/source/core/inc/interpre.hxx +++ b/sc/source/core/inc/interpre.hxx @@ -191,7 +191,6 @@ double GetCellValue( const ScAddress&, ScRefCellValue& rCell ); double GetCellValueOrZero( const ScAddress&, ScRefCellValue& rCell ); double GetValueCellValue( const ScAddress&, double fOrig ); ScBaseCell* GetCell( const ScAddress& rPos ); -void GetCellString( String& rStr, const ScBaseCell* pCell ); void GetCellString( OUString& rStr, ScRefCellValue& rCell ); sal_uInt16 GetCellErrCode( const ScRefCellValue& rCell ); diff --git a/sc/source/core/tool/interpr4.cxx b/sc/source/core/tool/interpr4.cxx index 4610a77fd106..e624c899ae1b 100644 --- a/sc/source/core/tool/interpr4.cxx +++ b/sc/source/core/tool/interpr4.cxx @@ -515,55 +515,6 @@ ScBaseCell* ScInterpreter::GetCell( const ScAddress& rPos ) return pDok->GetCell( rPos ); } -void ScInterpreter::GetCellString( String& rStr, const ScBaseCell* pCell ) -{ - RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "sc", "er", "ScInterpreter::GetCellString" ); - sal_uInt16 nErr = 0; - if (pCell) - { - switch (pCell->GetCellType()) - { - case CELLTYPE_STRING: - rStr = ((ScStringCell*) pCell)->GetString(); - break; - case CELLTYPE_EDIT: - rStr = ((ScEditCell*) pCell)->GetString(); - break; - case CELLTYPE_FORMULA: - { - ScFormulaCell* pFCell = (ScFormulaCell*) pCell; - nErr = pFCell->GetErrCode(); - if (pFCell->IsValue()) - { - double fVal = pFCell->GetValue(); - sal_uLong nIndex = pFormatter->GetStandardFormat( - NUMBERFORMAT_NUMBER, - ScGlobal::eLnge); - pFormatter->GetInputLineString(fVal, nIndex, rStr); - } - else - rStr = pFCell->GetString(); - } - break; - case CELLTYPE_VALUE: - { - double fVal = ((ScValueCell*) pCell)->GetValue(); - sal_uLong nIndex = pFormatter->GetStandardFormat( - NUMBERFORMAT_NUMBER, - ScGlobal::eLnge); - pFormatter->GetInputLineString(fVal, nIndex, rStr); - } - break; - default: - rStr = ScGlobal::GetEmptyString(); - break; - } - } - else - rStr = ScGlobal::GetEmptyString(); - SetError(nErr); -} - void ScInterpreter::GetCellString( OUString& rStr, ScRefCellValue& rCell ) { sal_uInt16 nErr = 0; |