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 whe
Jean-Marc Lasgouttes schreef:
Does the attached patch make sense? It does not work (yet) but I did not
have time to debug it.
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 stat
Vincent van Ravesteijn writes:
>> I think the distinction between 'do not handle' and 'handle but is
>> disabled' captures what you want. It might even be that all uses of
>> OptItem could be replaced by that in the code.
>
> Well, it's a not-so-very-well-defined difference in my opinion. At
> lea
An inline equation can't have a label, so in the context menu, the items
"Equation Label" and "Copy as Ref" are hidden. When you change the
equation to a display Equation, both items will appear, but "Copy as
Ref" will be disabled as long as you don't insert a label.
What if the inset say
"Vincent van Ravesteijn - TNW" writes:
> It would be hidden by default if the item is disabled, unless you call
> status.showAlways(true) (or another name).
OK.
> An inline equation can't have a label, so in the context menu, the items
> "Equation Label" and "Copy as Ref" are hidden. When you ch
>>>What is the difference with an "Item" then?
>>
>> An Item can be on/off, an OptItem can be on/hidden, but sometimes you
>> might want an item to be on/off/hidden.
>
>In what situation would your item be hidden then? Sorry if I am a bit
dense today :)
>
>Jmarc
>
It would be hidden by default if
"Vincent van Ravesteijn - TNW" writes:
>>What is the difference with an "Item" then?
>
> An Item can be on/off, an OptItem can be on/hidden, but sometimes you
> might want an item to be on/off/hidden.
In what situation would your item be hidden then? Sorry if I am a bit
dense today :)
JMarc
>> This patch enables to show even disabled OptItems.
>>
>> I found that this is wanted sometimes. Example: An inlined equation
>> does not have a label and thus no copy as reference, so these can be
>> hidden. When the equation is displayed, you can insert a label. But,
>> as long as there is
Vincent van Ravesteijn writes:
> This patch enables to show even disabled OptItems.
>
> I found that this is wanted sometimes. Example: An inlined equation
> does not have a label and thus no copy as reference, so these can be
> hidden. When the equation is displayed, you can insert a label. But,
This patch enables to show even disabled OptItems.
I found that this is wanted sometimes. Example: An inlined equation does
not have a label and thus no copy as reference, so these can be hidden.
When the equation is displayed, you can insert a label. But, as long as
there is no label inserted
10 matches
Mail list logo