]> git.lyx.org Git - features.git/blobdiff - src/frontends/qt4/QLPainter.h
* support/qstring_helpers.h: erase ucs4_to_qstring() method.
[features.git] / src / frontends / qt4 / QLPainter.h
index a88daec579b613f5c20775b825b19fc60c858b42..3050ea4946fd187e2ab8d2b83e549bfc89509c6f 100644 (file)
@@ -13,7 +13,9 @@
 #ifndef QLPAINTER_H
 #define QLPAINTER_H
 
-#include "Painter.h"
+#include "frontends/Painter.h"
+
+#include "LColor.h"
 
 #include <QPainter>
 
@@ -25,13 +27,14 @@ class LyXFont;
 
 namespace frontend {
 
-class GuiWorkArea;
-
 /**
  * QLPainter - a painter implementation for Qt4
  */
 class QLPainter : public QPainter, public Painter {
 public:
+       QLPainter(QPaintDevice *);
+       virtual ~QLPainter();
+
        /// draw a line from point to point
        virtual void line(
                int x1, int y1,
@@ -89,22 +92,11 @@ public:
        virtual int text(int x, int y,
                lyx::docstring const & str, LyXFont const & f);
 
-       /** Draw a string at position x, y (y is the baseline)
-        *  This is just for fast drawing
-        */
-       virtual int text(int x, int y,
-                lyx::char_type const * str, size_t l,
-               LyXFont const & f);
-
        /// draw a char at position x, y (y is the baseline)
        virtual int text(int x, int y,
                 lyx::char_type c, LyXFont const & f);
 
 private:
-       friend class GuiWorkArea;
-       QLPainter(QWidget *);
-       virtual ~QLPainter();
-
        /// draw small caps text
        /**
        \return width of the drawn text.
@@ -117,9 +109,6 @@ private:
                line_style ls = line_solid,
                line_width lw = line_thin);
 
-       /// the working area
-       QWidget * qwa_;
-
        LColor::color current_color_;
        Painter::line_style current_ls_;
        Painter::line_width current_lw_;