On Wed, Mar 05, 2003 at 11:25:39AM +0000, Angus Leeming wrote: > Ignorance. A MathAtom would just contain a LabelInset* in this case, right?
Yes, with value semantics. Otherwise tyou would have to start writing c'ctor, operator= and dtor. > 'Apply' is a bit complicated as the mathhullinset's dispatch/localDispatch > method should capture LFUN_INSET_APPLY "label" and apply the contents to the > MathAtom, either creating a LabelInset or modifying the existing one. Indeed. > Ditto, the LabelInset can now be removed. How do we tell the mathhullinset > that the LabelInset in the MathAtom is now gone? Reset the label to an empty string and let the write/whatever method handle that case. There is no "empty MathAtom" and so far I resisted the tempatation to make that possible. If we really need 'one or zero', MathArray would be the way to go. But I doubt this is possible, as the empty label string can serve the same purpose. > Could you provide me with a broad-brush outline of what you think needs > to be done. Uh, I think this is none of the most pressing problems right now... [Just in case you ask what _is_ pressing: Line breaking in ParInset and multicolumn for TabularInset are much more important...] If you want to play with IU a bit you could look at math_tabularinset/math_gridinset and make it work with the tabular dialog ;-) Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson)