diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2025-01-24 14:13:06 +0100 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2025-01-24 16:57:21 +0100 |
commit | 5506dd8bcf587ac4472ce28d26c174bfdfd08f91 (patch) | |
tree | dd22df3ce84a59ff60a770e31c2015fda44f62f2 /formula | |
parent | 32f0b68a9cb4f2762f9b5d31713972e6a430a2f2 (diff) |
tdf#151001: Add support for EXPAND function
Change-Id: I4eabd526d656c13da7792d3c195f036ce78bd0d9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/180706
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'formula')
-rw-r--r-- | formula/inc/core_resource.hrc | 6 | ||||
-rw-r--r-- | formula/source/core/api/FormulaCompiler.cxx | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/formula/inc/core_resource.hrc b/formula/inc/core_resource.hrc index 712f60817abc..5b6165a35202 100644 --- a/formula/inc/core_resource.hrc +++ b/formula/inc/core_resource.hrc @@ -282,6 +282,7 @@ const std::pair<const char *, int> RID_STRLIST_FUNCTION_NAMES_ENGLISH_ODFF[] = { "COM.MICROSOFT.SORT" , SC_OPCODE_SORT }, { "COM.MICROSOFT.SORTBY" , SC_OPCODE_SORTBY }, { "COM.MICROSOFT.DROP" , SC_OPCODE_DROP }, + { "COM.MICROSOFT.EXPAND" , SC_OPCODE_EXPAND }, { "COM.MICROSOFT.TAKE" , SC_OPCODE_TAKE }, { "COM.MICROSOFT.TOCOL" , SC_OPCODE_TOCOL }, { "COM.MICROSOFT.TOROW" , SC_OPCODE_TOROW }, @@ -745,6 +746,7 @@ const std::pair<const char *, int> RID_STRLIST_FUNCTION_NAMES_ENGLISH_OOXML[] = { "_xlfn._xlws.SORT" , SC_OPCODE_SORT }, { "_xlfn.SORTBY" , SC_OPCODE_SORTBY }, { "_xlfn.DROP" , SC_OPCODE_DROP }, + { "_xlfn.EXPAND" , SC_OPCODE_EXPAND }, { "_xlfn.TAKE" , SC_OPCODE_TAKE }, { "_xlfn.TOCOL" , SC_OPCODE_TOCOL }, { "_xlfn.TOROW" , SC_OPCODE_TOROW }, @@ -1211,6 +1213,7 @@ const std::pair<const char *, int> RID_STRLIST_FUNCTION_NAMES_ENGLISH_PODF[] = { "SORT" , SC_OPCODE_SORT }, { "SORTBY" , SC_OPCODE_SORTBY }, { "DROP" , SC_OPCODE_DROP }, + { "EXPAND" , SC_OPCODE_EXPAND }, { "TAKE" , SC_OPCODE_TAKE }, { "TOCOL" , SC_OPCODE_TOCOL }, { "TOROW" , SC_OPCODE_TOROW }, @@ -1677,6 +1680,7 @@ const std::pair<const char *, int> RID_STRLIST_FUNCTION_NAMES_ENGLISH_API[] = { "SORT" , SC_OPCODE_SORT }, { "SORTBY" , SC_OPCODE_SORTBY }, { "DROP" , SC_OPCODE_DROP }, + { "EXPAND" , SC_OPCODE_EXPAND }, { "TAKE" , SC_OPCODE_TAKE }, { "TOCOL" , SC_OPCODE_TOCOL }, { "TOROW" , SC_OPCODE_TOROW }, @@ -2141,6 +2145,7 @@ const std::pair<const char *, int> RID_STRLIST_FUNCTION_NAMES_ENGLISH[] = { "SORT" , SC_OPCODE_SORT }, { "SORTBY" , SC_OPCODE_SORTBY }, { "DROP" , SC_OPCODE_DROP }, + { "EXPAND" , SC_OPCODE_EXPAND }, { "TAKE" , SC_OPCODE_TAKE }, { "TOCOL" , SC_OPCODE_TOCOL }, { "TOROW" , SC_OPCODE_TOROW }, @@ -2586,6 +2591,7 @@ const std::pair<TranslateId, int> RID_STRLIST_FUNCTION_NAMES[] = { NC_("RID_STRLIST_FUNCTION_NAMES", "SORT") , SC_OPCODE_SORT }, { NC_("RID_STRLIST_FUNCTION_NAMES", "SORTBY") , SC_OPCODE_SORTBY }, { NC_("RID_STRLIST_FUNCTION_NAMES", "DROP") , SC_OPCODE_DROP }, + { NC_("RID_STRLIST_FUNCTION_NAMES", "EXPAND") , SC_OPCODE_EXPAND }, { NC_("RID_STRLIST_FUNCTION_NAMES", "TAKE") , SC_OPCODE_TAKE }, { NC_("RID_STRLIST_FUNCTION_NAMES", "TOCOL") , SC_OPCODE_TOCOL }, { NC_("RID_STRLIST_FUNCTION_NAMES", "TOROW") , SC_OPCODE_TOROW }, diff --git a/formula/source/core/api/FormulaCompiler.cxx b/formula/source/core/api/FormulaCompiler.cxx index c1eb3ac94e67..eafb6220c78a 100644 --- a/formula/source/core/api/FormulaCompiler.cxx +++ b/formula/source/core/api/FormulaCompiler.cxx @@ -1280,6 +1280,7 @@ bool FormulaCompiler::IsMatrixFunction( OpCode eOpCode ) case ocSortBy : case ocRandArray : case ocDrop : + case ocExpand : case ocTake : case ocToCol : case ocToRow : |