- /// Try to exit LyX properly.
- /// \p exit_code is 0 by default, if a non zero value is passed,
- /// emergencyCleanup() will be called before exiting.
- void exit(int exit_code = 0) const;
-
- static LyX & ref();
- static LyX const & cref();
-
- /// in the case of failure
- void emergencyCleanup() const;
-
- ///
- BufferList & bufferList();
- BufferList const & bufferList() const;
- ///
- Session & session();
- Session const & session() const;
- ///
- LyXFunc & lyxFunc();
- LyXFunc const & lyxFunc() const;
- ///
- Server & server();
- Server const & server() const;
- ///
- ServerSocket & socket();
- ServerSocket const & socket() const;
-
- ///
- frontend::Application & application();
- frontend::Application const & application() const;
-
- ///
- CmdDef & topLevelCmdDef();
-
- ///
- Converters & converters();
- Converters & systemConverters();
-
- ///
- Messages & getMessages(std::string const & language);
- ///
- Messages & getGuiMessages();
- ///
- void setGuiLanguage(std::string const & language);
-
- ///
- frontend::LyXView * newLyXView();
-
- /// Execute batch commands if available.
- void execBatchCommands();
-
- ///
- void addFileToLoad(std::string const &);
-