]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/MathStream.h
Fix bug 5802 (http://bugzilla.lyx.org/show_bug.cgi?id=5802)
[lyx.git] / src / mathed / MathStream.h
index e388c93456fd94ab26793c70cbb184c1a1870a82..81449cf76d4dce8e36dfe6cb6c3b8f408c1dff55 100644 (file)
@@ -4,7 +4,7 @@
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
- * \author André Pönitz
+ * \author André Pönitz
  *
  * Full author contact details are available in file CREDITS.
  */
 
 namespace lyx {
 
-class MathData;
+class Encoding;
 class InsetMath;
 class MathAtom;
+class MathData;
 
 //
 // LaTeX/LyX
@@ -32,7 +33,8 @@ class MathAtom;
 class WriteStream {
 public:
        ///
-       WriteStream(odocstream & os, bool fragile, bool latex, bool dryrun);
+       WriteStream(odocstream & os, bool fragile, bool latex, bool dryrun,
+               Encoding const * encoding = 0);
        ///
        explicit WriteStream(odocstream & os);
        ///
@@ -63,6 +65,8 @@ public:
        void textMode(bool textmode);
        /// tell whether we are in text mode or not when producing latex code
        bool textMode() const { return textmode_; }
+       /// LaTeX encoding
+       Encoding const * encoding() const { return encoding_; }
 private:
        ///
        odocstream & os_;
@@ -82,6 +86,8 @@ private:
        bool textmode_;
        ///
        int line_;
+       ///
+       Encoding const * encoding_;
 };
 
 ///