]> git.lyx.org Git - lyx.git/blobdiff - src/LyX.h
Tweaks.
[lyx.git] / src / LyX.h
index f02ea652df5052de031dc0554bc790c0422de9cb..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();
 
@@ -101,13 +106,6 @@ public:
        ///
        frontend::LyXView * newLyXView();
 
-       /** redraw \c inset in all the BufferViews in which it is currently
-        *  visible. If successful return a pointer to the owning Buffer.
-        */
-       Buffer const * updateInset(Inset const *) const;
-
-       void hideDialogs(std::string const & name, Inset * inset) const;
-
        /// Execute batch commands if available.
        void execBatchCommands();
 
@@ -140,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