/** This class encapsulates LyX action and user command operations.
*/
-class LyXAction : public boost::noncopyable {
+class LyXAction : boost::noncopyable {
private:
///
struct func_info {
///
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. */
+ /** Returns an pseudoaction from a string
+ If you include arguments in func_name, a new psedoaction will be
+ created if needed. */
int LookupFunc(string const & func_name) const;
/** Returns an action tag which name is the most similar to a string.
/// Search for an existent pseudoaction, return -1 if it doesn't exist.
int searchActionArg(kb_action action, string const & arg) const;
- /// Check if a value is a pseudo-action.
- bool isPseudoAction(int) const;
-
/// Return the name associated with command
string const getActionName(int action) const;
/// True if the command has `flag' set
bool funcHasFlag(kb_action action, func_attrib flag) const;
+ typedef func_map::const_iterator const_func_iterator;
+ const_func_iterator func_begin() const;
+ const_func_iterator func_end() const;
private:
///
void init();
mutable arg_map lyx_arg_map;
};
-
-/* -------------------- Inlines ------------------ */
-
-
-inline
-bool LyXAction::isPseudoAction(int a) const
-{
- return a > int(LFUN_LASTACTION);
-}
-
#endif