mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 02:14:50 +00:00
whitespace
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19584 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
92b707bebc
commit
da48080cc7
@ -26,16 +26,16 @@ namespace lyx {
|
||||
class TexStreamBuffer : public TexStreamBase
|
||||
{
|
||||
public:
|
||||
TexStreamBuffer(TexStreamBase * sbuf, TexRow * texrow);
|
||||
TexStreamBuffer(TexStreamBase * sbuf, TexRow * texrow);
|
||||
int line() const { return line_; }
|
||||
int column() const { return column_; }
|
||||
|
||||
protected:
|
||||
int overflow(int);
|
||||
int sync();
|
||||
int overflow(int);
|
||||
int sync();
|
||||
|
||||
private:
|
||||
TexStreamBase * sbuf_;
|
||||
TexStreamBase * sbuf_;
|
||||
TexRow * texrow_;
|
||||
int column_;
|
||||
int line_;
|
||||
@ -45,8 +45,8 @@ private:
|
||||
TexStreamBuffer::TexStreamBuffer(TexStreamBase *sb, TexRow * texrow)
|
||||
: sbuf_(sb), texrow_(texrow), line_(0)
|
||||
{
|
||||
setp(0, 0);
|
||||
setg(0, 0, 0);
|
||||
setp(0, 0);
|
||||
setg(0, 0, 0);
|
||||
}
|
||||
|
||||
int TexStreamBuffer::overflow(int c)
|
||||
@ -63,8 +63,8 @@ int TexStreamBuffer::overflow(int c)
|
||||
|
||||
int TexStreamBuffer::sync()
|
||||
{
|
||||
sbuf_->pubsync();
|
||||
return 0;
|
||||
sbuf_->pubsync();
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@ -109,7 +109,7 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
std::cout << "line count: " << out.line() << std::endl;
|
||||
|
||||
return 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -1,5 +1,5 @@
|
||||
#ifndef LATEXSTREAM_H
|
||||
#define LATEXSTREAM_H
|
||||
#ifndef TEXSTREAM_H
|
||||
#define TEXSTREAM_H
|
||||
|
||||
#include "support/docstring.h"
|
||||
|
||||
@ -18,8 +18,8 @@ typedef std::basic_streambuf<char_type> TexStreamBase;
|
||||
class TexStream : public std::basic_ostream<char_type>
|
||||
{
|
||||
public:
|
||||
TexStream(TexStreamBase * sbuf, TexRow * texrow);
|
||||
~TexStream();
|
||||
TexStream(TexStreamBase * sbuf, TexRow * texrow);
|
||||
~TexStream();
|
||||
int line() const;
|
||||
|
||||
private:
|
||||
|
Loading…
Reference in New Issue
Block a user