X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Ftextpainter.C;h=224cca9cec5ab3cb4d80f03a524dfa1de2a52f6c;hb=57501b93064a6deed43e415beed45606054d86ad;hp=5f464b57548ca34a7ffebd0d4310af63d6b59943;hpb=a37064c0ac3b1e67b04a9480852f5c9e701fb4d9;p=lyx.git diff --git a/src/mathed/textpainter.C b/src/mathed/textpainter.C index 5f464b5754..224cca9cec 100644 --- a/src/mathed/textpainter.C +++ b/src/mathed/textpainter.C @@ -1,10 +1,17 @@ - -#ifdef __GNUG__ -#pragma implementation -#endif +/** + * \file textpainter.C + * This file is part of LyX, the document processor. + * Licence details can be found in the file COPYING. + * + * \author André Pönitz + * + * Full author contact details are available in file CREDITS. + */ + +#include #include "textpainter.h" -#include "support/LOstream.h" +#include "support/std_ostream.h" TextPainter::TextPainter(int xmax, int ymax) @@ -26,7 +33,7 @@ char TextPainter::at(int x, int y) const void TextPainter::draw(int x, int y, char const * str) { - //cerr << "drawing string '" << str << "' at " << x << "," << y << "\n"; + //cerr << "drawing string '" << str << "' at " << x << ',' << y << endl; for (int i = 0; *str && x + i < xmax_; ++i, ++str) at(x + i, y) = *str; //show(); @@ -49,7 +56,7 @@ void TextPainter::verticalLine(int x, int y, int n, char c) void TextPainter::draw(int x, int y, char c) { - //cerr << "drawing char '" << c << "' at " << x << "," << y << "\n"; + //cerr << "drawing char '" << c << "' at " << x << ',' << y << endl; at(x, y) = c; //show(); } @@ -60,7 +67,7 @@ void TextPainter::show(std::ostream & os, int offset) const os << '\n'; for (int j = 0; j <= ymax_; ++j) { for (int i = 0; i < offset; ++i) - os << ' '; + os << ' '; for (int i = 0; i < xmax_; ++i) os << at(i, j); os << '\n';