I think I've the infra structure for "environment like" insets ready. No rocket science actually.
This will serve as a base for list, itemize, enumerate insets and this could be the base of user defined environments via layout files. I'll feed that to the list in not-too-big chunks and commit with a few minutes delay. First patch is adding a LFUN to insert such a beast. Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson)
Index: src/LyXAction.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/LyXAction.C,v retrieving revision 1.156 diff -u -p -r1.156 LyXAction.C --- src/LyXAction.C 10 Mar 2003 09:46:23 -0000 1.156 +++ src/LyXAction.C 12 Mar 2003 15:54:06 -0000 @@ -168,6 +168,7 @@ void LyXAction::init() N_("Choose Paragraph Environment"), ReadOnly }, { LFUN_END_OF_SENTENCE, "end-of-sentence-period-insert", N_("Insert end of sentence period"), Noop }, + { LFUN_ENVIRONMENT_INSERT, "environment-insert", "", Noop }, { LFUN_GOTOERROR, "error-next", N_("Go to next error"), ReadOnly }, { LFUN_REMOVEERRORS, "error-remove-all", Index: src/commandtags.h =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/commandtags.h,v retrieving revision 1.114 diff -u -p -r1.114 commandtags.h --- src/commandtags.h 7 Mar 2003 18:44:53 -0000 1.114 +++ src/commandtags.h 12 Mar 2003 15:54:06 -0000 @@ -124,6 +124,7 @@ enum kb_action { LFUN_NOTIFY, LFUN_GOTOFILEROW, // Edmar 12/23/98 LFUN_INSERT_NOTE, + LFUN_ENVIRONMENT_INSERT, LFUN_KMAP_OFF, LFUN_KMAP_PRIM, LFUN_KMAP_SEC, Index: src/insets/insetenv.C =================================================================== RCS file: src/insets/insetenv.C diff -N src/insets/insetenv.C Index: src/insets/insetenv.h =================================================================== RCS file: src/insets/insetenv.h diff -N src/insets/insetenv.h