]> git.lyx.org Git - lyx.git/blobdiff - src/tex2lyx/Preamble.h
Pimpl MathMacro
[lyx.git] / src / tex2lyx / Preamble.h
index 3216c3cc6d697edab7c766bed8a293903af427cb..ffc9bda03be74575bf9536ee569e5f5a3d2c00a7 100644 (file)
@@ -37,6 +37,8 @@ public:
        ///
        std::string inputencoding() const { return h_inputencoding; }
        ///
+       void setInputencoding(std::string const & e) { h_inputencoding = e; }
+       ///
        std::string notefontcolor() const { return h_notefontcolor; }
        ///
        bool refstyle() const { return h_use_refstyle; }
@@ -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,
@@ -128,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;
@@ -210,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_;
 };