#include <vector>
+
+namespace lyx {
+
+// FIXME: Abdel 16/10/2006
+// This TextPainter class is never used, this is dead code.
+/* Georg explanation of current situation:
+AFAIK the text painter was used to export math formulas as ASCII art.
+The text painter is like a real painter, but operating on a very coarse
+grid of character cells where each cell can be filled with an ASCII character.
+I don't know why it is currently disabled. I do know that we have a bugzilla
+request for reenabling it.
+*/
+
class TextPainter {
public:
///
TextPainter(int xmax, int ymax);
///
- void draw(int x, int y, char const * str);
+ void draw(int x, int y, char_type const * str);
///
- void draw(int x, int y, char c);
+ void draw(int x, int y, char_type c);
///
- void show(lyx::odocstream & os, int offset = 0) const;
+ void show(odocstream & os, int offset = 0) const;
///
int textheight() const { return ymax_; }
///
- void horizontalLine(int x, int y, int len, char c = '-');
+ void horizontalLine(int x, int y, int len, char_type c = '-');
///
- void verticalLine(int x, int y, int len, char c = '|');
+ void verticalLine(int x, int y, int len, char_type c = '|');
private:
///
- typedef std::vector<char> data_type;
+ typedef std::vector<char_type> data_type;
///
- char at(int x, int y) const;
+ char_type at(int x, int y) const;
///
- char & at(int x, int y);
+ char_type & at(int x, int y);
/// xsize of the painter area
int xmax_;
data_type data_;
};
+
+} // namespace lyx
+
#endif