From 355baf573425165cbc1c789a6271eb29940e1f76 Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Mon, 7 Apr 2014 14:13:20 -0400 Subject: fdo#75741: Re-implement CompileNameFormula for formula groups. Change-Id: I57e1e464ac5f7abc10ce5ea5752e036ddb6cf6d7 --- include/formula/tokenarray.hxx | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'include/formula') 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 #include +#include + 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& rOpCodes ) const; + FormulaToken** GetArray() const { return pCode; } FormulaToken** GetCode() const { return pRPN; } sal_uInt16 GetLen() const { return nLen; } -- cgit