summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBalazs Varga <balazs.varga.extern@allotropia.de>2024-05-02 11:03:37 +0200
committerBalazs Varga <balazs.varga.extern@allotropia.de>2024-05-08 17:45:36 +0200
commitd68f2394afc3372d867ea6157123e51b278ba81b (patch)
tree25880cdf3ea8e19548ab3687f00a9827e47b8bd2 /include
parent4f5f24a4a3dac22e0f2c0d4832e0cbdd566263b9 (diff)
tdf#126573 Add Excel2021 array function RANDARRAY to Calc
Add new function called RANDARRAY to the function list. (TODO: dynamic array in separate patch, oasis proposal) Change-Id: I34bad3b7e8d631d649a0350d7c1170b26161331d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167003 Tested-by: Jenkins Tested-by: Gabor Kelemen <gabor.kelemen.extern@allotropia.de> Reviewed-by: Balazs Varga <balazs.varga.extern@allotropia.de>
Diffstat (limited to 'include')
-rw-r--r--include/formula/compiler.hxx3
-rw-r--r--include/formula/opcode.hxx2
2 files changed, 4 insertions, 1 deletions
diff --git a/include/formula/compiler.hxx b/include/formula/compiler.hxx
index 3bb1ccdce126..4fe03f59cf95 100644
--- a/include/formula/compiler.hxx
+++ b/include/formula/compiler.hxx
@@ -514,7 +514,8 @@
#define SC_OPCODE_SORT 501
#define SC_OPCODE_SORTBY 502
#define SC_OPCODE_MAT_SEQUENCE 503
-#define SC_OPCODE_STOP_2_PAR 504 /* last function with two or more parameters' OpCode + 1 */
+#define SC_OPCODE_RANDARRAY 504
+#define SC_OPCODE_STOP_2_PAR 505 /* last function with two or more parameters' OpCode + 1 */
#define SC_OPCODE_STOP_FUNCTION SC_OPCODE_STOP_2_PAR /* last function's OpCode + 1 */
#define SC_OPCODE_LAST_OPCODE_ID (SC_OPCODE_STOP_FUNCTION - 1) /* last OpCode */
diff --git a/include/formula/opcode.hxx b/include/formula/opcode.hxx
index bf255bfc532c..e4373f6759b1 100644
--- a/include/formula/opcode.hxx
+++ b/include/formula/opcode.hxx
@@ -510,6 +510,7 @@ enum OpCode : sal_uInt16
ocSort = SC_OPCODE_SORT,
ocSortBy = SC_OPCODE_SORTBY,
ocMatSequence = SC_OPCODE_MAT_SEQUENCE,
+ ocRandArray = SC_OPCODE_RANDARRAY,
// internal stuff
ocInternalBegin = SC_OPCODE_INTERNAL_BEGIN,
ocTTT = SC_OPCODE_TTT,
@@ -989,6 +990,7 @@ inline std::string OpCodeEnumToString(OpCode eCode)
case ocEncodeURL: return "EncodeURL";
case ocFourier: return "Fourier";
case ocRandbetweenNV: return "RandbetweenNV";
+ case ocRandArray: return "RandArray";
case ocFilter: return "Filter";
case ocSort: return "Sort";
case ocSortBy: return "SortBy";