]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiPainter.h
Use <cstdint> instead of <boost/cstdint.hpp>
[lyx.git] / src / frontends / qt4 / GuiPainter.h
index 9657ed9770c401fe17063c8f62581b39567908dd..a4f40be51c7b9e797f6638052a75f1028b80f2ce 100644 (file)
@@ -37,6 +37,9 @@ public:
        GuiPainter(QPaintDevice *, double pixel_ratio);
        virtual ~GuiPainter();
 
+       /// This painter paints
+       virtual bool isNull() const { return false; }
+
        /// draw a line from point to point
        virtual void line(
                int x1, int y1,
@@ -181,9 +184,6 @@ private:
        // Direction for painting text
        enum Direction { LtR, RtL, Auto };
 
-       // Helper for text() method
-       void do_drawText(int x, int y, QString str, Direction dir, FontInfo const & f, QFont ff);
-
        // Real text() method
        void text(int x, int y, docstring const & s,
               FontInfo const & f, Direction const dir,
@@ -193,8 +193,6 @@ private:
        Painter::line_style current_ls_;
        int current_lw_;
        ///
-       bool const use_pixmap_cache_;
-       ///
        std::stack<QColor> monochrome_min_;
        ///
        std::stack<QColor> monochrome_max_;
@@ -202,9 +200,6 @@ private:
        QColor computeColor(Color col);
        /// possibly apply monochrome mode
        QColor filterColor(QColor const & col);
-       ///
-       QString generateStringSignature(QString const & str, FontInfo const & f,
-                                       double wordspacing);
 };
 
 } // namespace frontend