On Fri, Jul 12, 2002 at 08:26:39AM +0100, Angus Leeming wrote:

> Why not:
> class grfx::Pixmap {
> };
> 
> class grfx::Image {
> public:
>       grfx::Pixmap & getPixmap();
> };
> 
> where grfx::Pixmap is an abstract base class. Daughter classes would contain 
> the Pixmap proper (X) or QPixmap?

This still requires a static_downcast though, does it not ?

> > Also, is boost::bind() idempotent ? lyx_gui::init_graphics() gets
> > called a lot
> 
> It shouldn't. Once is enough:

I was confused with another method called init_graphics()

Another thing: how hard would it be to try and load an image via the
toolkit converter /before/ doing any conversion stuff, to see if it
succeeds ? Only if it fails would it then need to try converting an
image

regards
john
-- 
"I hope you will find the courage to keep on living 
 despite the existence of this feature."
        - Richard Stallman

Reply via email to