]> git.lyx.org Git - lyx.git/blobdiff - src/Painter.h
Fix deleting of paragraphs after undo (fix #236).
[lyx.git] / src / Painter.h
index 8d39c2ba02c72e75d74464b0fe9ac95fc41cb6bd..6f338498150addf2c800460f9775040983411e4e 100644 (file)
@@ -26,7 +26,6 @@ class LyXFont;
 class WorkArea;
 
 /** An inplementation for the X Window System. Xlib.
-    
     Classes similar to this one can be made for gtk+, Qt, etc.
 */
 class Painter : public PainterBase {
@@ -76,10 +75,8 @@ public:
                                    LColor::color);
        
        /// For the graphics inset.
-       PainterBase & image(int x, int y, int w, int h, LyXImage const * image);
-       
-       /// For the figinset
-       PainterBase & pixmap(int x, int y, int w, int h, Pixmap bitmap);
+       PainterBase & image(int x, int y, int w, int h,
+                           grfx::GImage const & image);
        
        /// Draw a string at position x, y (y is the baseline)
        PainterBase & text(int x, int y,
@@ -92,16 +89,13 @@ public:
        
        /// Draw a char at position x, y (y is the baseline)
        PainterBase & text(int x, int y, char c, LyXFont const & f);
-
+       
        /// Draw a wide string at position x, y
        PainterBase & text(int x, int y, XChar2b const * str, int l,
-                  LyXFont const & f);  
+                          LyXFont const & f);  
 private:
        /// Check the font, and if set, draw an underline
        void underline(LyXFont const & f, int x, int y, int width);
-       
-       ///
-       Display * display;
 };
 
 #endif