]> git.lyx.org Git - lyx.git/blobdiff - src/ModuleList.h
Embedding: saving inzip name to .lyx file so that embedded files can always be found...
[lyx.git] / src / ModuleList.h
index 5c22db30365d56f6e700ea097ebc33d341564d16..e0e52f72ee572408ca32f3f372afe493d344ad58 100644 (file)
@@ -29,9 +29,28 @@ class LyXModule {
 public:
        ///
        LyXModule(std::string const & n, std::string const & f, 
-                 std::string const & d, std::vector<std::string> const & p);
+                 std::string const & d, std::vector<std::string> const & p,
+                 std::vector<std::string> const & r, 
+                 std::vector<std::string> const & e);
        /// whether the required packages are available
        bool isAvailable();
+       ///
+       std::string const & getName() const { return name; }
+       ///
+       std::string const & getFilename() const { return filename; }
+       ///
+       std::string const & getDescription() const { return description; }
+       ///
+       std::vector<std::string> const & getPackageList() const
+               { return packageList; }
+       ///
+       std::vector<std::string> const & getRequiredModules() const 
+               { return requiredModules; }
+       /// Modules this one excludes: the list should be treated disjunctively
+       std::vector<std::string> const & getExcludedModules() const 
+               { return excludedModules; }
+       
+private:
        /// what appears in the ui
        std::string name;
        /// the filename, without any path
@@ -40,7 +59,10 @@ public:
        std::string description;
        /// the LaTeX packages on which this depends, if any (not implemented)
        std::vector<std::string> packageList;
-private:
+       /// Modules this one requires: at least one
+       std::vector<std::string> requiredModules;
+       /// Modules this one excludes: none of these
+       std::vector<std::string> excludedModules;
        ///
        bool checked;
        ///
@@ -59,10 +81,6 @@ public:
        ModuleList() {}
        /// reads the modules from a file generated by configure.py
        bool load();
-       /// add a module to the list
-       void addLayoutModule(std::string const & name,
-               std::string const & filename, std::string const & description,
-               std::vector<std::string> const & packages);
        ///
        LyXModuleList::const_iterator begin() const;
        ///
@@ -79,8 +97,12 @@ public:
 private:
        /// noncopyable
        ModuleList(ModuleList const &);
+       ///
        void operator=(ModuleList const &);
-
+       /// add a module to the list
+       void addLayoutModule(std::string const &, std::string const &, 
+               std::string const &, std::vector<std::string> const &,
+               std::vector<std::string> const &, std::vector<std::string> const &);
        ///
        std::vector<LyXModule> modlist_;
 };