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;
32 /// e.g. /usr/share/lyx/
33 extern string system_lyxdir;
35 extern string system_tempdir;
37 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 /// initial LyX set up
51 /// set up the default key bindings
52 void defaultKeyBindings(kb_keymap * kbmap);
53 /// set up the default dead key bindings if requested
54 void deadKeyBindings(kb_keymap * kbmap);
55 /// check, set up and configure the user dir if necessary
56 void queryUserLyXDir(bool explicit_userdir);
57 /// return true if the given prefs file was successfully read
58 bool readRcFile(string const & name);
59 /// read the given ui (menu/toolbar) file
60 void readUIFile(string const & name);
61 /// read the given languages file
62 void readLanguagesFile(string const & name);
63 /// read the given encodings file
64 void readEncodingsFile(string const & name);
65 /// parsing of non-gui LyX options. Returns true if gui
66 bool easyParse(int & argc, char * argv[]);
68 /// has this user started lyx for the first time?
70 /// the parsed command line batch command if any