On Tue, 2005-11-08 at 15:46 +0100, Juergen Spitzmueller wrote: > Jean-Marc Lasgouttes wrote: > >>> I still can't insert a matrix into existing delimiters, lyx simply > >>> ignores the attempt. Also, writing anything into existing > >>> delimiters is hard because once again, the cursor is displayed > >>> in front of the delimiters while the action takes place inside. > > > > Georg> I dodn't know what happens here. > > > > It may be related to the patch that Juergen sent about using cursorPos > > in non HIGLY_EDITABLE insets. > > No (well, this is an additional barrier at the moment and the cause for the > second problem Helge mentions). For a possible solution to the original > problem (matrix disabled inside deliminset), see here: > http://marc.theaimsgroup.com/?l=lyx-devel&m=113111753821556&w=2 > (I am not convinced it is the ideal solution)
No, I suspect that what you want is this (if I understand this stuff correctly). currentMode is a virtual method returning UNDECIDED_MODE in insetbase. I think it should be selectively redefined in the inset types that support insertion of math stuff. There may be more besides delim. - Martin
Index: math_deliminset.h =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/mathed/math_deliminset.h,v retrieving revision 1.42 diff -u -p -r1.42 math_deliminset.h --- math_deliminset.h 10 Apr 2005 14:08:54 -0000 1.42 +++ math_deliminset.h 8 Nov 2005 16:01:08 -0000 @@ -36,6 +36,8 @@ public: /// is it |...|? bool isAbs() const; /// + mode_type currentMode() const { return MATH_MODE; } + /// void metrics(MetricsInfo & mi, Dimension & dim) const; /// void draw(PainterInfo &, int x, int y) const;
signature.asc
Description: This is a digitally signed message part