+ flag.setEnabled(true);
+ break;
+
+ // @todo Test if current WorkArea is the search WorkArea
+ case LFUN_REGEXP_MODE:
+ flag.setEnabled(! this->cursor().inRegexped());
+ break;
+
+ case LFUN_COPY_LABEL_AS_REF: {
+ // if there is an inset at cursor, see whether it
+ // handles the lfun
+ Inset * inset = cur.nextInset();
+ if (!inset || !inset->getStatus(cur, cmd, flag))
+ flag.setEnabled(false);
+ break;
+ }
+
+ case LFUN_NEXT_INSET_MODIFY: {
+ // this is the real function we want to invoke
+ FuncRequest tmpcmd = cmd;
+ tmpcmd.action = LFUN_INSET_MODIFY;
+ // if there is an inset at cursor, see whether it
+ // handles the lfun, other start from scratch
+ Inset * inset = cur.nextInset();
+ if (!inset || !inset->getStatus(cur, tmpcmd, flag))
+ flag = lyx::getStatus(tmpcmd);