Georg Baum wrote:
Not really. You probably mean MathMBoxInset, which indeed can store real text. The problem is that it cannot be used because it requires a BufferView in the constructor, and that is not available when the inset needs to be created. Believe me, I tried to enable this ~ 2 years ago, but it was not possible without big code refactoring, so I gave up. Abdel has now removed the need for a BufferView in the LyXText constructor, so enabling MathMBoxInset should be easier. LyXText now needs a Buffer, so there is still some work to do,
No, LyXText does not need a Buffer.
but IIRC getting a Buffer at MathMBoxInset construction time was doable.
AFAIS, the only place where a Buffer is needed in InsetMathMBox is in InsetMathMBox::write(). A special case for this object when this method is called is all that is needed.
Abdel.