]> git.lyx.org Git - lyx.git/blobdiff - src/lyxfunc.h
Angus insetindex patch + protect patch from Dekel
[lyx.git] / src / lyxfunc.h
index fb88aa29761a47999f661e2181855cfb23404d52..6913a51df25459db3061cf8f0fd0b679fbc21988 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".
@@ -33,12 +34,15 @@ public:
        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);
 
@@ -110,13 +114,9 @@ private:
        void MenuOpen();
 
        ///
-       void doImportLaTeX(bool);
-
-       ///
-       void doImportASCII(bool);
-
-       ///
-       void doImportLinuxDoc();
+       void doImport(string const &);
+       void doImportHelper(string const &, string const &, string const &,
+               bool func(BufferView *, string const &) );
 
        ///
        void MenuInsertLyXFile(string const &);