]> git.lyx.org Git - lyx.git/blobdiff - src/lyx_main.h
Fix small bug in reading \set_color in lyxrc
[lyx.git] / src / lyx_main.h
index cd7ac85e9153a921fb5e17bdc4af65aeec1fac4b..ef58c2bcf1ea1e7813871ae8f9e7783e56349700 100644 (file)
@@ -4,8 +4,8 @@
 * 
 *           LyX, The Document Processor
 *       
-*          Copyright (C) 1995 1996 Matthias Ettrich
-*           and the LyX Team.
+*           Copyright 1995 Matthias Ettrich
+*           Copyright 1995-2000 The LyX Team.
 *
 * ====================================================== */
 
 #ifndef LYX_MAIN_H
 #define LYX_MAIN_H
 
+#ifdef __GNUG__
+#pragma interface
+#endif
+
 #include <csignal>
 
 #include "LString.h"
@@ -23,23 +27,20 @@ class LyXGUI;
 class LyXRC;
 class LastFiles;
 class Buffer;
-
+class kb_keymap;
 
 extern string system_lyxdir;
 extern string user_lyxdir;
 extern string system_tempdir;
 
-extern LastFiles *lastfiles; /* we should hopefully be able to move this
+extern LastFiles * lastfiles; /* we should hopefully be able to move this
                              * inside the LyX class */
 
-extern LyXRC *lyxrc;
-
 
 /**
   This is the main LyX object it encapsulates most of the other objects.
 */
-class LyX
-{
+class LyX {
 public:
        /**@name Constructors and Deconstructors */
        //@{
@@ -52,7 +53,7 @@ public:
        /**@name Pointers to... */
        //@{
        ///
-       LyXGUI *lyxGUI;  // should be only one of this
+       LyXGUI * lyxGUI;  // should be only one of this
        //@}
 private:
        /**@name Constructors and Deconstructors */
@@ -69,24 +70,30 @@ private:
        bool first_start;
        ///
        string batch_command;
-       ///
-       struct sigaction act_;
+       /// 
+       // struct sigaction act_; // seems to be unused
        //@}
        /**@name Private Members */
        //@{
        ///
        void runtime();
        ///
-       void init(int *argc, char *argv[]);
+       void init(int * argc, char * argv[], bool);
+       ///
+       void defaultKeyBindings(kb_keymap * kbmap);
        ///
-       void queryUserLyXDir();
+       void deadKeyBindings(kb_keymap * kbmap);
        ///
-        void ReadRcFile(string const & name);
+       void queryUserLyXDir(bool explicit_userdir);
+       /** Search for and read the LyXRC file name, return
+           true if successfull.
+       */
+        bool ReadRcFile(string const & name);
+       /// Read the ui file `name'
+       void ReadUIFile(string const & name);
         ///
-       bool easyParse(int *argc, char *argv[]);
+       bool easyParse(int * argc, char * argv[]);
        //@}
 };
 
 #endif
-
-