]> 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 fddfd674e0af28d420049952e036631a6aedd3f1..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 */
 
 
 /**
@@ -56,7 +59,7 @@ public:
 
 private:
        /// Should be a maximum of 1 LyXGUI.
-       LyXGUI * lyxGUI;
+       boost::scoped_ptr<LyXGUI> lyxGUI;
        /// does this user start lyx for the first time?
        bool first_start;
        ///