Alfredo Braunstein <[EMAIL PROTECTED]> writes:

> 
> Not quite: These two are mere wrappers arount DocIterator, basically
> DocIterator is NOT a forward iterator (it doesn't have operator++, but
> forward{Par,Pos,Inset} methods), and these two are. All three iterate in a
> full subtree of the lyx document tree (i.e. get into insets). 

So ParIterator defines ++  to forwardPar() and InsetIterator defines
++ to forwardInset() ?

> I'd do something like (untested code)
[...]
Ah, that looks good.

> > 2.  Is there something like a PCDATA-inset for plain text?
> 
> How do you eat that? (I mean, what's PCDATA?)

Uncurried! ;-)  It's XML-lingo for the characters between the elements,
ie.   <body>pcdata here<par>morepcdata</par>and here</body>.
Means "parsed character data". When you have an XML tree, most
nodes are either elements or pcdata nodes.

Ciao
/Andreas

Reply via email to