2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 1995 Matthias Ettrich
8 * Copyright 1995-2000 The LyX Team.
10 * ====================================================== */
12 /* This is the declaration of the LyX class, there should only
13 * exist _one_ instance of this in the application. */
32 extern string system_lyxdir;
33 extern string user_lyxdir;
34 extern string system_tempdir;
36 extern LastFiles * lastfiles; /* we should hopefully be able to move this
37 * inside the LyX class */
41 This is the main LyX object it encapsulates most of the other objects.
45 /**@name Constructors and Deconstructors */
47 /// the only allowed constructor
48 LyX(int * argc, char * argv[]); // constructor
49 // Always is useful a destructor
53 /**@name Pointers to... */
56 LyXGUI * lyxGUI; // should be only one of this
59 /**@name Constructors and Deconstructors */
62 LyX(const LyX &) {} // not allowed
64 LyX() {} // not allowed
67 /**@name Private variables */
69 /// does this user start lyx for the first time?
74 // struct sigaction act_; // seems to be unused
76 /**@name Private Members */
81 void init(int * argc, char * argv[], bool);
83 void defaultKeyBindings(kb_keymap * kbmap);
85 void deadKeyBindings(kb_keymap * kbmap);
87 void queryUserLyXDir(bool explicit_userdir);
88 /** Search for and read the LyXRC file name, return
91 bool ReadRcFile(string const & name);
92 /// Read the ui file `name'
93 void ReadUIFile(string const & name);
95 bool easyParse(int * argc, char * argv[]);