summaryrefslogtreecommitdiffstats
path: root/include/formula
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2018-07-13 22:30:24 +0200
committerEike Rathke <erack@redhat.com>2018-07-14 01:55:16 +0200
commit771149ac99a57c641caebdfc7dd6fac25c292682 (patch)
tree04019b80d653d86b8cb953ee94d60a47bd1a88d6 /include/formula
parentsc: Add a test case for ZTEST() raising #DIV/0! (diff)
downloadcore-771149ac99a57c641caebdfc7dd6fac25c292682.tar.gz
core-771149ac99a57c641caebdfc7dd6fac25c292682.zip
Resolves: tdf#94925 do not unset dirty if formula cell must be recalculated
Change-Id: If70860b8babf1cce7fda2ae63412659e72dbb4c3 Reviewed-on: https://gerrit.libreoffice.org/57404 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Jenkins
Diffstat (limited to 'include/formula')
-rw-r--r--include/formula/tokenarray.hxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/formula/tokenarray.hxx b/include/formula/tokenarray.hxx
index d4111f798d5c..2c422d94faf8 100644
--- a/include/formula/tokenarray.hxx
+++ b/include/formula/tokenarray.hxx
@@ -58,8 +58,8 @@ enum class ScRecalcMode : sal_uInt8
{
ALWAYS = 0x01, // exclusive, always
ONLOAD_MUST = 0x02, // exclusive, always after load
- ONLOAD_LENIENT = 0x04, // exclusive, lenient after load (eg. macros not always, aliens, ...)
- ONLOAD_ONCE = 0x08, // exclusive, once after load, import filter
+ ONLOAD_ONCE = 0x04, // exclusive, once after load, import filter
+ ONLOAD_LENIENT = 0x08, // exclusive, lenient after load (eg. macros not always, aliens, ...)
NORMAL = 0x10, // exclusive
FORCED = 0x20, // combined, also if cell isn't visible, for macros with side effects
ONREFMOVE = 0x40, // combined, if reference was moved
@@ -416,6 +416,10 @@ public:
{ return bool(nMode & ScRecalcMode::FORCED); }
bool IsRecalcModeOnRefMove() const
{ return bool(nMode & ScRecalcMode::ONREFMOVE); }
+ /** Whether recalculation must happen after import, for
+ example OOXML. */
+ bool IsRecalcModeMustAfterImport() const
+ { return (nMode & ScRecalcMode::EMask) <= ScRecalcMode::ONLOAD_ONCE; }
/** Get OpCode of the most outer function */
inline OpCode GetOuterFuncOpCode();