]> git.lyx.org Git - lyx.git/blobdiff - src/lyx_main.h
More ascii-export fixes and when making copy of single tabular cells now the
[lyx.git] / src / lyx_main.h
index d2b0fb9bea80fa2fd4425b6b634ac77fdbbbc17d..523de58dd98616fda4c34833621af506cdbb3abe 100644 (file)
@@ -22,6 +22,8 @@
 #include <csignal>
 
 #include "LString.h"
+
+#include <boost/smart_ptr.hpp>
 #include <boost/utility.hpp>
 
 class LyXGUI;
@@ -37,8 +39,9 @@ extern string user_lyxdir;
 ///
 extern string system_tempdir;
 ///
-extern LastFiles * lastfiles; /* we should hopefully be able to move this
-                             * inside the LyX class */
+extern boost::scoped_ptr<LastFiles> lastfiles;
+/* we should hopefully be able to move this
+ * inside the LyX class */
 
 
 /**
@@ -51,9 +54,12 @@ public:
        /// Always is useful a destructor
        ~LyX();
 
-       ///
-       LyXGUI * lyxGUI;  // should be only one of this
+       /// in the case of failure
+       static void emergencyCleanup();
+
 private:
+       /// Should be a maximum of 1 LyXGUI.
+       boost::scoped_ptr<LyXGUI> lyxGUI;
        /// does this user start lyx for the first time?
        bool first_start;
        ///