]> git.lyx.org Git - lyx.git/blobdiff - src/LyXAction.h
* lyx_1_6.py:
[lyx.git] / src / LyXAction.h
index d3f8c51d47313c62add43adacab90c2e735191fb..6f952d54e98a4c8ff8b1ca9a855acd8b6fc49e1c 100644 (file)
 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;