Andre Poenitz wrote:

> 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'

Nice idea actually.

-- 
Angus

Reply via email to