]> git.lyx.org Git - lyx.git/blobdiff - src/LyX.h
even example code should follow the style conventions
[lyx.git] / src / LyX.h
index 25529e55d57fce8879a8bca7e09d8b49cbb97b62..0d8616eff9b98eef606cb2631ec62e76ae1f4049 100644 (file)
--- a/src/LyX.h
+++ b/src/LyX.h
@@ -54,6 +54,11 @@ public:
        /// Execute LyX.
        int exec(int & argc, char * argv[]);
 
+       /// 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();
 
@@ -105,7 +110,7 @@ public:
        void execBatchCommands();
 
        ///
-       void addFileToLoad(support::FileName const &);
+       void addFileToLoad(std::string const &);
 
 private:
        /// noncopyable
@@ -130,12 +135,6 @@ private:
        */
        void loadFiles();
 
-       /// Create a View, load files and restore GUI Session.
-       void restoreGuiSession();
-
-       /// Initialize RC font for the GUI.
-       void initGuiFont();
-
        /// initial LyX set up
        bool init();
        /// set up the default dead key bindings if requested