2007-08-15 06:53:25 +00:00
|
|
|
#ifndef TEXSTREAM_H
|
|
|
|
#define TEXSTREAM_H
|
2007-08-12 10:50:49 +00:00
|
|
|
|
2007-08-12 14:54:54 +00:00
|
|
|
#include "support/docstring.h"
|
|
|
|
|
|
|
|
#include "TexRow.h"
|
|
|
|
|
2007-08-12 10:50:49 +00:00
|
|
|
#include <iostream>
|
|
|
|
#include <streambuf>
|
|
|
|
|
|
|
|
namespace lyx {
|
|
|
|
|
2007-08-12 14:54:54 +00:00
|
|
|
class TexStreamBuffer;
|
|
|
|
class TexRow;
|
2007-08-12 10:50:49 +00:00
|
|
|
|
2007-08-12 14:54:54 +00:00
|
|
|
typedef std::basic_streambuf<char_type> TexStreamBase;
|
|
|
|
|
|
|
|
class TexStream : public std::basic_ostream<char_type>
|
2007-08-12 10:50:49 +00:00
|
|
|
{
|
|
|
|
public:
|
2007-08-15 06:53:25 +00:00
|
|
|
TexStream(TexStreamBase * sbuf, TexRow * texrow);
|
|
|
|
~TexStream();
|
2007-08-12 10:50:49 +00:00
|
|
|
int line() const;
|
2007-08-12 14:54:54 +00:00
|
|
|
|
2007-08-12 10:50:49 +00:00
|
|
|
private:
|
2007-08-12 14:54:54 +00:00
|
|
|
TexStreamBuffer * sbuf_;
|
2007-08-12 10:50:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace lyx
|
|
|
|
|
|
|
|
#endif
|