4 * Copyright 2002 the LyX Team
5 * Read the file COPYING
14 #include "errorlist.h"
16 #include <boost/scoped_ptr.hpp>
17 #include <boost/utility.hpp>
29 extern boost::scoped_ptr<LastFiles> lastfiles;
33 class LyX : boost::noncopyable {
35 LyX(int & argc, char * argv[]);
37 /// in the case of failure
38 static void emergencyCleanup();
41 /// initial LyX set up
43 /// set up the default key bindings
44 void defaultKeyBindings(kb_keymap * kbmap);
45 /// set up the default dead key bindings if requested
46 void deadKeyBindings(kb_keymap * kbmap);
47 /// check, set up and configure the user dir if necessary
48 void queryUserLyXDir(bool explicit_userdir);
49 /// read lyxrc/preferences
50 void readRcFile(string const & name);
51 /// read the given ui (menu/toolbar) file
52 void readUIFile(string const & name);
53 /// read the given languages file
54 void readLanguagesFile(string const & name);
55 /// read the given encodings file
56 void readEncodingsFile(string const & name);
57 /// parsing of non-gui LyX options. Returns true if gui
58 bool easyParse(int & argc, char * argv[]);
59 /// shows up a parsing error on screen
60 void printError(ErrorItem const &);
62 /// has this user started lyx for the first time?
64 /// the parsed command line batch command if any