Hi!

As a newbie I'm still trying to figure out how to use
the various iterators. My current hypotheses are:

DocIterator is used to iterate the whole document in a
preorder style.

ParagraphIterator is used to iterate over paragraphs local
to one surrounding inset.

InsetIterator iterates over the whole document but only
gives insets.


My questions are:

1.  How do I iterate over all text and insets on one level,
without going into the insets, and with insets interspersed
into the text in the right order? Eg. for the document
        A: (P: (bla I:() blabla J:(soso K:() aha) blablabla) P: ...)
I want to iterate the first P: inset and want to get:
        bla, I, blabla, J, blablabla


2. Is there something like a PCDATA-inset for plain text?


3. Which iterator would I use to iterate all mathhull-insets for snippet collection? Insetiterator?


4. Are these iterators compatible with STL?



Cheers
/Andreas



Reply via email to