On Sun, Mar 23, 2003 at 07:07:32PM +0000, John Levon wrote: > Not sure I have the energy for this, I still don't have a solid plan for > what to do here. But at least the following is needed : > > o remove getMaxWidth() and encode the logic in the pass-down metrics() > calls. Followon removal of latexTextWidth() et al. This means altering > the textwidth parameter as necessary. > > o rename metrics() to redoMetrics() or something
[That's not _needed_ ;-}] > o fix tabular metrics, totally non-working currently. > > o decide what to do about the metrics() call in rowpainter.C: it's > clearly wrong, and is very much the wrong place. Instead, metrics() > should be done by : > > o introduce a LyXText::redoMetrics(). This get called from insettext or > whatever and reset width/height et al. It will need to iterate across > its insets call metrics. I suspect this will replace the > need_break_row/rebreakRow(). > > o figure out exactly where the very top-level metrics() calls need to > be. This is the bit that I'm most confused about ... What about on top of screen::drawFromTo? This would mean we'd have to split the RowPainter business as well, but I guess this has to be done anyway. > o rework LyXText::updateInset / BV::updateInset() et al. Lord knows ... I guess they simply can go in the end. Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson)