#include "frontends/Application.h"
#include "frontends/Clipboard.h"
-#include "frontends/LyXView.h"
#include "frontends/Selection.h"
-#include "frontends/WorkArea.h"
#include "insets/InsetCollapsable.h"
#include "insets/InsetCommand.h"
cur.updateFlags(Update::FitCursor);
break;
+ case LFUN_INSET_SELECT_ALL:
+ if (cur.depth() == 1 || !cur.selection() || !cur.selBegin().at_begin()
+ || !cur.selEnd().at_end()) {
+ needsUpdate |= cur.selHandle(false);
+ needsUpdate |= cursorTop(cur);
+ needsUpdate |= cur.selHandle(true);
+ needsUpdate |= cursorBottom(cur);
+ } else
+ cur.undispatched();
+ cur.updateFlags(Update::FitCursor);
+ break;
+
case LFUN_CHAR_FORWARD:
case LFUN_CHAR_FORWARD_SELECT:
//LYXERR0(" LFUN_CHAR_FORWARD[SEL]:\n" << cur);
case LFUN_INSET_END:
case LFUN_INSET_BEGIN_SELECT:
case LFUN_INSET_END_SELECT:
+ case LFUN_INSET_SELECT_ALL:
case LFUN_UNICODE_INSERT:
// these are handled in our dispatch()
enable = true;
case LFUN_FONT_UWAVE:
case LFUN_LABEL_GOTO:
case LFUN_LAYOUT_TABULAR:
- case LFUN_MENU_OPEN:
case LFUN_NOACTION:
case LFUN_NOTE_NEXT:
case LFUN_REFERENCE_NEXT:
- case LFUN_SERVER_GOTO_FILE_ROW:
case LFUN_SERVER_NOTIFY:
case LFUN_SERVER_SET_XY:
case LFUN_TEXTSTYLE_APPLY: