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() > { > return false; > } > > Would that work (well I'm pretty sure ;)
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: line 690 or so - uses bv_->theLockingInset() - broken Paragraph::insertFromMinibuffer LyXText::insertInset uses : Paragraph::insetAllowed - broken All of these end up calling InsetText::insetAllowed() in these circumstances, when it is the owner of the insettext who really wants to have a say. regards john -- "Faced with the prospect of rereading this book, I would rather have my brains ripped out by a plastic fork." - Charles Cooper on "Business at the Speed of Thought"