]> git.lyx.org Git - lyx.git/blobdiff - src/LaTeXFeatures.h
more code in the menu backend == less code in the menu frontends; add support for...
[lyx.git] / src / LaTeXFeatures.h
index f70d8286ea0919c2622f37e5a799db17d8cf7ff9..7fa311a3e24a09dae53dca3ab387953655a23f52 100644 (file)
@@ -1,9 +1,9 @@
 // -*- C++ -*-
 /* This file is part of
-* ====================================================== 
-* 
+* ======================================================
+*
 *           LyX, The Document Processor
-*        
+*
 *           Copyright 1995 Matthias Ettrich
 *           Copyright 1995-2001 the LyX Team.
 *
 #ifndef LATEXFEATURES_H
 #define LATEXFEATURES_H
 
-
-#ifdef __GNUG__
-#pragma interface
-#endif
-
 #include "support/types.h"
 
 #include "LString.h"
 
-#include <vector>
 #include <set>
 #include <list>
 #include <map>
 
-class BufferParams; 
+class BufferParams;
 struct Language;
 
 /** The packages and commands that a buffer needs. This class
@@ -35,11 +29,11 @@ struct Language;
 
     i.e require("amssymb")
 
-    To add support you should only need to require() the package name as 
+    To add support you should only need to require() the package name as
     packages which don't have special requirements are handled automatically.
     If your new package does need special consideration you'll need to alter
     string const getPackages() const;
-    Remember to update the validate function in buffer.C and paragraph.C 
+    Remember to update the validate function in buffer.C and paragraph.C
     when you do so.
 */
 class LaTeXFeatures {
@@ -50,6 +44,8 @@ public:
        string const getPackages() const;
        /// The macros definitions needed by the document
        string const getMacros() const;
+       ///
+       string const getBabelOptions() const;
        /// The definitions needed by the document's textclass
        string const getTClassPreamble() const;
        /// The sgml definitions needed by the document (dobook/linuxdoc)
@@ -62,7 +58,7 @@ public:
        void getFloatDefinitions(std::ostream & os) const;
        /// Print requirements to lyxerr
        void showStruct() const;
-       /// 
+       ///
        void addExternalPreamble(string const &);
        /// Provide a string name-space to the requirements
        void require(string const & name);
@@ -87,7 +83,7 @@ public:
 private:
        string externalPreambles;
 
-       std::set<string> layout;
+       std::list<string> usedLayouts;
 
        /// Static preamble bits from the external material insets