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 {
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);
/// 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;
/// Is the pixmap loaded?
ImageStatus imageStatus_;
/// The image pixmap
- Pixmap pixmap_;
+ LyXImage * pixmap_;
/// The rendering object.
Renderer * renderer;