- /**@name Constructors and Deconstructors */
- //@{
- /// not allowed
- LyX(const LyX &) {} // not allowed
- /// not allowed
- LyX() {} // not allowed
- //@}
-
- /**@name Private variables */
- //@{
- /// does this user start lyx for the first time?
+ static boost::scoped_ptr<LyX> singleton_;
+
+ LyX();
+ void priv_exec(int & argc, char * argv[]);
+
+ /// initial LyX set up
+ void init(bool);
+ /// set up the default key bindings
+ void defaultKeyBindings(kb_keymap * kbmap);
+ /// set up the default dead key bindings if requested
+ void deadKeyBindings(kb_keymap * kbmap);
+ /// check, set up and configure the user dir if necessary
+ void queryUserLyXDir(bool explicit_userdir);
+ /// read lyxrc/preferences
+ void readRcFile(std::string const & name);
+ /// read the given ui (menu/toolbar) file
+ void readUIFile(std::string const & name);
+ /// read the given languages file
+ void readLanguagesFile(std::string const & name);
+ /// read the given encodings file
+ void readEncodingsFile(std::string const & name);
+ /// parsing of non-gui LyX options. Returns true if gui
+ bool easyParse(int & argc, char * argv[]);
+ /// shows up a parsing error on screen
+ void printError(ErrorItem const &);
+
+ /// has this user started lyx for the first time?