>>>>> "Asger" == Asger K Alstrup Nielsen <[EMAIL PROTECTED]> writes:

>> Why not directly have a LyXFunc::Query() with a large switch like
>> in Dispatch()? This could even be used in Dispatch itself to return
>> on read-only functions. Just some cut and paste.

Asger> Well, it's the same except that instead of one name-space, we
Asger> get two name-spaces.  What would the advantage be?

What do you mean? The only difference is that you propose to create a
new lyxfunc query-function that would call some sort of
LyXFunc::Query() (via LyXFunc::Dispatch). And this means that we pass
an additional parameter for each toolbar/menu item, whereas we know
that this could be done in a central way in lyxfunc.C, as it is done
currently at the beginning of Dispatch()...

However, I do not really understand what you mean by ``two
name-spaces''. It is probably why I don't understand you problem :)

Could you elaborate?

JMarc

Reply via email to