summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2015-03-11 21:01:54 +0100
committerEike Rathke <erack@redhat.com>2015-03-11 21:09:33 +0100
commit7867b976e8cb68a30df3cc825ccaa021269e219a (patch)
tree54f035d19f4e8d724f4b37ce4afbb293e2fa2987 /include
parent53488caa1ea0c67c8da2bc8f887cf9c8acfbd9cf (diff)
TableRef: add item specifiers and opcodes
Change-Id: I043db29e3e1023566682b1df63a1d663dd432fee
Diffstat (limited to 'include')
-rw-r--r--include/formula/compiler.hrc9
-rw-r--r--include/formula/opcode.hxx5
2 files changed, 12 insertions, 2 deletions
diff --git a/include/formula/compiler.hrc b/include/formula/compiler.hrc
index 9131ce00c930..1fd4a58f3681 100644
--- a/include/formula/compiler.hrc
+++ b/include/formula/compiler.hrc
@@ -53,8 +53,13 @@
#define SC_OPCODE_ARRAY_COL_SEP 27 /* some convs use sep != col_sep */
#define SC_OPCODE_TABLE_REF_OPEN 28
#define SC_OPCODE_TABLE_REF_CLOSE 29
-#define SC_OPCODE_STOP_DIV 30
-#define SC_OPCODE_SKIP 31 /* used to skip raw tokens during string compilation */
+#define SC_OPCODE_TABLE_REF_ITEM_ALL 30
+#define SC_OPCODE_TABLE_REF_ITEM_HEADERS 31
+#define SC_OPCODE_TABLE_REF_ITEM_DATA 32
+#define SC_OPCODE_TABLE_REF_ITEM_TOTALS 33
+#define SC_OPCODE_TABLE_REF_ITEM_THIS_ROW 34
+#define SC_OPCODE_STOP_DIV 35
+#define SC_OPCODE_SKIP 36 /* used to skip raw tokens during string compilation */
/*** error constants #... ***/
#define SC_OPCODE_START_ERRORS 40
diff --git a/include/formula/opcode.hxx b/include/formula/opcode.hxx
index c093ab5ae056..fa4c1bfba798 100644
--- a/include/formula/opcode.hxx
+++ b/include/formula/opcode.hxx
@@ -53,6 +53,11 @@ enum OpCode : sal_uInt16
ocStringXML = SC_OPCODE_STRINGXML,
ocSpaces = SC_OPCODE_SPACES,
ocMatRef = SC_OPCODE_MAT_REF,
+ ocTableRefItemAll = SC_OPCODE_TABLE_REF_ITEM_ALL,
+ ocTableRefItemHeaders = SC_OPCODE_TABLE_REF_ITEM_HEADERS,
+ ocTableRefItemData = SC_OPCODE_TABLE_REF_ITEM_DATA,
+ ocTableRefItemTotals = SC_OPCODE_TABLE_REF_ITEM_TOTALS,
+ ocTableRefItemThisRow = SC_OPCODE_TABLE_REF_ITEM_THIS_ROW,
ocSkip = SC_OPCODE_SKIP,
// Access commands
ocDBArea = SC_OPCODE_DB_AREA,