]> git.lyx.org Git - lyx.git/blobdiff - src/tex2lyx/Preamble.h
support for Georgian
[lyx.git] / src / tex2lyx / Preamble.h
index f86c414dfccc9a3cef03a312a8921299aba6763a..ffc9bda03be74575bf9536ee569e5f5a3d2c00a7 100644 (file)
@@ -37,9 +37,11 @@ public:
        ///
        std::string inputencoding() const { return h_inputencoding; }
        ///
+       void setInputencoding(std::string const & e) { h_inputencoding = e; }
+       ///
        std::string notefontcolor() const { return h_notefontcolor; }
        ///
-       std::string refstyle() const { return h_use_refstyle; }
+       bool refstyle() const { return h_use_refstyle; }
        ///
        bool fontCJKSet() const { return h_font_cjk_set; }
        ///
@@ -51,6 +53,8 @@ public:
        /// The language of text which is not explicitly marked
        std::string defaultLanguage() const  { return default_language; }
        ///
+       bool usePolyglossia() const;
+       ///
        std::string use_indices() const { return h_use_indices; }
        ///
        std::string polyglossia2lyx(std::string const & language);
@@ -81,6 +85,9 @@ public:
        void registerAuthor(std::string const & name);
        /// Get author named \p name (must be registered first)
        Author const & getAuthor(std::string const & name) const;
+       /// Get number of arguments of special table column type \c or -1
+       /// if no column type \p c exists
+       int getSpecialTableColumnArguments(char c) const;
 
        /// Parses the LaTeX preamble into internal data
        void parse(Parser & p, std::string const & forceclass,
@@ -105,6 +112,8 @@ private:
        bool one_language;
        /// the main non-CJK language
        std::string default_language;
+       /// Was babel called explicitly?
+       bool explicit_babel;
 
        /// was at least one title layout found?
        bool title_layout_found;
@@ -126,7 +135,7 @@ private:
        std::string h_font_sans;
        std::string h_font_typewriter;
        std::string h_font_default_family;
-       std::string h_use_non_tex_fonts;
+       bool h_use_non_tex_fonts;
        std::string h_font_sc;
        std::string h_font_osf;
        std::string h_font_sf_scale;
@@ -190,7 +199,7 @@ private:
        std::map<std::string, std::string> h_use_packages;
        std::string h_use_default_options;
        std::string h_use_hyperref;
-       std::string h_use_refstyle;
+       bool h_use_refstyle;
 
        /*!
         * Add package \p name with options \p options to used_packages.
@@ -208,7 +217,10 @@ private:
        ///
        void handle_if(Parser & p, bool in_lyx_preamble);
 
+       ///
        AuthorList authors_;
+       /// special table column types
+       std::map<char, int> special_columns_;
 };