]> git.lyx.org Git - lyx.git/blobdiff - src/LaTeXFeatures.h
move some selection related stuff over to textcursor.C
[lyx.git] / src / LaTeXFeatures.h
index 92279ebfc0963767bb2896f86c5407151c5e11aa..6cf6c8d159f968e9f8245cb13effe3a21391592a 100644 (file)
 #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>
@@ -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)
@@ -73,21 +69,22 @@ 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::set<string> layout;
+       std::list<string> usedLayouts;
 
        /// Static preamble bits from the external material insets