diff options
Diffstat (limited to 'include/formula/tokenarray.hxx')
-rw-r--r-- | include/formula/tokenarray.hxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/formula/tokenarray.hxx b/include/formula/tokenarray.hxx index e5d0282d3603..7370e43e373a 100644 --- a/include/formula/tokenarray.hxx +++ b/include/formula/tokenarray.hxx @@ -25,6 +25,8 @@ #include <formula/ExternalReferenceHelper.hxx> #include <limits.h> +#include <boost/unordered_set.hpp> + namespace formula { @@ -123,6 +125,16 @@ public: /// Token of type svIndex or opcode ocColRowName bool HasNameOrColRowName() const; + /** + * Check if the token array contains any of specified opcode tokens. + * + * @param rOpCodes collection of opcodes to check against. + * + * @return true if the token array contains at least one of the specified + * opcode tokens, false otherwise. + */ + bool HasOpCodes( const boost::unordered_set<OpCode>& rOpCodes ) const; + FormulaToken** GetArray() const { return pCode; } FormulaToken** GetCode() const { return pRPN; } sal_uInt16 GetLen() const { return nLen; } |