]> git.lyx.org Git - lyx.git/blobdiff - src/lyxfunc.h
Forgot to add this files.
[lyx.git] / src / lyxfunc.h
index f8a8e906e0d8c78705c54453c2943841e19acc9a..ec0685a265b850ba2411f1f066db3e51caf3d55b 100644 (file)
@@ -12,6 +12,7 @@
 #include "LString.h"
 
 class LyXView;
+class auto_mem_buffer;
 
 /** This class encapsulates all the LyX command operations. 
     This is the class of the LyX's "high level event handler".
@@ -23,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
        };
        ///
@@ -39,8 +45,11 @@ public:
        /// The same but uses the name of a lyx command.
        string Dispatch(string const & cmd);
 
+       /// Same again but for xtl buffers.  Still looking for better idea.
+       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;
@@ -72,7 +81,6 @@ public:
        
        /// Should a hint message be displayed?
        void setHintMessage(bool);
-
 private:
        ///
        LyXView * owner;
@@ -112,6 +120,7 @@ private:
 
        ///
        void doImport(string const &);
+       ///
        void doImportHelper(string const &, string const &, string const &,
                bool func(BufferView *, string const &) );
 
@@ -169,7 +178,7 @@ void LyXFunc::setHintMessage(bool hm)
        show_sc = hm;
 }
 
-
+///
 inline
 void operator|=(LyXFunc::func_status & fs, LyXFunc::func_status f)
 {