]> git.lyx.org Git - lyx.git/blobdiff - src/factory.C
Move the external dialog to the new scheme.
[lyx.git] / src / factory.C
index 31ccbb68b31e49a64382df2d301789c645a71d3c..e863e929bdf70b17424f5f1681ca01d3a3af9e74 100644 (file)
@@ -62,9 +62,6 @@ Inset * createInset(FuncRequest const & cmd)
        case LFUN_INSET_ERT:
                return new InsetERT(params);
 
-       case LFUN_INSET_EXTERNAL:
-               return new InsetExternal;
-
        case LFUN_INSET_FOOTNOTE:
                return new InsetFoot(params);
 
@@ -152,13 +149,6 @@ Inset * createInset(FuncRequest const & cmd)
                return new InsetParent(
                        InsetCommandParams("lyxparent", cmd.argument), *bv->buffer());
 
-       case LFUN_INSERT_URL:
-       {
-               InsetCommandParams p;
-               p.setFromString(cmd.argument);
-               return new InsetUrl(p);
-       }
-
 #if 0
        case LFUN_INSET_LIST:
                return new InsetList;
@@ -194,6 +184,13 @@ Inset * createInset(FuncRequest const & cmd)
                        inset->status(bv, s);
                        return inset;
 
+               } else if (name == "external") {
+                       InsetExternal::Params iep;                      
+                       InsetExternalMailer::string2params(cmd.argument, iep);
+                       InsetExternal * inset = new InsetExternal;
+                       inset->setFromParams(iep);
+                       return inset;
+
                } else if (name == "index") {
                        InsetCommandParams icp;
                        InsetCommandMailer::string2params(cmd.argument, icp);