diff options
author | Kohei Yoshida <kyoshida@novell.com> | 2011-03-09 00:37:45 -0500 |
---|---|---|
committer | Kohei Yoshida <kyoshida@novell.com> | 2011-03-11 16:01:34 -0500 |
commit | 9008aac0ad1aa868d3e23168ffb5daddbbff15bb (patch) | |
tree | 8ce33011b4d02727e577cf662603c87aa1a8da05 /sc/inc/token.hxx | |
parent | a22bed643c9c0156981bde42ffb9382562058f40 (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.hxx | 16 |
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 { |