On Wed, Jan 02, 2002 at 05:22:37PM +0100, Andre Poenitz wrote:

> > as we know this leads to lots of screen updates un-necessarily. I wonder
> > if it would be a good idea to have a NullPainter : PainterBase that
> > does just nothing.  This would at least remove the ugliness from the
> > user's point of view (we set the view to use null painter when we don't
> > want updates ...)
>  
> I think we have a general problem of missing separation of functionality
> out there. 'Logical traversal' the document should be possible without
> _any_ redraw/metrics calculation.

of course (Juergen has effectively said as much earlier in this thread ...)

The null painter idea would be for 1.2.0 ...

> > Personally I would like to see a NullPainter being used for calculate row
> > heights too, the duplication inherent in SetHeightOfRow method is really
> > gross.
> 
> Two stage drawing (stage one: creation of metrics caches, stage two: actual
> drawing) does not work too bad...

the problem with the current method is that you have to actually draw some
things (e.g. with rectText) to work out the height. This means duplication in text.C,
there are probably still bugs there ...

regards
john

-- 
"We're standing there pounding a dead parrot on the counter, and the management
response is to frantically swap in new counters to see if that fixes the
problem."
        - Peter Gutmann

Reply via email to