Andre Poenitz wrote:
On Tue, Nov 06, 2007 at 03:13:35PM +0100, Abdelrazak Younes wrote:
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.

Cursor, too.

True. But most LFUNs in Text::dispatch() do not really belong there.

Abdel.

Reply via email to