]> git.lyx.org Git - lyx.git/blobdiff - src/LaTeXFeatures.h
Fix working of the spellchecker dialog with ispell when there are no
[lyx.git] / src / LaTeXFeatures.h
index cee55913a121baf94785f6acbfc916483df0c751..7926fa206d62a84e21e305f0f4aaa4dd78754156 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 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);
@@ -52,8 +55,6 @@ struct LaTeXFeatures {
        /// Static preamble bits from the external material insets
        string externalPreambles;
 
-       //@Man: Packages
-       //@{
        ///
        bool array;
        ///
@@ -71,7 +72,7 @@ struct LaTeXFeatures {
        ///
        bool longtable; // longtable.sty
        ///
-       bool algorithm; // algorithm.sty
+       //bool algorithm; // algorithm.sty
        ///
        bool rotating;  // rotating.sty
        ///
@@ -92,11 +93,11 @@ struct LaTeXFeatures {
        bool prettyref; // prettyref.sty
        ///
        bool chess;     // chess.sty
-       //@}
-
+       ///
+       bool natbib;    // natbib.sty
+       ///
+       bool floats;    // float.sty
        
-       //@Man: Commands
-       //@{
        ///
        bool lyx;
        ///
@@ -105,10 +106,7 @@ struct LaTeXFeatures {
        bool noun;
        /// \lyxarrow
        bool lyxarrow;
-       //@}
-       
-       //@Man: Quotes
-       //@{
+
        ///
        bool quotesinglbase;
        ///
@@ -121,26 +119,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;
        ///
@@ -150,16 +140,17 @@ struct LaTeXFeatures {
        ///
        LanguageList UsedLanguages;
        ///
-       typedef std::set<string> FloatList;
+       typedef std::set<string> UsedFloats;
        ///
-       FloatList usedFloats;
+       UsedFloats usedFloats;
        ///
        typedef std::map<string , string> FileMap;
        ///
        FileMap IncludedFiles;
-       //@}
+       ///
        BufferParams const & bufferParams() const;
 private:
+       ///
        BufferParams const & params;
 };