]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/TextPainter.h
This commit fixes a crash when accessing a math inset. This was due to an invalid...
[lyx.git] / src / mathed / TextPainter.h
index d9da7234bcefd1d911ac72a73a8ba0f6c6b44dd7..261500d55007137181dacdf0cce3c7fb65ef156d 100644 (file)
 #define TEXTPAINTER_H
 
 
+#include "support/docstream.h"
+
 #include <vector>
-#include <iosfwd>
+
+// 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:
@@ -25,7 +36,7 @@ class TextPainter {
                ///
                void draw(int x, int y, char c);
                ///
-               void show(std::ostream & os, int offset = 0) const;
+               void show(lyx::odocstream & os, int offset = 0) const;
                ///
                int textheight() const { return ymax_; }
                ///