]> git.lyx.org Git - lyx.git/blobdiff - src/LaTeXFeatures.h
prepare for 1.1.6pre2
[lyx.git] / src / LaTeXFeatures.h
index 65aa5942a9336b99d75ff816232550dbd302cc21..8c3cd68b9ab81533781025c285766b17bcf7568e 100644 (file)
 
 #include <vector>
 #include <set>
-using std::vector;
-using std::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(int n) ;
+       LaTeXFeatures(BufferParams const &, LyXTextClass::size_type n) ;
        /// The packaes needed by the document
-       string getPackages(BufferParams const & params);
+       string const getPackages();
        /// The macros definitions needed by the document
-       string getMacros(BufferParams const & params);
+       string const getMacros();
        /// The definitions needed by the document's textclass
-       string getTClassPreamble(BufferParams const & params);
+       string const getTClassPreamble();
+       ///
+       string const getIncludedFiles(string const fname) const;
 
        ///
-       void showStruct(BufferParams const & params);
+       void showStruct();
+
+       /// Provide a string name-space to the requirements
+       void require(string const & name);
+
+       /// 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
        ///
@@ -81,11 +85,13 @@ struct LaTeXFeatures {
        bool floatflt;  // floatflt.sty
        ///
        bool url;       // url.sty
-       //@}
+       ///
+       bool varioref;  // varioref.sty
+       ///
+       bool prettyref; // prettyref.sty
+       ///
+       bool chess;     // chess.sty
 
-       
-       //@Man: Commands
-       //@{
        ///
        bool lyx;
        ///
@@ -94,10 +100,7 @@ struct LaTeXFeatures {
        bool noun;
        /// \lyxarrow
        bool lyxarrow;
-       //@}
-       
-       //@Man: Quotes
-       //@{
+
        ///
        bool quotesinglbase;
        ///
@@ -110,35 +113,39 @@ struct LaTeXFeatures {
        bool guillemotleft;
        ///
        bool guillemotright;
-       //@}
-       
-       //@Man: Math mode
-       //@{
+
        ///
        bool amsstyle;
        ///
        bool boldsymbol;
        ///
        bool binom;
-       //@}
-       
-       //@Man: Layouts
-       //@{
-       vector<bool> layout;
-       //@}
        
-       //@Man: Special features
-       //@{
+       std::vector<bool> layout;
+
+       ///
        bool LyXParagraphIndent;
        ///
        bool NeedLyXFootnoteCode;
        ///
        bool NeedLyXMinipageIndent;
        ///
-       typedef set<Language const *> LanguageList;
+       typedef std::set<Language const *> LanguageList;
        ///
        LanguageList UsedLanguages;
-       //@}
+       ///
+       typedef std::set<string> FloatList;
+       ///
+       FloatList usedFloats;
+       ///
+       typedef std::map<string , string> FileMap;
+       ///
+       FileMap IncludedFiles;
+       ///
+       BufferParams const & bufferParams() const;
+private:
+       ///
+       BufferParams const & params;
 };
 
 #endif