diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2013-11-07 14:16:48 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2013-11-11 16:17:28 -0500 |
commit | 3ac4277ba1ad8925329bbe8a1c5ed3684b9b8ee7 (patch) | |
tree | 70b27ea6a553f1922ecda72ca44d4fd194bc0126 /include/formula | |
parent | 6122a6c272436f0f1959f160406d2e4ecdd1a733 (diff) |
Thread-safe way to check for presence of references in formula tokens.
Change-Id: I995668d1e183dc0dae4f354889bc13053e858723
Diffstat (limited to 'include/formula')
-rw-r--r-- | include/formula/token.hxx | 5 | ||||
-rw-r--r-- | include/formula/tokenarray.hxx | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/include/formula/token.hxx b/include/formula/token.hxx index 73f773bcff0e..002cefbb8a21 100644 --- a/include/formula/token.hxx +++ b/include/formula/token.hxx @@ -106,7 +106,10 @@ public: inline void Delete() { delete this; } inline StackVar GetType() const { return eType; } bool IsFunction() const; // pure functions, no operators - bool IsExternalRef() const; + + bool IsExternalRef() const; + bool IsRef() const; + sal_uInt8 GetParamCount() const; inline void IncRef() const diff --git a/include/formula/tokenarray.hxx b/include/formula/tokenarray.hxx index ddd7d81b5abe..9f8fed0ab27d 100644 --- a/include/formula/tokenarray.hxx +++ b/include/formula/tokenarray.hxx @@ -116,6 +116,8 @@ public: FormulaToken* LastRPN() { nIndex = nRPN; return PrevRPN(); } FormulaToken* PrevRPN(); + bool HasReferences() const; + bool HasExternalRef() const; bool HasOpCode( OpCode ) const; bool HasOpCodeRPN( OpCode ) const; |