]> git.lyx.org Git - features.git/blobdiff - src/TexStream.h
shuffle (la)texstream around a bit
[features.git] / src / TexStream.h
index bdd32fc8771041a7e5f463e92cfc9962bc38d375..9ae20222a6c08dbe00684c17ffc205efcdb73ad3 100644 (file)
@@ -1,21 +1,29 @@
 #ifndef LATEXSTREAM_H
 #define LATEXSTREAM_H
 
+#include "support/docstring.h"
+
+#include "TexRow.h"
+
 #include <iostream>
 #include <streambuf>
 
 namespace lyx {
 
-class LaTeXStreamBuffer;
+class TexStreamBuffer;
+class TexRow;
 
-class LaTeXStream : public std::ostream
+typedef std::basic_streambuf<char_type> TexStreamBase;
+
+class TexStream : public std::basic_ostream<char_type>
 {
 public:
-  LaTeXStream(std::streambuf * sbuf);
-  ~LaTeXStream();
+  TexStream(TexStreamBase * sbuf, TexRow * texrow);
+  ~TexStream();
        int line() const;
+
 private:
-       LaTeXStreamBuffer * sbuf_;
+       TexStreamBuffer * sbuf_;
 };
 
 } // namespace lyx