Abdelrazak Younes <[EMAIL PROTECTED]> writes:

> Jürgen Spitzmüller wrote:
>> Jean-Marc Lasgouttes wrote:
>>> And what about moving this from BufferView (which is for all
>>> highly editable insets == text+math) to Text3.cpp (which is only for text)?
>>
>> Like this?
>
>
> +     case LFUN_OUTLINE_UP:
> +     case LFUN_OUTLINE_DOWN:
> +     case LFUN_OUTLINE_IN:
> +     case LFUN_OUTLINE_OUT:
> +             enable = (cur.innerParagraph().layout()->toclevel != 
> Layout::NOT_IN_TOC);
> +             break;
> +
>
> Can't we put these and (many others) in a new Cursor::getStatus
> instead? Text is used (abused) for many things already.

Why? The action happens at Text level.

JMarc

Reply via email to