summaryrefslogtreecommitdiff
path: root/sc/inc/token.hxx
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2015-03-04 20:22:28 +0100
committerEike Rathke <erack@redhat.com>2015-03-05 11:45:00 +0100
commit20e95bcd836baba16909149ded5b54f978b70ce3 (patch)
tree88ad45336d8b20c4215d8e75184646c06d42fbde /sc/inc/token.hxx
parenta1b956d03e83fd91f56250e25932ff4951cbc29e (diff)
introduce ScTableRefToken
Change-Id: Id6f7f0fbc120072cf6a61229838e39c4a53aeee7
Diffstat (limited to 'sc/inc/token.hxx')
-rw-r--r--sc/inc/token.hxx16
1 files changed, 16 insertions, 0 deletions
diff --git a/sc/inc/token.hxx b/sc/inc/token.hxx
index f742d01ad7a1..8d0d3338f8ec 100644
--- a/sc/inc/token.hxx
+++ b/sc/inc/token.hxx
@@ -208,6 +208,22 @@ public:
virtual FormulaToken* Clone() const SAL_OVERRIDE { return new ScExternalNameToken(*this); }
};
+/** Special token to remember details of ocTableRef "structured references". */
+class ScTableRefToken : public formula::FormulaToken
+{
+ sal_uInt16 mnIndex; ///< index into table / database range collection
+
+ ScTableRefToken(); // disabled
+public:
+ ScTableRefToken( sal_uInt16 nIndex );
+ ScTableRefToken( const ScTableRefToken& r );
+ virtual ~ScTableRefToken();
+
+ virtual sal_uInt16 GetIndex() const SAL_OVERRIDE;
+ virtual bool operator==( const formula::FormulaToken& rToken ) const SAL_OVERRIDE;
+ virtual FormulaToken* Clone() const SAL_OVERRIDE { return new ScTableRefToken(*this); }
+};
+
// Only created from within the interpreter, no conversion from ScRawToken,
// never added to ScTokenArray!
class ScJumpMatrixToken : public formula::FormulaToken