diff --git a/src/mathed/ChangeLog b/src/mathed/ChangeLog index 7bb4069533..9fe691f00f 100644 --- a/src/mathed/ChangeLog +++ b/src/mathed/ChangeLog @@ -1,3 +1,12 @@ +2005-03-15 Georg Baum + + * math_nestinset.C (doDispatch): create a MathBoxInset for mbox + rather than a MathMBoxInset, since the latter is not usable yet. + Fixes bug 1823. + * math_factory.C (createMathInset): Don't hardwire mbox, but read it + from lib/symbols again. This makes it possible to create other + "mbox-like" boxes. + 2005-03-02 Georg Baum * math_parser.C (parse1): Don't parse "\|" following a "\left" or diff --git a/src/mathed/Makefile.am b/src/mathed/Makefile.am index 409a7928d8..7d5554c2ee 100644 --- a/src/mathed/Makefile.am +++ b/src/mathed/Makefile.am @@ -100,8 +100,6 @@ libmathed_la_SOURCES = \ math_mathmlstream.h \ math_matrixinset.C \ math_matrixinset.h \ - math_mboxinset.C \ - math_mboxinset.h \ math_nestinset.C \ math_nestinset.h \ math_numberinset.C \ @@ -151,3 +149,6 @@ libmathed_la_SOURCES = \ command_inset.C \ ref_inset.h \ ref_inset.C +# math_mboxinset.C +# math_mboxinset.h + diff --git a/src/mathed/math_factory.C b/src/mathed/math_factory.C index 5f1a8a0167..271bf3fa3c 100644 --- a/src/mathed/math_factory.C +++ b/src/mathed/math_factory.C @@ -253,8 +253,12 @@ MathAtom createMathInset(string const & s) return MathAtom(new MathSpaceInset(l->name)); if (inset == "dots") return MathAtom(new MathDotsInset(l)); -// if (inset == "mbox") -// return MathAtom(new MathBoxInset(l->name)); + if (inset == "mbox") + // return MathAtom(new MathMBoxInset); + // MathMBoxInset is proposed to replace MathBoxInset, + // but is not ready yet (it needs a BufferView for + // construction) + return MathAtom(new MathBoxInset(l->name)); // if (inset == "fbox") // return MathAtom(new MathFboxInset(l)); if (inset == "style") @@ -275,8 +279,6 @@ MathAtom createMathInset(string const & s) return MathAtom(new MathMacroArgument(s[2] - '0')); if (s == "boxed") return MathAtom(new MathBoxedInset()); - if (s == "mbox") - return MathAtom(new MathBoxInset("mbox")); if (s == "fbox") return MathAtom(new MathFboxInset()); if (s == "framebox") diff --git a/src/mathed/math_nestinset.C b/src/mathed/math_nestinset.C index 2aef636f4a..dac2f28707 100644 --- a/src/mathed/math_nestinset.C +++ b/src/mathed/math_nestinset.C @@ -13,6 +13,7 @@ #include "math_nestinset.h" #include "math_arrayinset.h" +#include "math_boxinset.h" #include "math_braceinset.h" #include "math_commentinset.h" #include "math_data.h" @@ -21,7 +22,7 @@ #include "math_hullinset.h" #include "math_mathmlstream.h" #include "math_macroarg.h" -#include "math_mboxinset.h" +//#include "math_mboxinset.h" #include "math_parser.h" #include "math_scriptinset.h" #include "math_spaceinset.h" @@ -712,7 +713,8 @@ void MathNestInset::doDispatch(LCursor & cur, FuncRequest & cmd) break; cur.macroModeClose(); selClearOrDel(cur); - cur.plainInsert(MathAtom(new MathMBoxInset(cur.bv()))); + //cur.plainInsert(MathAtom(new MathMBoxInset(cur.bv()))); + cur.plainInsert(MathAtom(new MathBoxInset("mbox"))); cur.posLeft(); cur.pushLeft(*cur.nextInset()); #else