]> git.lyx.org Git - lyx.git/blobdiff - src/lyx_main.h
John's Layout Tabular UI improvements and Martins fixes to clearing the
[lyx.git] / src / lyx_main.h
index fa48772a789357ed63daff3e82bb8db3c76e9993..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 */
 
 
 /**
@@ -53,10 +56,10 @@ public:
 
        /// in the case of failure
        static void emergencyCleanup();
-       ///
-       LyXGUI * lyxGUI;  // should be only one of this
+
 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;
        ///