On 11-Jul-2000 Baruch Even wrote:
>
> But the question remains unanswered, How do I get this bview pointer out
> of the blue? Should I save the BufferView* I get from last time and use
> that? It seems ugly to me, is there no other way to get this pointer?
> 

I recently added the new TabularInset-Layout to the cvs (yesterday) you
can have a look at that, but you can access the BufferView from the LyXView
(lv_) in the dialog!

What the REAL problem is, is that when the inset-destructor is called the
buffer already deleted the BufferView so you have no more acces to the
LyXView and with that to the getDialogs() call. So probably we have to store
that pointer (returned by getDialogs()) in the inset and the use it in
the destructor directly for removing an possibly existing dialog with this
inset. This should be quite save as we have only 1 LyXView and only one
dialogs_ pointer which is allocated at the beginning and freed only at a
"Quit"-exit from lyx!

I'll have a look at that for the tabular-layout-tabbed-dialog :)

      Jürgen


--
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._

Dr. Jürgen Vigna        E-Mail:  [EMAIL PROTECTED]
Italienallee 13/N       Tel/Fax: +39-0471-450260 / +39-0471-450296
I-39100 Bozen           Web:     http://www.sad.it/~jug

-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._

standards, n.:
        The principles we use to reject other people's code.

Reply via email to