X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FLyXAction.h;h=6f952d54e98a4c8ff8b1ca9a855acd8b6fc49e1c;hb=24fe5b08c0e1dfb739738acb6fc995da7315d35f;hp=d3f8c51d47313c62add43adacab90c2e735191fb;hpb=a98f82c292c7047478e3362449ab21aa35e03375;p=lyx.git diff --git a/src/LyXAction.h b/src/LyXAction.h index d3f8c51d47..6f952d54e9 100644 --- a/src/LyXAction.h +++ b/src/LyXAction.h @@ -22,13 +22,11 @@ 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: @@ -66,7 +64,7 @@ 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 @@ -120,6 +118,8 @@ private: info_map lyx_info_map; }; +LyXErr & operator<<(LyXErr &, FuncCode); + /// singleton instance extern LyXAction lyxaction;