X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FLyXAction.h;h=5203bc4fcd62338098f481f240fb8e7283953e34;hb=823e44822e6638824900eee2f7e2e7165af97f8d;hp=70381a00227556b8ee6a15c0ee25d985343701b0;hpb=3e5493ace10f3fee2ba0f51dad6995287a155eb2;p=lyx.git diff --git a/src/LyXAction.h b/src/LyXAction.h index 70381a0022..5203bc4fcd 100644 --- a/src/LyXAction.h +++ b/src/LyXAction.h @@ -4,7 +4,7 @@ * This file is part of LyX, the document processor. * Licence details can be found in the file COPYING. * - * \author Lars Gullik Bjønnes + * \author Lars Gullik Bjønnes * \author John Levon * * Full author contact details are available in file CREDITS. @@ -22,6 +22,7 @@ namespace lyx { class FuncRequest; +class LyXErr; /** * This class is a container for LyX actions. It associates a name to @@ -62,12 +63,13 @@ 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); no automatic markDirty + Noop = 0, //< Nothing special about this func + 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 - SingleParUpdate = 16 //< Usually only requires this par updated + SingleParUpdate = 16, //< Usually only requires this par updated + AtPoint = 32, //< dispatch first to inset at cursor if there is one }; LyXAction(); @@ -82,7 +84,7 @@ public: /// Return the name (and argument) associated with the given (pseudo) action std::string const getActionName(FuncCode action) const; - func_type const getActionType(FuncCode action) const; + func_type getActionType(FuncCode action) const; /// True if the command has `flag' set bool funcHasFlag(FuncCode action, func_attrib flag) const; @@ -117,6 +119,8 @@ private: info_map lyx_info_map; }; +LyXErr & operator<<(LyXErr &, FuncCode); + /// singleton instance extern LyXAction lyxaction;