X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FCiteEnginesList.h;h=24bec03852015130ec8cb5cf2620dc097cd028e6;hb=19b840ae23a888300f9a5c03971351b546cce93d;hp=42264863c50e359b5f786ad83beb0f349098261b;hpb=f6d4bce12303a2f30ea129ee86e7f7d879668260;p=lyx.git diff --git a/src/CiteEnginesList.h b/src/CiteEnginesList.h index 42264863c5..24bec03852 100644 --- a/src/CiteEnginesList.h +++ b/src/CiteEnginesList.h @@ -54,9 +54,7 @@ public: std::string const & cfm, std::vector const & defaultbiblios, std::string const & description, - std::vector const & packagelist, - std::vector const & requires, - std::vector const & excludes); + std::vector const & packagelist); /// whether the required packages are available bool isAvailable() const; /// the missing prerequisites, if any @@ -83,18 +81,7 @@ public: std::vector const & getPackageList() const { return package_list_; } /// - std::vector const & getRequiredEngines() const - { return required_engines_; } - /// Engines this one excludes: the list should be treated disjunctively - std::vector const & getExcludedEngines() const - { return excluded_engines_; } - /// \return true if the engine is compatible with this one, i.e., - /// it does not exclude us and we do not exclude it. - /// this will also return true if cename is unknown and we do not - /// exclude it, since in that case we cannot check its exclusions. - bool isCompatible(std::string const & cename) const; - /// - static bool areCompatible(std::string const & eng1, std::string const & eng2); + bool requires(std::string const p) const; private: /// what appears in the ui std::string name_; @@ -113,10 +100,6 @@ private: std::string description_; /// the LaTeX packages on which this depends, if any std::vector package_list_; - /// Engines this one requires: at least one - std::vector required_engines_; - /// Engines this one excludes: none of these - std::vector excluded_engines_; // these are mutable because they are used to cache the results // or an otherwise const operation. /// @@ -167,12 +150,11 @@ public: void addCiteEngine(std::string const &, std::string const &, std::vector const &, std::string const &, std::vector const &, std::string const &, - std::vector const &, std::vector const &, std::vector const &); /// std::vector englist_; }; extern CiteEnginesList theCiteEnginesList; -} +} // namespace lyx #endif