4 * Copyright 2002 the LyX Team
5 * Read the file COPYING
19 #include <boost/scoped_ptr.hpp>
20 #include <boost/utility.hpp>
31 extern string user_lyxdir;
33 extern string system_lyxdir;
35 extern string system_tempdir;
37 extern boost::scoped_ptr<LastFiles> lastfiles;
40 class LyX : boost::noncopyable {
42 LyX(int & argc, char * argv[]);
44 /// in the case of failure
45 static void emergencyCleanup();
48 /// does this user start lyx for the first time?
57 void defaultKeyBindings(kb_keymap * kbmap);
59 void deadKeyBindings(kb_keymap * kbmap);
61 void queryUserLyXDir(bool explicit_userdir);
62 /** Search for and read the LyXRC file name, return
65 bool readRcFile(string const & name);
66 /// Read the ui file `name'
67 void readUIFile(string const & name);
68 /// Read the languages file `name'
69 void readLanguagesFile(string const & name);
70 /// Read the encodings file `name'
71 void readEncodingsFile(string const & name);
73 bool easyParse(int & argc, char * argv[]);