]> git.lyx.org Git - lyx.git/blobdiff - src/lyxfunc.C
fix arabtex-related problems (bug 1225 and bug 1404)
[lyx.git] / src / lyxfunc.C
index f40ed8c229857fef5ffba519fd2dbb2107597061..244a858dbca70488982b1fd23ae0c899a75d5db6 100644 (file)
@@ -483,6 +483,7 @@ FuncStatus LyXFunc::getStatus(FuncRequest const & cmd) const
        case LFUN_SET_COLOR:
        case LFUN_MESSAGE:
        case LFUN_EXTERNAL_EDIT:
+       case LFUN_GRAPHICS_EDIT:
        case LFUN_ALL_INSETS_TOGGLE:
        case LFUN_LANGUAGE_BUFFER:
        case LFUN_TEXTCLASS_APPLY:
@@ -587,7 +588,7 @@ void LyXFunc::dispatch(FuncRequest const & cmd, bool verbose)
        selection_possible = false;
 
        bool update = true;
-       
+
        // We cannot use this function here
        if (!getStatus(cmd).enabled()) {
                lyxerr[Debug::ACTION] << "LyXFunc::dispatch: "
@@ -630,6 +631,7 @@ void LyXFunc::dispatch(FuncRequest const & cmd, bool verbose)
                        break;
 
                case LFUN_EXEC_COMMAND:
+                       owner->getToolbar().display("minibuffer", true);
                        owner->focus_command_buffer();
                        break;
 
@@ -1260,6 +1262,12 @@ void LyXFunc::dispatch(FuncRequest const & cmd, bool verbose)
                        break;
                }
 
+               case LFUN_GRAPHICS_EDIT: {
+                       FuncRequest fr(action, argument);
+                       InsetGraphics().dispatch(view()->cursor(), fr);
+                       break;
+               }
+
                case LFUN_ALL_INSETS_TOGGLE: {
                        string action;
                        string const name = split(argument, action, ' ');
@@ -1364,7 +1372,7 @@ void LyXFunc::dispatch(FuncRequest const & cmd, bool verbose)
                                update |= res.update();
                        else
                                update |= view()->dispatch(cmd);
-                       
+
                        break;
                }
                }