- /** Search for and read the LyXRC file name, return
- true if successfull.
- */
- bool ReadRcFile(string const & name);
- /// Read the ui file `name'
- void ReadUIFile(string const & name);
- /// Read the languages file `name'
- void ReadLangugesFile(string const & name);
- /// Read the encodings file `name'
- void ReadEncodingsFile(string const & name);
- ///
- bool easyParse(int * argc, char * argv[]);
+ /// 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?
+ bool first_start;
+ /// the parsed command line batch command if any
+ std::string batch_command;
+
+ /// last files loaded
+ boost::scoped_ptr<LastFiles> lastfiles_;
+ ///
+ typedef std::list<boost::shared_ptr<LyXView> > ViewList;
+ ViewList views_;