X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FModuleList.h;h=fdc6639a1281f5e736aa303e3733f4d37afbd9c4;hb=1e519d1115f41f71c253cb9e2fbb7803e9a583a9;hp=9194f031e04c03556933c21f3661ef4e46fa3db2;hpb=b5af05b4a75a792b17dbe4f1d75b7f1a6918699c;p=lyx.git diff --git a/src/ModuleList.h b/src/ModuleList.h index 9194f031e0..fdc6639a12 100644 --- a/src/ModuleList.h +++ b/src/ModuleList.h @@ -54,7 +54,7 @@ public: std::vector const & packagelist, std::vector const & requires, std::vector const & excludes, - std::string const & catgy); + std::string const & catgy, bool const local); /// whether the required packages are available bool isAvailable() const; /// the missing prerequisites, if any @@ -78,6 +78,8 @@ public: { return excluded_modules_; } /// std::string category() const { return category_; } + /// Is this a local module (from the user directory)? + bool isLocal() const { return local_; } /// \return true if the module is compatible with this one, i.e., /// it does not exclude us and we do not exclude it. /// this will also return true if modname is unknown and we do not @@ -110,6 +112,8 @@ private: /// mutable bool available_; /// + mutable bool local_; + /// mutable std::vector prerequisites_; }; @@ -149,7 +153,7 @@ public: void addLayoutModule(std::string const &, std::string const &, std::string const &, std::vector const &, std::vector const &, std::vector const &, - std::string const &); + std::string const &, bool const); /// std::vector modlist_; };