summaryrefslogtreecommitdiff
path: root/sc/inc/token.hxx
diff options
context:
space:
mode:
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