summaryrefslogtreecommitdiff
path: root/formula
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-05-02 15:55:39 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-05-03 09:56:48 +0200
commitf772812e6bd358ec200fc1d7057842f19626c31d (patch)
tree3c7db73b15c18ac21259848649d5a4d7ad73366d /formula
parentd93f33c8c9ca0eb5a50fc454f069d799d59ef86f (diff)
split out the non-translatable strings
Change-Id: Id4c3e9265ae591b938ae43554208823e0cdc06c0 Reviewed-on: https://gerrit.libreoffice.org/37164 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'formula')
-rw-r--r--formula/source/core/api/FormulaCompiler.cxx1
-rw-r--r--formula/source/core/inc/core_resource.hrc3
-rw-r--r--formula/source/core/resource/core_resource.src59
3 files changed, 36 insertions, 27 deletions
diff --git a/formula/source/core/api/FormulaCompiler.cxx b/formula/source/core/api/FormulaCompiler.cxx
index 154e51e6f7e1..767f4da86a7a 100644
--- a/formula/source/core/api/FormulaCompiler.cxx
+++ b/formula/source/core/api/FormulaCompiler.cxx
@@ -839,6 +839,7 @@ void lcl_fillNativeSymbols( FormulaCompiler::NonConstOpCodeMapPtr& xMap, bool bD
new FormulaCompiler::OpCodeMap(
SC_OPCODE_LAST_OPCODE_ID + 1, true, FormulaGrammar::GRAM_NATIVE_UI));
OModuleClient aModuleClient;
+ OpCodeList aOpCodeListSymbols(RID_STRLIST_FUNCTION_NAMES_SYMBOLS, aSymbolMap.mxSymbolMap);
OpCodeList aOpCodeListNative(RID_STRLIST_FUNCTION_NAMES, aSymbolMap.mxSymbolMap);
// No AddInMap for native core mapping.
}
diff --git a/formula/source/core/inc/core_resource.hrc b/formula/source/core/inc/core_resource.hrc
index 8aed9b7382a3..750be5afbef3 100644
--- a/formula/source/core/inc/core_resource.hrc
+++ b/formula/source/core/inc/core_resource.hrc
@@ -31,7 +31,8 @@
#define RID_STRLIST_FUNCTION_NAMES_ENGLISH_PODF (RID_CORE_OTHER_START + 2)
#define RID_STRLIST_FUNCTION_NAMES_ENGLISH_API (RID_CORE_OTHER_START + 3)
#define RID_STRLIST_FUNCTION_NAMES_ENGLISH (RID_CORE_OTHER_START + 4)
-#define RID_STRLIST_FUNCTION_NAMES (RID_CORE_OTHER_START + 5)
+#define RID_STRLIST_FUNCTION_NAMES_SYMBOLS (RID_CORE_OTHER_START + 5)
+#define RID_STRLIST_FUNCTION_NAMES (RID_CORE_OTHER_START + 6)
#endif
diff --git a/formula/source/core/resource/core_resource.src b/formula/source/core/resource/core_resource.src
index bd3f487e1330..4861720ec0f5 100644
--- a/formula/source/core/resource/core_resource.src
+++ b/formula/source/core/resource/core_resource.src
@@ -2251,42 +2251,16 @@ StringArray RID_STRLIST_FUNCTION_NAMES
< "IFERROR" ; SC_OPCODE_IF_ERROR ; >;
< "IFNA" ; SC_OPCODE_IF_NA ; >;
< "CHOOSE" ; SC_OPCODE_CHOOSE ; >;
- < "(" ; SC_OPCODE_OPEN ; >;
- < ")" ; SC_OPCODE_CLOSE ; >;
- < "[" ; SC_OPCODE_TABLE_REF_OPEN ; >;
- < "]" ; SC_OPCODE_TABLE_REF_CLOSE ; >;
< "#All" ; SC_OPCODE_TABLE_REF_ITEM_ALL ; >;
< "#Headers" ; SC_OPCODE_TABLE_REF_ITEM_HEADERS ; >;
< "#Data" ; SC_OPCODE_TABLE_REF_ITEM_DATA ; >;
< "#Totals" ; SC_OPCODE_TABLE_REF_ITEM_TOTALS ; >;
< "#This Row" ; SC_OPCODE_TABLE_REF_ITEM_THIS_ROW ; >;
- < "{" ; SC_OPCODE_ARRAY_OPEN ; >;
- < "}" ; SC_OPCODE_ARRAY_CLOSE ; >;
- < "|" ; SC_OPCODE_ARRAY_ROW_SEP ; >;
- < ";" ; SC_OPCODE_ARRAY_COL_SEP ; >;
- < ";" ; SC_OPCODE_SEP ; >;
- < "%" ; SC_OPCODE_PERCENT_SIGN ; >;
- < "+" ; SC_OPCODE_ADD ; >;
- < "-" ; SC_OPCODE_SUB ; >;
- < "*" ; SC_OPCODE_MUL ; >;
- < "/" ; SC_OPCODE_DIV ; >;
- < "&" ; SC_OPCODE_AMPERSAND ; >;
- < "^" ; SC_OPCODE_POW ; >;
- < "=" ; SC_OPCODE_EQUAL ; >;
- < "<>" ; SC_OPCODE_NOT_EQUAL ; >;
- < "<" ; SC_OPCODE_LESS ; >;
- < ">" ; SC_OPCODE_GREATER ; >;
- < "<=" ; SC_OPCODE_LESS_EQUAL ; >;
- < ">=" ; SC_OPCODE_GREATER_EQUAL ; >;
< "AND" ; SC_OPCODE_AND ; >;
< "OR" ; SC_OPCODE_OR ; >;
< "XOR" ; SC_OPCODE_XOR ; >;
- < "!" ; SC_OPCODE_INTERSECT ; >;
- < "~" ; SC_OPCODE_UNION ; >;
- < ":" ; SC_OPCODE_RANGE ; >;
< "NOT" ; SC_OPCODE_NOT ; >;
< "NEG" ; SC_OPCODE_NEG ; >;
- < "-" ; SC_OPCODE_NEG_SUB ; >;
< "PI" ; SC_OPCODE_PI ; >; // ???
< "RAND" ; SC_OPCODE_RANDOM ; >;
< "TRUE" ; SC_OPCODE_TRUE ; >;
@@ -2692,4 +2666,37 @@ StringArray RID_STRLIST_FUNCTION_NAMES
};
};
+StringArray RID_STRLIST_FUNCTION_NAMES_SYMBOLS
+{
+ ItemList =
+ {
+ < "(" ; SC_OPCODE_OPEN ; >;
+ < ")" ; SC_OPCODE_CLOSE ; >;
+ < "[" ; SC_OPCODE_TABLE_REF_OPEN ; >;
+ < "]" ; SC_OPCODE_TABLE_REF_CLOSE ; >;
+ < "{" ; SC_OPCODE_ARRAY_OPEN ; >;
+ < "}" ; SC_OPCODE_ARRAY_CLOSE ; >;
+ < "|" ; SC_OPCODE_ARRAY_ROW_SEP ; >;
+ < ";" ; SC_OPCODE_ARRAY_COL_SEP ; >;
+ < ";" ; SC_OPCODE_SEP ; >;
+ < "%" ; SC_OPCODE_PERCENT_SIGN ; >;
+ < "+" ; SC_OPCODE_ADD ; >;
+ < "-" ; SC_OPCODE_SUB ; >;
+ < "*" ; SC_OPCODE_MUL ; >;
+ < "/" ; SC_OPCODE_DIV ; >;
+ < "&" ; SC_OPCODE_AMPERSAND ; >;
+ < "^" ; SC_OPCODE_POW ; >;
+ < "=" ; SC_OPCODE_EQUAL ; >;
+ < "<>" ; SC_OPCODE_NOT_EQUAL ; >;
+ < "<" ; SC_OPCODE_LESS ; >;
+ < ">" ; SC_OPCODE_GREATER ; >;
+ < "<=" ; SC_OPCODE_LESS_EQUAL ; >;
+ < ">=" ; SC_OPCODE_GREATER_EQUAL ; >;
+ < "!" ; SC_OPCODE_INTERSECT ; >;
+ < "~" ; SC_OPCODE_UNION ; >;
+ < ":" ; SC_OPCODE_RANGE ; >;
+ < "-" ; SC_OPCODE_NEG_SUB ; >;
+ };
+};
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */