X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FLyXAction.h;h=c5fbf527cea2d1ec638ce5f3ab0655037fb66bd0;hb=8d1c58af82d1fc356f470dff97878ab7c3e8a2fe;hp=c48d599e226be5da25cf891ee0a0b315746c7b16;hpb=39eec46bd31753afaec103fcc45f9d6ba75bdb3e;p=lyx.git diff --git a/src/LyXAction.h b/src/LyXAction.h index c48d599e22..c5fbf527ce 100644 --- a/src/LyXAction.h +++ b/src/LyXAction.h @@ -63,9 +63,9 @@ public: /// 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. @@ -83,11 +83,8 @@ public: kb_action retrieveActionArg(int i, string & arg) const; /// Search for an existent pseudoaction, return -1 if it doesn't exist. - kb_action searchActionArg(kb_action action, string const & arg) const; + 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; @@ -126,14 +123,4 @@ private: mutable arg_map lyx_arg_map; }; - -/* -------------------- Inlines ------------------ */ - - -inline -bool LyXAction::isPseudoAction(int a) const -{ - return a > int(LFUN_LASTACTION); -} - #endif