]> git.lyx.org Git - lyx.git/blobdiff - src/Font.h
Fulfill promise to Andre: TextClass_ptr --> TextClassPtr.
[lyx.git] / src / Font.h
index 5cde02900dd05cbb51e405e91b762ea8e02b37df..18544f171682ab978831e6d48acd1cbc77eeb34a 100644 (file)
 #ifndef FONT_H
 #define FONT_H
 
+#ifdef TEX2LYX
+#include "tex2lyx/Font.h"
+#else
+
 #include "Color.h"
 #include "support/docstream.h"
 
@@ -298,18 +302,19 @@ public:
            font state active now.
        */
        int latexWriteStartChanges(odocstream &, BufferParams const & bparams,
-                                  OutputParams const & runparams,
-                                  Font const & base,
-                                  Font const & prev) const;
+                                  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 &, BufferParams const & bparams,
-                                OutputParams const & runparams,
-                                Font const & base,
-                                Font const & next) const;
+                                OutputParams const & runparams,
+                                Font const & base,
+                                Font const & next,
+                                bool const & closeLanguage = true) const;
 
 
        /// Build GUI description of font state
@@ -421,4 +426,5 @@ bool operator!=(Font const & font1, Font const & font2)
 
 } // namespace lyx
 
+#endif // TEX2LYX
 #endif