diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-03-26 19:38:24 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-03-27 00:07:15 -0400 |
commit | f1211bc84d62598be18d9a61e8d63563a0d74f5a (patch) | |
tree | 4bf814a8b5cdd342a7f5bb86567646658975a1a9 /sc/source/core/data/cellvalue.cxx | |
parent | f051163d699c802dc51be0b9af9a9879bcee5307 (diff) |
Converted the external ref manager code.
Change-Id: Ifbce13bc8a941e548b1ba647519cf9765b7f55d0
Diffstat (limited to 'sc/source/core/data/cellvalue.cxx')
-rw-r--r-- | sc/source/core/data/cellvalue.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sc/source/core/data/cellvalue.cxx b/sc/source/core/data/cellvalue.cxx index e4f0c2e576b2..7ef5bda45a84 100644 --- a/sc/source/core/data/cellvalue.cxx +++ b/sc/source/core/data/cellvalue.cxx @@ -514,6 +514,17 @@ bool ScRefCellValue::isEmpty() const return meType == CELLTYPE_NOTE || meType == CELLTYPE_NONE; } +bool ScRefCellValue::hasEmptyValue() +{ + if (isEmpty()) + return true; + + if (meType == CELLTYPE_FORMULA) + return mpFormula->IsEmpty(); + + return false; +} + bool ScRefCellValue::equalsWithoutFormat( const ScRefCellValue& r ) const { return equalsWithoutFormatImpl(*this, r); |