Re: [Patch] better behaviour on inserting inset around selection

2007-10-11 Thread Jean-Marc Lasgouttes
Martin Vermeer <[EMAIL PROTECTED]> writes: > The attached adds and uses an allowMultiPar() method, and everything > still works (I also made Box insetlayoutable, as it wouldn't work right > without). Yes. It might be a good idea to define it in the insets that do not allow multipar, and to move

Re: [Patch] better behaviour on inserting inset around selection

2007-10-10 Thread Martin Vermeer
On Wed, Oct 10, 2007 at 11:26:54AM +0200, Jean-Marc Lasgouttes wrote: > Martin Vermeer <[EMAIL PROTECTED]> writes: > > >> OTOH if the surrounding text para becomes empty after the cut, I think > >> resetting _that_ to default makes sense. Think enclosing a section > >> header plus text into a (bra

Re: [Patch] better behaviour on inserting inset around selection

2007-10-10 Thread Jean-Marc Lasgouttes
Martin Vermeer <[EMAIL PROTECTED]> writes: >> OTOH if the surrounding text para becomes empty after the cut, I think >> resetting _that_ to default makes sense. Think enclosing a section >> header plus text into a (branch) inset. Or a numbered/bullet list. Yes! This has annoyed me for ages! > Th

Re: [Patch] better behaviour on inserting inset around selection

2007-10-10 Thread Martin Vermeer
On Tue, 09 Oct 2007 22:57:38 +0300 Martin Vermeer <[EMAIL PROTECTED]> wrote: > On Tue, Oct 09, 2007 at 10:47:54AM +0300, Martin Vermeer wrote: > > ... > > > Now _my_ question: > > > > Looking at Text3.cpp, I find the passage > > > >if (gotsel && pastesel) { > >

[Patch] better behaviour on inserting inset around selection

2007-10-09 Thread Martin Vermeer
On Tue, Oct 09, 2007 at 10:47:54AM +0300, Martin Vermeer wrote: ... > Now _my_ question: > > Looking at Text3.cpp, I find the passage > >if (gotsel && pastesel) { > lyx::dispatch(FuncRequest(LFUN_PASTE, "0")); > // reset first pa