On Wed, Jun 04, 2003 at 05:23:06PM +0200, Lars Gullik Bj�nnes wrote:
> | Wouldn't it be much simpler if each Paragraph contained only its own part
> | of the RowList (sort of 'drawing cache') and is completely ignorant of the
> | others? Paragraphs should contain an integer number of full rows, shouldn't
> | they?
> 
> Apart from rebreaking and more than one lyxview issues, yes.

"More than one lyxview" would need some generic solution as e.g. mathed
can't cope with that anyway (and I doubt graphics will - or anything
caching a bv_ privately for that matter). That's solidly a few years in
the future, if at all...

[A generic solution would be e.g. to place the metrics 'caches' not in
the Insets/Rows, but in the 'MetricsBase' object that's passed around in
both phases (once hidden in a MetricsInfo and once in a PainterInfo).
So that's doable if really needed...]

I don't understand the rebreaking point. Do you mean breaking a par into
two or some re-calculation of which part of a par belongs to which row?
If the latter, I think the solution is consequent two-phase drawing with
a full rebreak of all visible paragraphs in the metrics phase.

Andre'

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

Reply via email to