summaryrefslogtreecommitdiff
path: root/sc/inc/token.hxx
diff options
context:
space:
mode:
authorKohei Yoshida <kyoshida@novell.com>2011-03-09 00:37:45 -0500
committerKohei Yoshida <kyoshida@novell.com>2011-03-11 16:01:34 -0500
commit9008aac0ad1aa868d3e23168ffb5daddbbff15bb (patch)
tree8ce33011b4d02727e577cf662603c87aa1a8da05 /sc/inc/token.hxx
parenta22bed643c9c0156981bde42ffb9382562058f40 (diff)
Store additional flag for global vs local storage of named ranges.
Also, store sheet-local named ranges from Excel into the table instead of the document.
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 362ba1bbdad6..8168c0aef0b9 100644
--- a/sc/inc/token.hxx
+++ b/sc/inc/token.hxx
@@ -236,6 +236,22 @@ public:
virtual FormulaToken* Clone() const { return new ScExternalDoubleRefToken(*this); }
};
+class ScNameToken : public ScToken
+{
+private:
+ sal_uInt16 mnIndex;
+ bool mbGlobal; // true = global, false = local
+private:
+ ScNameToken(); // disabled
+public:
+ ScNameToken(sal_uInt16 nIndex, bool bGlobal);
+ ScNameToken(const ScNameToken& r);
+ virtual ~ScNameToken();
+ virtual BYTE GetByte() const;
+ virtual USHORT GetIndex() const;
+ virtual BOOL operator==( const formula::FormulaToken& rToken ) const;
+ virtual FormulaToken* Clone() const { return new ScNameToken(*this); }
+};
class ScExternalNameToken : public ScToken
{