]> git.lyx.org Git - lyx.git/blobdiff - src/LaTeXFeatures.h
Remove unused font variable which caused a warning.
[lyx.git] / src / LaTeXFeatures.h
index 33b51556cf65f3589d62bd37d3607912980adad0..fa1dbc33b76bf936dfd29d3ff568c72544655def 100644 (file)
@@ -5,7 +5,7 @@
 *           LyX, The Document Processor
 *        
 *           Copyright 1995 Matthias Ettrich
-*           Copyright 1995-2000 the LyX Team.
+*           Copyright 1995-2001 the LyX Team.
 *
 * ====================================================== */
 
 #include <set>
 
 #include "LString.h"
+#include "layout.h"
 
 class BufferParams; 
-class LyXTextClass;
 struct Language;
 
 /** The packages and commands that a buffer needs. This struct
-  contains an entry for each of the latex packages and
-  commands that a buffer might need. This struct is supposed to be
-  extended as the need arises. Remember to update the validate function
-  in buffer.C and paragraph.C when you do so. */
+    contains an entry for each of the latex packages and
+    commands that a buffer might need. This struct is supposed to be
+    extended as the need arises. Remember to update the validate function
+    in buffer.C and paragraph.C when you do so.
+*/
 struct LaTeXFeatures {
        ///
-       LaTeXFeatures(BufferParams const &, int n) ;
+       LaTeXFeatures(BufferParams const &, LyXTextClass::size_type n) ;
        /// The packaes needed by the document
-       string getPackages();
+       string const getPackages() const;
        /// The macros definitions needed by the document
-       string getMacros();
+       string const getMacros() const;
        /// The definitions needed by the document's textclass
-       string getTClassPreamble();
+       string const getTClassPreamble() const;
+       ///
+       string const getIncludedFiles(string const & fname) const;
+       ///
+       void getFloatDefinitions(std::ostream & os) const;
 
        ///
-       void showStruct();
+       void showStruct() const;
 
        /// Provide a string name-space to the requirements
        void require(string const & name);
@@ -50,17 +55,14 @@ struct LaTeXFeatures {
        /// Static preamble bits from the external material insets
        string externalPreambles;
 
-       //@Man: Packages
-       //@{
+       ///
+       bool array;
        ///
        bool color;     // color.sty
-#ifdef USE_GRAPHICX
        ///
        bool graphicx; // graphicx.sty
-#else
        ///
        bool graphics;  // graphics.sty
-#endif
        ///
        bool setspace;  // setspace.sty
        ///
@@ -70,7 +72,7 @@ struct LaTeXFeatures {
        ///
        bool longtable; // longtable.sty
        ///
-       bool algorithm; // algorithm.sty
+       //bool algorithm; // algorithm.sty
        ///
        bool rotating;  // rotating.sty
        ///
@@ -91,11 +93,9 @@ struct LaTeXFeatures {
        bool prettyref; // prettyref.sty
        ///
        bool chess;     // chess.sty
-       //@}
+       ///
+       bool natbib;    // natbib.sty
 
-       
-       //@Man: Commands
-       //@{
        ///
        bool lyx;
        ///
@@ -104,10 +104,7 @@ struct LaTeXFeatures {
        bool noun;
        /// \lyxarrow
        bool lyxarrow;
-       //@}
-       
-       //@Man: Quotes
-       //@{
+
        ///
        bool quotesinglbase;
        ///
@@ -120,26 +117,18 @@ struct LaTeXFeatures {
        bool guillemotleft;
        ///
        bool guillemotright;
-       //@}
-       
-       //@Man: Math mode
-       //@{
+
        ///
        bool amsstyle;
        ///
        bool boldsymbol;
        ///
        bool binom;
-       //@}
        
-       //@Man: Layouts
-       //@{
        std::vector<bool> layout;
-       //@}
-       
-       //@Man: Special features
-       //@{
-       bool LyXParagraphIndent;
+
+       ///
+       bool ParagraphIndent;
        ///
        bool NeedLyXFootnoteCode;
        ///
@@ -148,9 +137,18 @@ struct LaTeXFeatures {
        typedef std::set<Language const *> LanguageList;
        ///
        LanguageList UsedLanguages;
-       //@}
+       ///
+       typedef std::set<string> UsedFloats;
+       ///
+       UsedFloats usedFloats;
+       ///
+       typedef std::map<string , string> FileMap;
+       ///
+       FileMap IncludedFiles;
+       ///
        BufferParams const & bufferParams() const;
 private:
+       ///
        BufferParams const & params;
 };