Re: Inserting in ERT

2001-12-05 Thread Juergen Vigna
On 05-Dec-2001 John Levon wrote: > if you say so. I don't know how this would happen if I press control-v when I am > editing inside an insettext inside an insetert though ! Well you could follow it with your debugger but just for you the solution is: LyXFunc's dispatch function calls the Inse

Re: Inserting in ERT

2001-12-05 Thread John Levon
On Wed, Dec 05, 2001 at 04:00:31PM +0100, Juergen Vigna wrote: > > You can guarantee that bv_->theLockingInset is an insetERT at all of these points ? > > Not the insettext ? > > No I can't it can also be a InsetTabular, InsetFootnote, ..., but obviously > it can also be a InsetERT. I don't thin

Re: Inserting in ERT

2001-12-05 Thread Juergen Vigna
On 05-Dec-2001 John Levon wrote: > You can guarantee that bv_->theLockingInset is an insetERT at all of these points ? > Not the insettext ? No I can't it can also be a InsetTabular, InsetFootnote, ..., but obviously it can also be a InsetERT. I don't think it can be a InsetText at all! > cool

Re: Inserting in ERT

2001-12-05 Thread John Levon
On Wed, Dec 05, 2001 at 03:33:55PM +0100, Juergen Vigna wrote: > > On 05-Dec-2001 John Levon wrote: > > > read your own source ! Not only does that already exist, you need to show me > > how that would work given the existing calls to insetAllowed(). Here they are : > > > > BufferView::Pimpl::

Re: Inserting in ERT

2001-12-05 Thread Juergen Vigna
On 05-Dec-2001 John Levon wrote: > read your own source ! Not only does that already exist, you need to show me > how that would work given the existing calls to insetAllowed(). Here they are : > > BufferView::Pimpl::insertInset() > > - uses bv_->theLockingInset() - broken > > lyxfunc.C

Re: Inserting in ERT

2001-12-05 Thread John Levon
On Wed, Dec 05, 2001 at 03:07:19PM +0100, Juergen Vigna wrote: > > nope, the problem is insettext::insetAllowed() doesn't ask its owner, when it >should > > do. > > > > But it can't because insetcollapsable passes the buck back down. > > Maybe > > bool InsetERT::insetAllowed() > { > r

Re: Inserting in ERT

2001-12-05 Thread Juergen Vigna
On 05-Dec-2001 John Levon wrote: > nope, the problem is insettext::insetAllowed() doesn't ask its owner, when it should > do. > > But it can't because insetcollapsable passes the buck back down. Maybe bool InsetERT::insetAllowed() { return false; } Would that work (well I'm pretty su

Re: Inserting in ERT

2001-12-05 Thread John Levon
On Wed, Dec 05, 2001 at 11:58:26AM +0100, Juergen Vigna wrote: > > I can insert a footnote with copy/paste into an insetERT. > > > > Looking, I see insettext::insetAllowed() basically always returns yes. > > > > What's going on ? > > Maybe a missing function in InsetERT? could that be ;) nope

RE: Inserting in ERT

2001-12-05 Thread Juergen Vigna
On 05-Dec-2001 John Levon wrote: > > I can insert a footnote with copy/paste into an insetERT. > > Looking, I see insettext::insetAllowed() basically always returns yes. > > What's going on ? Maybe a missing function in InsetERT? could that be ;) Jug -- -._-._-._-._-._-._-._-._-._-

Inserting in ERT

2001-12-04 Thread John Levon
I can insert a footnote with copy/paste into an insetERT. Looking, I see insettext::insetAllowed() basically always returns yes. What's going on ? john -- "Faced with the prospect of rereading this book, I would rather have my brains ripped out by a plastic fork." - Charles Cooper