summaryrefslogtreecommitdiff
path: root/include/formula
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2014-04-07 14:13:20 -0400
committerKohei Yoshida <kohei.yoshida@collabora.com>2014-04-07 14:43:16 -0400
commit355baf573425165cbc1c789a6271eb29940e1f76 (patch)
tree42050f8ac0a293b75e3745d511fe2e086e88cd42 /include/formula
parent137c288978fb8f4aee259fabfdcb9252b1b011d3 (diff)
fdo#75741: Re-implement CompileNameFormula for formula groups.
Change-Id: I57e1e464ac5f7abc10ce5ea5752e036ddb6cf6d7
Diffstat (limited to 'include/formula')
-rw-r--r--include/formula/tokenarray.hxx12
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; }