]> git.lyx.org Git - lyx.git/blobdiff - src/LaTeXFeatures.h
Move #includes out of header files.
[lyx.git] / src / LaTeXFeatures.h
index ad9483e37723e8d236b762621e5e2db386fc4f60..0f05c6f178ec7a346b2fc7694a42da7c2c0031c3 100644 (file)
@@ -1,27 +1,22 @@
 // -*- C++ -*-
-/* This file is part of
-* ======================================================
-*
-*           LyX, The Document Processor
-*
-*           Copyright 1995 Matthias Ettrich
-*           Copyright 1995-2001 the LyX Team.
-*
-* ====================================================== */
+/**
+ * \file LaTeXFeatures.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author Lars Gullik Bjønnes
+ * \author Jean-Marc Lasgouttes
+ *
+ * Full author contact details are available in file CREDITS.
+ */
 
 #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>
@@ -75,29 +70,28 @@ public:
        ///
        void useLanguage(Language const *);
        ///
-       bool hasLanguages();
+       bool hasLanguages() const;
        ///
        string getLanguages() const;
        ///
-       std::set<string> getEncodingSet(string const & doc_encoding);
+       std::set<string> getEncodingSet(string const & doc_encoding) const;
        ///
        void useLayout(string const & lyt);
        ///
        BufferParams const & bufferParams() const;
-       ///
+       /// the return value is dependent upon both LyXRC and LaTeXFeatures.
+       bool useBabel() const;
 
 private:
-       string externalPreambles;
-
-       std::vector<string> usedLayouts;
+       std::list<string> usedLayouts;
 
        /// Static preamble bits from the external material insets
-
-
        typedef std::list<string> FeaturesList;
        ///
        FeaturesList features;
        ///
+       FeaturesList preamble_snippets;
+       ///
        typedef std::set<Language const *> LanguageList;
        ///
        LanguageList UsedLanguages;