]> git.lyx.org Git - lyx.git/blobdiff - src/graphics/GraphicsCacheItem.h
prepare for 1.1.6pre2
[lyx.git] / src / graphics / GraphicsCacheItem.h
index 01843f46ceeb8fd90f4602dd42304d4de3af8fd2..0157d35c97b20698f25bdf50d921466ba266e652 100644 (file)
@@ -37,7 +37,7 @@ using SigC::Signal0;
  */
 
 class GraphicsCacheItem_pimpl;
-
+class LyXImage;
 
 /// A GraphicsCache item holder.
 class GraphicsCacheItem {
@@ -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();