On Wed, Sep 17, 2003 at 07:55:48PM +0200, Lars Gullik Bjønnes wrote:
> [EMAIL PROTECTED] (Lars Gullik Bjønnes) writes:
> 
> | Andre Poenitz <[EMAIL PROTECTED]> writes:
> >
> | | On Wed, Sep 17, 2003 at 07:38:14PM +0200, Andre' Poenitz wrote:
> >>> On Wed, Sep 17, 2003 at 07:32:52PM +0200, Lars Gullik Bjønnes wrote:
> >>> > Andre Poenitz <[EMAIL PROTECTED]> writes:
> >>> > 
> >>> > | What's the prefered way to go from a ParagraphList & to "its" LyXText *?
> >>> > 
> >>> > To have a the BufferView
> >>> 
> >>> I have that. 
> >>
> | | I.e. I need the 'inverse' of
> >>
> | |   LyXText::ownerParagraphs().
> >>
> | | I have a bv, and if really necessary a ParIterator pointing to a place
> | | in the ParagraphList.
> >
> | bv->buffer().paragraphs?
> >
> | Or I do not understand what you want.
> >
> | Ahh... no I understand... why do you need that? Should you ever need
> | it?
> >
> | Actually you can (could?) know it through the cursor.
> 
> the lockinginset perhaps?

This gives access to the innermost inset at best.

Ok: The current scheme as I understand is:


BufferView       tli.
 MainLyXText          \
  ParagraphList         \
   Inset1                 tli.        
     LyxText                   \
      ParagraphList               \
       Inset2                       \      tli?
        LyXText                       \     
         ParagraphList                  \      
          InsetTabular [!]                \       tli?
           InsetText   [!]                  \         tli(?)
            LyXText                           \       /
             ParagraphList                      \   /
              Inset3                             tli. [pointing to itself]
                LyXText
                 ParagraphList

A ParIterator gives me a stack of the ParagraphLists involved.

I want a stack of the LyXTexts. Going from the LyXText to the
ParagraphList 'below' is easy by using 'ownerParagraphs'.
I need the other direction...

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