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"
23 // FIXME: Abdel 16/10/2006
24 // This TextPainter class is never used, this is dead code.
25 /* Georg explanation of current situation:
26 AFAIK the text painter was used to export math formulas as ASCII art.
27 The text painter is like a real painter, but operating on a very coarse
28 grid of character cells where each cell can be filled with an ASCII character.
29 I don't know why it is currently disabled. I do know that we have a bugzilla
30 request for reenabling it.
36 TextPainter(int xmax
, int ymax
);
38 void draw(int x
, int y
, char_type
const * str
);
40 void draw(int x
, int y
, char_type c
);
42 void show(odocstream
& os
, int offset
= 0) const;
44 int textheight() const { return ymax_
; }
46 void horizontalLine(int x
, int y
, int len
, char_type c
= '-');
48 void verticalLine(int x
, int y
, int len
, char_type c
= '|');
52 typedef std::vector
<char_type
> data_type
;
54 char_type
at(int x
, int y
) const;
56 char_type
& at(int x
, int y
);
58 /// xsize of the painter area
60 /// ysize of the painter area