]> git.lyx.org Git - lyx.git/blobdiff - src/graphics/GraphicsCacheItem_pimpl.h
Fixed inset-text border redraw problem and hopefully recalc boostup.
[lyx.git] / src / graphics / GraphicsCacheItem_pimpl.h
index 80b6a18966b16ef80aeab4d602bdbdf990d3e169..b32fc47dc7af714ac944e9c7114209806a46f4e7 100644 (file)
 using SigC::Signal0;
 #endif
 
-/* (Baruch Even 2000-08-05)
- * This has a major drawback: it is only designed for X servers, no easy
- * porting to non X-server based platform is offered right now, this is done
- * in order to get a first version out of the door.
- *
- * Later versions should consider how to do this with more platform 
- * independence, this will probably involve changing the Painter class too.
- */
+class LyXImage;
 
 /// A GraphicsCache item holder.
 class GraphicsCacheItem_pimpl {
@@ -52,20 +45,20 @@ public:
        int getWidth() const;
 
        /// Return a pixmap that can be displayed on X server.
-       Pixmap getImage() const; 
+       LyXImage * getImage() const; 
 
        typedef GraphicsCacheItem::ImageStatus ImageStatus;
        
        /// Is the pixmap ready for display?
        ImageStatus getImageStatus() const; 
 
-       /// Get a notification when the image conversion is done.
-       /// used by an internal callback mechanism.
+       /** Get a notification when the image conversion is done.
+           used by an internal callback mechanism. */
        void imageConverted(int retval);
 
 private:
-    /// Private c-tor so that only GraphicsCache can create an instance.
-    GraphicsCacheItem_pimpl();
+       /// Private c-tor so that only GraphicsCache can create an instance.
+       GraphicsCacheItem_pimpl();
 
        /// Set the filename this item will be pointing too.
        bool setFilename(string const & filename);
@@ -76,8 +69,8 @@ private:
        /// Load the image from XPM to memory Pixmap
        void loadXPMImage();
        
-    ///
-    friend class GraphicsCacheItem;
+       ///
+       friend class GraphicsCacheItem;
 
        /// The file name of the XPM file.
        string xpmfile;
@@ -88,7 +81,7 @@ private:
        /// Is the pixmap loaded?
        ImageStatus imageStatus_;
        /// The image pixmap
-       Pixmap pixmap_;
+       LyXImage * pixmap_;
        /// The rendering object.
        Renderer * renderer;