4 * Copyright 2002 the LyX Team
5 * Read the file COPYING
19 #include <boost/scoped_ptr.hpp>
20 #include <boost/utility.hpp>
32 extern string user_lyxdir;
34 extern string system_lyxdir;
36 extern string system_tempdir;
38 extern boost::scoped_ptr<LastFiles> lastfiles;
41 class LyX : boost::noncopyable {
43 LyX(int * argc, char * argv[]);
45 /// in the case of failure
46 static void emergencyCleanup();
49 /// Should be a maximum of 1 LyXGUI.
50 boost::scoped_ptr<LyXGUI> lyxGUI;
51 /// does this user start lyx for the first time?
60 void defaultKeyBindings(kb_keymap * kbmap);
62 void deadKeyBindings(kb_keymap * kbmap);
64 void queryUserLyXDir(bool explicit_userdir);
65 /** Search for and read the LyXRC file name, return
68 bool readRcFile(string const & name);
69 /// Read the ui file `name'
70 void readUIFile(string const & name);
71 /// Read the languages file `name'
72 void readLanguagesFile(string const & name);
73 /// Read the encodings file `name'
74 void readEncodingsFile(string const & name);
76 bool easyParse(int * argc, char * argv[]);