diff options
author | Eike Rathke <erack@redhat.com> | 2015-03-04 22:33:41 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2015-03-05 11:45:01 +0100 |
commit | 967f609cb7bcfd42ccae3d6c8ea75ef9e40910be (patch) | |
tree | c006f8af5daac58bbad6400831531b84d239c92e /sc/inc/token.hxx | |
parent | 338d006c9da54ecdd211144dbfe76a076fe20b27 (diff) |
add Item enum to ScTableRefToken
Change-Id: Ie35d717fd55e6bbde958d3f2be4dac5f489467f9
Diffstat (limited to 'sc/inc/token.hxx')
-rw-r--r-- | sc/inc/token.hxx | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/sc/inc/token.hxx b/sc/inc/token.hxx index 8d0d3338f8ec..5564a200d257 100644 --- a/sc/inc/token.hxx +++ b/sc/inc/token.hxx @@ -211,17 +211,34 @@ public: /** 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 ); + + enum Item + { + ALL = 0, + HEADERS = 1, + DATA = 2, + TOTALS = 4, + THIS_ROW = 8 + }; + + ScTableRefToken( sal_uInt16 nIndex, Item eItem ); 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); } + + Item GetItem() const; + +private: + + sal_uInt16 mnIndex; ///< index into table / database range collection + Item meItem; + + ScTableRefToken(); // disabled + }; // Only created from within the interpreter, no conversion from ScRawToken, |