diff options
author | Eike Rathke <erack@redhat.com> | 2020-04-27 23:12:42 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2020-04-28 11:26:38 +0200 |
commit | 716655820d69a0d6aaa2714cb4f12bae1aa2b862 (patch) | |
tree | f4241181eefab18c2217d056197f7d93c50ad410 /include/formula/opcode.hxx | |
parent | loplugin:makeshared in cui (diff) | |
download | core-716655820d69a0d6aaa2714cb4f12bae1aa2b862.tar.gz core-716655820d69a0d6aaa2714cb4f12bae1aa2b862.zip |
Resolves: tdf#127831 implement RAND.NV() and RANDBETWEEN.NV() non-volatile
Same as RAND() and RANDBETWEEN() but not recalculating on every
change, just the normal expression recalculation.
Change-Id: I8ba7099125e487a78bd3d91db8b666c2f36b22fd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92994
Tested-by: Jenkins
Reviewed-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'include/formula/opcode.hxx')
-rw-r--r-- | include/formula/opcode.hxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/formula/opcode.hxx b/include/formula/opcode.hxx index b969a0047007..3123e8f3fa38 100644 --- a/include/formula/opcode.hxx +++ b/include/formula/opcode.hxx @@ -106,6 +106,7 @@ enum OpCode : sal_uInt16 ocGetActTime = SC_OPCODE_GET_ACT_TIME, ocNotAvail = SC_OPCODE_NO_VALUE, ocCurrent = SC_OPCODE_CURRENT, + ocRandomNV = SC_OPCODE_RANDOM_NV, // Functions with one parameter ocNot = SC_OPCODE_NOT, ocNeg = SC_OPCODE_NEG, @@ -501,6 +502,7 @@ enum OpCode : sal_uInt16 ocErfc_MS = SC_OPCODE_ERFC_MS, ocEncodeURL = SC_OPCODE_ENCODEURL, ocFourier = SC_OPCODE_FOURIER, + ocRandbetweenNV = SC_OPCODE_RANDBETWEEN_NV, // internal stuff ocInternalBegin = SC_OPCODE_INTERNAL_BEGIN, ocTTT = SC_OPCODE_TTT, @@ -586,6 +588,7 @@ inline std::string OpCodeEnumToString(OpCode eCode) case ocNegSub: return "NegSub"; case ocPi: return "Pi"; case ocRandom: return "Random"; + case ocRandomNV: return "RandomNV"; case ocTrue: return "True"; case ocFalse: return "False"; case ocGetActDate: return "GetActDate"; @@ -974,6 +977,7 @@ inline std::string OpCodeEnumToString(OpCode eCode) case ocErfc_MS: return "Erfc_MS"; case ocEncodeURL: return "EncodeURL"; case ocFourier: return "Fourier"; + case ocRandbetweenNV: return "RandbetweenNV"; case ocTTT: return "TTT"; case ocDebugVar: return "DebugVar"; case ocDataToken1: return "DataToken1"; |