]> git.lyx.org Git - lyx.git/blobdiff - src/Font.h
Cleanup the TEXT_TO_INSET_OFFSET mess. This correction is done now once in InsetText...
[lyx.git] / src / Font.h
index 2348d1bdf8ae428fa578763afae5c41d9af779c5..18544f171682ab978831e6d48acd1cbc77eeb34a 100644 (file)
 #ifndef FONT_H
 #define FONT_H
 
+#ifdef TEX2LYX
+#include "tex2lyx/Font.h"
+#else
+
 #include "Color.h"
 #include "support/docstream.h"
 
@@ -25,6 +29,7 @@ namespace lyx {
 class Lexer;
 class BufferParams;
 class Language;
+class OutputParams;
 
 
 ///
@@ -296,15 +301,20 @@ public:
            to this font. Returns number of chars written. Base is the
            font state active now.
        */
-       int latexWriteStartChanges(odocstream &, Font const & base,
-                                  Font const & prev) const;
+       int latexWriteStartChanges(odocstream &, BufferParams const & bparams,
+                                  OutputParams const & runparams,
+                                  Font const & base,
+                                  Font const & prev) const;
 
        /** Writes the tail of the LaTeX needed to change to this font.
            Returns number of chars written. Base is the font state we want
            to achieve.
        */
-       int latexWriteEndChanges(odocstream &, Font const & base,
-                                Font const & next) const;
+       int latexWriteEndChanges(odocstream &, BufferParams const & bparams,
+                                OutputParams const & runparams,
+                                Font const & base,
+                                Font const & next,
+                                bool const & closeLanguage = true) const;
 
 
        /// Build GUI description of font state
@@ -348,6 +358,8 @@ private:
        /// Updates a misc setting according to request
        Font::FONT_MISC_STATE setMisc(Font::FONT_MISC_STATE newfont,
                                         Font::FONT_MISC_STATE org);
+       /// Did latexWriteStartChanges open an encoding environment?
+       mutable bool open_encoding_;
 };
 
 
@@ -414,4 +426,5 @@ bool operator!=(Font const & font1, Font const & font2)
 
 } // namespace lyx
 
+#endif // TEX2LYX
 #endif