X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Flyxfunc.h;h=ec0685a265b850ba2411f1f066db3e51caf3d55b;hb=797d87b4513088a66b17c7ac653b84e36ea80458;hp=6913a51df25459db3061cf8f0fd0b679fbc21988;hpb=612a097878de07556b76f7445a5564320987ff97;p=features.git diff --git a/src/lyxfunc.h b/src/lyxfunc.h index 6913a51df2..ec0685a265 100644 --- a/src/lyxfunc.h +++ b/src/lyxfunc.h @@ -24,10 +24,15 @@ class LyXFunc { public: /// The status of a function. enum func_status { - OK = 0, // No problem + /// No problem + OK = 0, + /// Unknown = 1, - Disabled = 2, // Command cannot be executed + /// Command cannot be executed + Disabled = 2, + /// ToggleOn = 4, + /// ToggleOff = 8 }; /// @@ -44,7 +49,7 @@ public: bool Dispatch(int action, auto_mem_buffer &); /// A keyboard event is processed to execute a lyx action. - int processKeyEvent(XEvent * ev); + int processKeyEvent(XEvent * ev); /// func_status getStatus(int ac) const; @@ -115,6 +120,7 @@ private: /// void doImport(string const &); + /// void doImportHelper(string const &, string const &, string const &, bool func(BufferView *, string const &) ); @@ -172,7 +178,7 @@ void LyXFunc::setHintMessage(bool hm) show_sc = hm; } - +/// inline void operator|=(LyXFunc::func_status & fs, LyXFunc::func_status f) {