summaryrefslogtreecommitdiff
path: root/include/formula
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2018-07-19 17:39:02 +0200
committerEike Rathke <erack@redhat.com>2018-07-19 20:36:22 +0200
commitda9a6f426b61937d9cda17f5be3f82d2e15e6ecd (patch)
treedc73ca300ce15eb3169013595419e01258349c78 /include/formula
parent3e39524d4171f0ecadad5658d6e03cf44126b2a0 (diff)
Related: tdf#118735 introduce FormulaError::LinkFormulaNeedingCheck (Err:540)
To indicate why the result isn't available ("External content disabled") and in future maybe signal to the formula cell that it could keep the hybrid string result, see source code comment. Change-Id: Ic5d336b8489e8776f7b640b7e46815e71d0a82a4 Reviewed-on: https://gerrit.libreoffice.org/57738 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Jenkins
Diffstat (limited to 'include/formula')
-rw-r--r--include/formula/errorcodes.hxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/formula/errorcodes.hxx b/include/formula/errorcodes.hxx
index d4324a998db0..7afce495b6de 100644
--- a/include/formula/errorcodes.hxx
+++ b/include/formula/errorcodes.hxx
@@ -83,6 +83,9 @@ enum class FormulaError : sal_uInt16
MatrixSize = 538,
// Bad inline array content, non-value/non-string.
BadArrayContent = 539,
+// Interpreter: signal result not available because updating links is not
+// allowed (yet) and tell to try hybrid string as result.
+ LinkFormulaNeedingCheck = 540,
// Interpreter: NA() not available condition, not a real error
NotAvailable = 0x7fff
@@ -171,6 +174,7 @@ inline bool isPublishedFormulaError( FormulaError nErr )
return false;
case FormulaError::MatrixSize:
+ case FormulaError::LinkFormulaNeedingCheck:
return true;
case FormulaError::NotAvailable: