X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FTextPainter.h;h=97b277133eeb01839ba1fda6e33a02cdcf675de3;hb=55a3dd7b346d29a52ba305a4558e9e380ef50f47;hp=d9da7234bcefd1d911ac72a73a8ba0f6c6b44dd7;hpb=e89625ef28143545a511cdabc67dee8b7be1b216;p=lyx.git diff --git a/src/mathed/TextPainter.h b/src/mathed/TextPainter.h index d9da7234bc..97b277133e 100644 --- a/src/mathed/TextPainter.h +++ b/src/mathed/TextPainter.h @@ -4,7 +4,7 @@ * This file is part of LyX, the document processor. * Licence details can be found in the file COPYING. * - * \author André Pönitz + * \author André Pönitz * * Full author contact details are available in file CREDITS. */ @@ -13,33 +13,47 @@ #define TEXTPAINTER_H +#include "support/docstream.h" + #include -#include + + +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(std::ostream & 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 data_type; + typedef std::vector 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_; @@ -49,4 +63,7 @@ class TextPainter { data_type data_; }; + +} // namespace lyx + #endif