]> git.lyx.org Git - lyx.git/blobdiff - src/lyxfunc.h
Fix small bug in reading \set_color in lyxrc
[lyx.git] / src / lyxfunc.h
index 065683f54e5687dfd1d92903f665a287797a09a9..6913a51df25459db3061cf8f0fd0b679fbc21988 100644 (file)
@@ -7,11 +7,12 @@
 #endif
 
 #include "commandtags.h"
-#include "kbmap.h"
+#include "kbsequence.h"
 #include "insets/lyxinset.h"
 #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".
@@ -30,14 +31,18 @@ public:
                ToggleOff = 8
        };
        ///
+       explicit
        LyXFunc(LyXView *);
     
-       /// LyX distpatcher, executes lyx actions.
+       /// LyX dispatcher, executes lyx actions.
        string Dispatch(int action, char const * arg = 0);
                         
        /// 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);
 
@@ -109,10 +114,9 @@ private:
        void MenuOpen();
 
        ///
-       void doImportLaTeX(bool);
-
-       ///
-       void doImportASCII(bool);
+       void doImport(string const &);
+       void doImportHelper(string const &, string const &, string const &,
+               bool func(BufferView *, string const &) );
 
        ///
        void MenuInsertLyXFile(string const &);