]> git.lyx.org Git - lyx.git/blobdiff - src/PainterBase.h
Fix crash when running lyx -dbg insets -e ...
[lyx.git] / src / PainterBase.h
index 47fa8c89939a805e7571d2f92711f9c776fe4a1b..df650cd78bae1b6cd68fbbc632f5407a65d1cf10 100644 (file)
@@ -4,7 +4,7 @@
  * 
  *           LyX, The Document Processor
  *      
- *         Copyright 1998-2000 The LyX Team
+ *         Copyright 1998-2001 The LyX Team
  *
  *======================================================*/
 
@@ -20,6 +20,7 @@
 
 class WorkArea;
 class LyXFont;
+class LyXImage;
 
 /** A painter class to encapsulate all graphics parameters and operations
    
@@ -93,7 +94,7 @@ public:
        virtual PainterBase & fillPolygon(
                int const * xp, int const * yp,
                int np,
-               LColor::color =LColor::foreground) = 0;
+               LColor::color = LColor::foreground) = 0;
 
        /// Draw lines from x1,y1 to x2,y2. They are arrays
         virtual PainterBase & segments(
@@ -146,9 +147,7 @@ public:
        
        
        // For the figure inset
-       // This can't be part of the base since we don't know what window
-       // system we will be useing, or if are going to use pixmaps at all.
-       //virtual PainterBase & pixmap(int x, int y, Pixmap bitmap)=0;
+       virtual PainterBase & image(int x, int y, int w, int h, LyXImage const * image) = 0;
 
        
        /// Draw a string at position x, y (y is the baseline)