- ///
- ~LyXAction();
-
- /** Returns an action tag from a string. Returns kb_action.
- Include arguments in func_name ONLY if you
- want to create new pseudo actions. */
- int LookupFunc(char const * func_name);
-
- /** Returns an action tag which name is the most similar to a string.
- Don't include arguments, they would be ignored. */
- int getApproxFunc(char const * func);
-
- /** Returns an action name the most similar to a string.
- Don't include arguments, they would be ignored. */
- char const * getApproxFuncName(char const * func);
-
- /// Returns a pseudo-action given an action and its argument.
- int getPseudoAction(kb_action action, char const * arg);
-
- /// Retrieves the real action and its argument.
- int retrieveActionArg(int i, char const ** arg);
-
- /// Search for an existent pseudoaction, return -1 if it doesn't exist.
- int searchActionArg(kb_action action, char const * arg);
-
- /// Check if a value is a pseudo-action.
- bool isPseudoAction(int);
-
- /// Not sure if this function should be here
- int bindKey(char const * seq, int action);
-
- /// Return the name associated with command
- char const * getActionName(int action) const;
-
- /// Return one line help text associated with command
- char const * helpText(kb_action action) const;
-
- /// True if the command is Read Only (not allowed for RO buffers)
- bool isFuncRO(kb_action action) const;
+
+ /**
+ * Returns an pseudoaction from a string
+ * If you include arguments in func_name, a new pseudoaction
+ * will be created if needed.
+ */
+ FuncRequest lookupFunc(std::string const & func_name) const;
+
+ /// Return the name (and argument) associated with the given (pseudo) action
+ std::string const getActionName(kb_action action) const;
+
+ /// True if the command has `flag' set
+ bool funcHasFlag(kb_action action, func_attrib flag) const;
+
+ /// iterator across all real actions
+ typedef func_map::const_iterator const_func_iterator;
+
+ /// return an iterator to the start of all real actions
+ const_func_iterator func_begin() const;
+
+ /// return an iterator to the end of all real actions
+ const_func_iterator func_end() const;