Le 27 mai 09 à 23:08, Vincent van Ravesteijn a écrit :
It makes sense, but it doesn't work because BufferView::getStatus()
always returns true for LFUN_LABEL_COPY_AS_REF.
Second, when InsetMathHull is asked for the status of LABEL_INSERT,
it _should_ return that it handles the LFUN, even when the math is
inlined. Otherwise, LyXFunc::getStatus will ask the view and the
buffer, and the item will always be enabled, because you can
(almost) always insert a label in the document. In this case, you
want to have another option : "I do not handle the lfun, but I do
have the authority to decide that you shouldn't ask anyone else".
Those are both good reasons. My first idea (use unknown()) would still
work, but it is a bit contrived.
I'll sleep over it.
JMarc