Jean-Marc Lasgouttes wrote:
Abdelrazak Younes <you...@lyx.org> writes:
I didn't look, so maybe the answer is no, but is there some way this
could be done in one centralized location? It seems bad if we have
to have this same code in several places. But maybe there are only
some LFUNs for which it is needed?
Yes, this is only for the LFUNs that should go to Buffer ideally.
Another option would be to have a switch statement only for that:
if (buffer_.isInternal())
switch (cmd.action) {
case LFUN_BUFFER_PARAMS_APPLY:
case LFUN_LAYOUT_MODULES_CLEAR:
case LFUN_LAYOUT_MODULE_ADD:
case LFUN_TEXTCLASS_APPLY:
case LFUN_TEXTCLASS_LOAD:
case LFUN_LAYOUT_RELOAD:
return false;
default:
break;
}
}
We could have a flag NoInternal (or a better name) to LyXAction
specifying that.
OK, I'll do that.
Abdel.