]> git.lyx.org Git - lyx.git/blobdiff - src/LaTeXFeatures.h
Do not overwrite read-only files. We now move the file to the backup directory and...
[lyx.git] / src / LaTeXFeatures.h
index dfad380279c5577a8bf0e88433a044893819f1ab..999c1fb460ff50544178f86453efc462f88868f8 100644 (file)
@@ -52,8 +52,12 @@ public:
        std::string const getPackages() const;
        /// The macros definitions needed by the document
        docstring const getMacros() const;
-       ///
+       /// Extra preamble code before babel is called
+       std::string const getBabelPresettings() const;
+       /// Extra preamble code after babel is called
        std::string const getBabelPostsettings() const;
+       /// Do we need to pass the languages to babel directly? 
+       bool needBabelLangOptions() const;
        /// The definitions needed by the document's textclass
        docstring const getTClassPreamble() const;
        /// The language dependent definitions needed by the document's textclass
@@ -97,9 +101,13 @@ public:
        void useLanguage(Language const *);
        ///
        bool hasLanguages() const;
+       /// check if all used languages are supported by polyglossia
+       bool hasPolyglossiaLanguages() const;
        ///
        std::string getLanguages() const;
        ///
+       std::map<std::string, std::string> getPolyglossiaLanguages() const;
+       ///
        std::set<std::string> getEncodingSet(std::string const & doc_encoding) const;
        ///
        void useLayout(docstring const & lyt);
@@ -113,6 +121,8 @@ public:
        BufferParams const & bufferParams() const;
        /// the return value is dependent upon both LyXRC and LaTeXFeatures.
        bool useBabel() const;
+       ///
+       bool usePolyglossia() const;
        /// are we in a float?
        bool inFloat() const { return in_float_; }
        /// are we in a float?