summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2015-02-06 20:53:59 +0200
committerTor Lillqvist <tml@collabora.com>2015-02-07 17:16:33 +0200
commit4f4daf163e92d113b62cc19fb0b7f5ec05dce48a (patch)
treed7e8ea83809473ed16689118d6e8fbad88ce6fe4
parent67dbf154a2780f42614e668416e99c463857c952 (diff)
Introduce SetResultError()
Change-Id: I0645b7a58e9f3dfc6c431844805ab87add8745ad
-rw-r--r--sc/inc/formulacell.hxx7
-rw-r--r--sc/source/core/data/formulacell.cxx5
2 files changed, 11 insertions, 1 deletions
diff --git a/sc/inc/formulacell.hxx b/sc/inc/formulacell.hxx
index 143ae2973b48..7b7ed096a678 100644
--- a/sc/inc/formulacell.hxx
+++ b/sc/inc/formulacell.hxx
@@ -376,7 +376,12 @@ public:
svl::SharedString GetResultString() const;
- void SetErrCode( sal_uInt16 n );
+ /* Sets the shared code array to error state in addition to the cell result */
+ void SetErrCode( sal_uInt16 n );
+
+ /* Sets just the result to error */
+ void SetResultError( sal_uInt16 n );
+
bool IsHyperLinkCell() const;
EditTextObject* CreateURLObject();
void GetURLResult( OUString& rURL, OUString& rCellText );
diff --git a/sc/source/core/data/formulacell.cxx b/sc/source/core/data/formulacell.cxx
index 938fd4d1ebdb..d37b17763e8e 100644
--- a/sc/source/core/data/formulacell.cxx
+++ b/sc/source/core/data/formulacell.cxx
@@ -2249,6 +2249,11 @@ void ScFormulaCell::SetErrCode( sal_uInt16 n )
aResult.SetResultError( n );
}
+void ScFormulaCell::SetResultError( sal_uInt16 n )
+{
+ aResult.SetResultError( n );
+}
+
void ScFormulaCell::AddRecalcMode( ScRecalcMode nBits )
{
if ( (nBits & RECALCMODE_EMASK) != RECALCMODE_NORMAL )