]> git.lyx.org Git - lyx.git/blobdiff - src/LyX.h
Embedding: saving inzip name to .lyx file so that embedded files can always be found...
[lyx.git] / src / LyX.h
index 25529e55d57fce8879a8bca7e09d8b49cbb97b62..fa3c99d617adfe61890e33beba52a76c48535940 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();
 
@@ -133,9 +138,6 @@ private:
        /// 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