On Tue, Oct 14, 2003 at 02:53:08PM +0200, Alfredo Braunstein wrote:
> > Regarding the ParIterator->LyXText 'translation': I have it in my tree
> > but won't be able to commit for an hour or two.
> > 
> > It's basically copying 'getParagraphs' for insets.
> 
> Nice. Then I can correct the reading/errorlist-handling code to use it (and
> refer to inner paragraphs).

I just committed it.

ParIterator::text() returns a LyXText * for the 'innermost' LyXText
and '0' if it is not in an inset.

bv->text would certainly better in this case, but a ParIterator is
ignorant of the outermost LyXText (and possibly should be...).

Andre'

PS:

I still think we need a 'heavy' 'ParList' class containing
'its' LyXText cache instead of having a 'LyXText containing a
reference to some paragraph list.

Didn't you have a patch to simplify/remove TextCache?
What happened to it?

Reply via email to