]> git.lyx.org Git - lyx.git/blobdiff - src/LyX.h
This is the first of a series of commits that will make InsetLayout a real class.
[lyx.git] / src / LyX.h
index 5d0cf3340c696e3e1758163aa9a5e5111002020a..982301a4e1cb9de265ae5571c1b1440ff6f08be5 100644 (file)
--- a/src/LyX.h
+++ b/src/LyX.h
@@ -38,6 +38,7 @@ class KeyMap;
 class CmdDef;
 
 extern bool use_gui;
+extern bool quitting;
 
 namespace frontend {
 class Application;
@@ -54,6 +55,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 +111,7 @@ public:
        void execBatchCommands();
 
        ///
-       void addFileToLoad(support::FileName const &);
+       void addFileToLoad(std::string const &);
 
 private:
        /// noncopyable
@@ -130,9 +136,6 @@ private:
        */
        void loadFiles();
 
-       /// Create a View, load files and restore GUI Session.
-       void restoreGuiSession();
-
        /// initial LyX set up
        bool init();
        /// set up the default dead key bindings if requested