4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS.
16 #include "support/docstream.h"
20 // FIXME: Abdel 16/10/2006
21 // This TextPainter class is never used, this is dead code.
22 /* Georg explanation of current situation:
23 AFAIK the text painter was used to export math formulas as ASCII art.
24 The text painter is like a real painter, but operating on a very coarse
25 grid of character cells where each cell can be filled with an ASCII character.
26 I don't know why it is currently disabled. I do know that we have a bugzilla
27 request for reenabling it.
33 TextPainter(int xmax, int ymax);
35 void draw(int x, int y, char const * str);
37 void draw(int x, int y, char c);
39 void show(lyx::odocstream & os, int offset = 0) const;
41 int textheight() const { return ymax_; }
43 void horizontalLine(int x, int y, int len, char c = '-');
45 void verticalLine(int x, int y, int len, char c = '|');
49 typedef std::vector<char> data_type;
51 char at(int x, int y) const;
53 char & at(int x, int y);
55 /// xsize of the painter area
57 /// ysize of the painter area