On Tue, Feb 18, 2003 at 05:09:51PM +0000, Angus Leeming wrote:
> Updated with each call to draw(). But only for those few insets 
> (graphics/math) taht explicitly perform the caching. Perhaps we need:
> 
> class InsetBase {
>       void cache_and_draw(BufferView *, const LyXFont &, int , 
>                                       float &, bool) const {
>               cache(bv->owner()->view());
>               draw(bv, font, ...);
>       }
>       virtual void draw(BufferView *, const LyXFont &, int , float &, bool) const;
> };

Ah... you mean, we could have just a

   BufferView * InsetBase::view() const { return 0; }

and the cache only in those insets that need it?

Andre'

-- 
Those who desire to give up Freedom in order to gain Security,
will not have, nor do they deserve, either one. (T. Jefferson)

Reply via email to