]> git.lyx.org Git - lyx.git/blobdiff - src/LaTeXFeatures.h
next step...
[lyx.git] / src / LaTeXFeatures.h
index 5e6ff72c565b86a48e8ad858d4cbd22b4d16b195..be168ffef28cd6ba5f5ad573ece3e2a07217de10 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.
 *
 * ====================================================== */
 
@@ -21,9 +21,9 @@
 #include <set>
 
 #include "LString.h"
+#include "layout.h"
 
 class BufferParams; 
-class LyXTextClass;
 struct Language;
 
 /** The packages and commands that a buffer needs. This struct
@@ -34,18 +34,22 @@ struct Language;
 */
 struct LaTeXFeatures {
        ///
-       LaTeXFeatures(BufferParams const &, int n) ;
+       LaTeXFeatures(BufferParams const &, LyXTextClass::size_type n) ;
        /// The packaes needed by the document
-       string const getPackages();
+       string const getPackages() const;
        /// The macros definitions needed by the document
-       string const getMacros();
+       string const getMacros() const;
        /// The definitions needed by the document's textclass
-       string const getTClassPreamble();
+       string const getTClassPreamble() const;
+       /// The sgml definitions needed by the document (dobook/linuxdoc)
+       string const getLyXSGMLEntities() const;
        ///
-       string const getIncludedFiles();
+       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);
@@ -70,7 +74,7 @@ struct LaTeXFeatures {
        ///
        bool longtable; // longtable.sty
        ///
-       bool algorithm; // algorithm.sty
+       //bool algorithm; // algorithm.sty
        ///
        bool rotating;  // rotating.sty
        ///
@@ -91,7 +95,11 @@ struct LaTeXFeatures {
        bool prettyref; // prettyref.sty
        ///
        bool chess;     // chess.sty
-
+       ///
+       bool natbib;    // natbib.sty
+       ///
+       bool floats;    // float.sty
+       
        ///
        bool lyx;
        ///
@@ -124,7 +132,7 @@ struct LaTeXFeatures {
        std::vector<bool> layout;
 
        ///
-       bool LyXParagraphIndent;
+       bool ParagraphIndent;
        ///
        bool NeedLyXFootnoteCode;
        ///
@@ -134,9 +142,9 @@ struct LaTeXFeatures {
        ///
        LanguageList UsedLanguages;
        ///
-       typedef std::set<string> FloatList;
+       typedef std::set<string> UsedFloats;
        ///
-       FloatList usedFloats;
+       UsedFloats usedFloats;
        ///
        typedef std::map<string , string> FileMap;
        ///