]> git.lyx.org Git - lyx.git/blobdiff - src/graphics/GraphicsCacheItem.h
Fixed inset-text border redraw problem and hopefully recalc boostup.
[lyx.git] / src / graphics / GraphicsCacheItem.h
index 53dca53c9c2183d9c2cb1559dea77e69cd23c312..0157d35c97b20698f25bdf50d921466ba266e652 100644 (file)
@@ -37,7 +37,7 @@ using SigC::Signal0;
  */
 
 class GraphicsCacheItem_pimpl;
-
+class LyXImage;
 
 /// A GraphicsCache item holder.
 class GraphicsCacheItem {
@@ -47,7 +47,7 @@ public:
        /// copy c-tor.
        GraphicsCacheItem(GraphicsCacheItem const &);
        /// Assignment operator.
-       GraphicsCacheItem const & operator=(GraphicsCacheItem const &);
+       GraphicsCacheItem & operator=(GraphicsCacheItem const &);
        
        /// Get the height of the image. Returns -1 on error.
        int getHeight() const; 
@@ -56,7 +56,7 @@ public:
        int getWidth() const; 
 
        /// Return a pixmap that can be displayed on X server.
-       Pixmap getImage() const; 
+       LyXImage * getImage() const; 
        ///
        enum ImageStatus {
                ///
@@ -66,6 +66,8 @@ public:
                ///
                ErrorReading,
                ///
+               UnknownError,
+               ///
                Loaded
        };
        
@@ -77,6 +79,9 @@ public:
        */
        void imageConverted(int retval);
 
+       /// Create another copy of the object.
+       GraphicsCacheItem * Clone() const;
+       
 private:
        /// Private c-tor so that only GraphicsCache can create an instance.
        GraphicsCacheItem();