*/
class GraphicsCacheItem_pimpl;
-
+class LyXImage;
/// A GraphicsCache item holder.
class GraphicsCacheItem {
/// 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;
int getWidth() const;
/// Return a pixmap that can be displayed on X server.
- Pixmap getImage() const;
+ LyXImage * getImage() const;
///
enum ImageStatus {
///
///
ErrorReading,
///
+ UnknownError,
+ ///
Loaded
};
*/
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();