]> git.lyx.org Git - lyx.git/blobdiff - src/LaTeXFeatures.h
GTK graphics dialog: Default to scaling 100% when no scaling or size is given
[lyx.git] / src / LaTeXFeatures.h
index 1a10e7f662f6164b3f147ceabd92e023fcf7a8a5..0b4d6cd0ec60145878e52d1ff046032d3473d7fa 100644 (file)
@@ -21,7 +21,7 @@
 
 class Buffer;
 class BufferParams;
-struct Language;
+class Language;
 
 /** The packages and commands that a buffer needs. This class
  *  contains a list<string>.  Each of the LaTeX packages that a buffer needs
@@ -62,8 +62,12 @@ public:
        void addExternalPreamble(std::string const &);
        /// Provide a string name-space to the requirements
        void require(std::string const & name);
+       /// Which of the required packages are installed?
+       static void getAvailable();
        /// Is the package required?
        bool isRequired(std::string const & name) const;
+       /// Is the (required) package available?
+       bool isAvailable(std::string const & name) const;
        ///
        void useFloat(std::string const & name);
        ///
@@ -96,6 +100,10 @@ private:
        FeaturesList features_;
        ///
        FeaturesList preamble_snippets_;
+       /// The available (required) packages
+       typedef std::list<std::string> PackagesList;
+       ///
+       static PackagesList packages_;
        ///
        typedef std::set<Language const *> LanguageList;
        ///