On Friday 14 February 2003 2:55 pm, [EMAIL PROTECTED] wrote:
> On Fri, 14 Feb 2003 [EMAIL PROTECTED] wrote:
> > Anyhow I need to know how to call insets such as footnote and tables
>
> from
>
> > the current bufferview, i.e., I like to have
> >
> > "(current bufferview)->(inset)->x()" or "...->getLyXText(..)->x()", or
> > something like that.
>
> Congratulate me, folks! I've just got how to call insets from the
> current_view! : "current_view->theLockingInset()" . It's that simple!
> Now I'm in business again!!!

Congratulations duly sent. Incidentally, why are you using 'current_view'. 
It's a nasty, ugly hack. Could you not pass a (BufferView *) to the function 
that requires this? That's guaranteed to work in the future also when we have 
more than one BufferView.

Angus

Reply via email to