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 */
39 This is the main LyX object it encapsulates most of the other objects.
43 /**@name Constructors and Deconstructors */
45 /// the only allowed constructor
46 LyX(int * argc, char * argv[]); // constructor
47 // Always is useful a destructor
51 /**@name Pointers to... */
54 LyXGUI * lyxGUI; // should be only one of this
57 /**@name Constructors and Deconstructors */
60 LyX(const LyX &) {} // not allowed
62 LyX() {} // not allowed
65 /**@name Private variables */
67 /// does this user start lyx for the first time?
72 struct sigaction act_;
74 /**@name Private Members */
79 void init(int * argc, char * argv[]);
81 void queryUserLyXDir();
83 void ReadRcFile(string const & name);
85 bool easyParse(int * argc, char * argv[]);