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. */
28 extern string system_lyxdir;
29 extern string user_lyxdir;
30 extern string system_tempdir;
32 extern LastFiles * lastfiles; /* we should hopefully be able to move this
33 * inside the LyX class */
37 This is the main LyX object it encapsulates most of the other objects.
41 /**@name Constructors and Deconstructors */
43 /// the only allowed constructor
44 LyX(int * argc, char * argv[]); // constructor
45 // Always is useful a destructor
49 /**@name Pointers to... */
52 LyXGUI * lyxGUI; // should be only one of this
55 /**@name Constructors and Deconstructors */
58 LyX(const LyX &) {} // not allowed
60 LyX() {} // not allowed
63 /**@name Private variables */
65 /// does this user start lyx for the first time?
70 struct sigaction act_;
72 /**@name Private Members */
77 void init(int * argc, char * argv[], bool);
79 void defaultKeyBindings(kb_keymap * kbmap);
81 void deadKeyBindings(kb_keymap * kbmap);
83 void queryUserLyXDir(bool explicit_userdir);
85 void ReadRcFile(string const & name);
87 bool easyParse(int * argc, char * argv[]);