> Well what you're hiding is the creation of an inset and inserting it in
> BufferViews LyXText, I don't think this is really mathed stuff, is it?
Since it needs to call the inset's constructors (and do things like "don't
start with numbered displayed formalae") it certainly is.
> Then you probably should hide your big global function
> DoAllWhatINeedForMathed() also somewhere in the code!
Sure. But I'd rather call it
struct MathInitializer()
{
MathInitializer() {
big_lyxfunc_switch->register(LFUN_MATH_INSERT, my_math_insert);
big_lyxfunc_switch->register(LFUN_MATH_DISPLAY, my_math_display);
...
}
};
static MathInitializer dummy;
and would not even tell you about. And you would not notice that there
is a mathed in LyX until LyX is actually launched.
Andre'
--
André Pönitz ............................................. [EMAIL PROTECTED]