]> git.lyx.org Git - lyx.git/blobdiff - src/ModuleList.h
Fix memory leak.
[lyx.git] / src / ModuleList.h
index 29931fd8ed03a9087d24f63bc90d59d99263de08..f2db0eb4def0cfb9ddc69c9e6b799ccaf74e28f5 100644 (file)
@@ -15,7 +15,7 @@
 #include <vector>
 #include "support/FileName.h"
 
-#include <boost/utility.hpp>
+#include <boost/noncopyable.hpp>
 
 #include <map>
 
@@ -34,9 +34,9 @@ namespace lyx {
                /// a short description for use in the ui
                std::string description;
                /// the LaTeX packages on which this depends, if any (not implemented)
-               //std::vector<std::string> packageList;
+               std::vector<std::string> packageList;
                /// whether those packages are available (not implemented yet)
-               //bool available;
+               bool available;
        };
        
        typedef std::vector<LyXModule> LyXModuleList;
@@ -51,7 +51,8 @@ namespace lyx {
                        bool load();
                        /// add a module to the list
                        void addLayoutModule(std::string name, std::string filename, 
-                                            std::string description);
+                                            std::string description,
+                                            std::vector<std::string> packages);
                        ///
                        LyXModuleList::const_iterator begin() const;
                        ///