namespace lyx {
class FuncRequest;
+class LyXErr;
/**
- * This class is a container for LyX actions. It also
- * stores and managers "pseudo-actions". Pseudo-actions
- * are not part of the FuncCode enum, but are created
- * dynamically, for encapsulating a real action and an
- * argument. They are used for things like the menus.
+ * This class is a container for LyX actions. It associates a name to
+ * most of them and describes some of their properties.
*/
class LyXAction {
public:
/// possible "permissions" for an action
enum func_attrib {
Noop = 0, //< nothing special about this func
- ReadOnly = 1, //< can be used in RO mode (perhaps this should change)
+ ReadOnly = 1, //< can be used in RO mode (perhaps this should change); no automatic markDirty
NoBuffer = 2, //< Can be used when there is no document open
Argument = 4, //< Requires argument
NoUpdate = 8, //< Does not (usually) require update
info_map lyx_info_map;
};
+LyXErr & operator<<(LyXErr &, FuncCode);
+
/// singleton instance
extern LyXAction lyxaction;