/** This class encapsulates LyX action and user command operations.
*/ class LyXAction { public: ///
LyXAction(); ///
~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(charconst *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(charconst *func);
/** Returns an action name the most similar to a string.
Don't include arguments, they would be ignored. */ constchar *getApproxFuncName(charconst *func);
/// Returns a pseudo-action given an action and its argument. int getPseudoAction(kb_action action, charconst *arg);
/// Retrieves the real action and its argument. int retrieveActionArg(int i, charconst **arg);
/// Search for an existent pseudoaction, return -1 if it doesn't exist. int searchActionArg(kb_action action, charconst *arg);
/// Check if a value is a pseudo-action. bool isPseudoAction(int);
/// Not sure if this function should be here int bindKey(charconst* seq, int action);
/// Return the name associated with command charconst *getActionName(int action) const;
/// Return one line help text associated with command charconst *helpText(kb_action action) const;
/// True if the command is Read Only (not allowed for RO buffers) bool isFuncRO(kb_action action) const;
private:
/// Standard commands static kb_func_table const * lyx_func_table; /// Number of commands int funcCount; /// Pseudoactions static kb_func_table *lyx_func_args; /// Pseudoaction index staticint psd_idx; /// Last action index found int last_action_idx;
};
inline bool LyXAction::isPseudoAction(int a)
{ return (a >= (int)LFUN_LASTACTION);
}
#endif
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.4Bemerkung:
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.