]> git.lyx.org Git - lyx.git/blobdiff - src/factory.C
cursor fix
[lyx.git] / src / factory.C
index 11d0832578641e998b4c3828eaa1d3f2fd5397e5..9fac9fc92585586c29fb71dea0af98587117ee49 100644 (file)
@@ -1,3 +1,14 @@
+/**
+ * \file factory.C
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author André Pönitz
+ *
+ * Full author contact details are available in file CREDITS
+ */
+
+#include <config.h>
 
 #include "funcrequest.h"
 #include "bufferparams.h"
@@ -23,6 +34,7 @@
 #include "insets/insettext.h"
 #include "insets/insettoc.h"
 #include "insets/inseturl.h"
+#include "insets/insetwrap.h"
 #include "frontends/Dialogs.h"
 #include "frontends/LyXView.h"
 
@@ -74,6 +86,12 @@ Inset * createInset(FuncRequest const & cmd)
                        lyxerr << "Non-existent float type: " << cmd.argument << endl;
                        return 0;
 
+               case LFUN_INSET_WRAP:
+                       if (cmd.argument == "figure")
+                               return new InsetWrap(params, cmd.argument);
+                       lyxerr << "Non-existent floatflt type: " << cmd.argument << endl;
+                       return 0;
+
                case LFUN_INDEX_INSERT: {
                        string entry = cmd.argument;
                        if (entry.empty())
@@ -107,7 +125,7 @@ Inset * createInset(FuncRequest const & cmd)
                        }
                        return 0;
 
-               case LFUN_INDEX_PRINT: 
+               case LFUN_INDEX_PRINT:
                        return new InsetPrintIndex(InsetCommandParams("printindex"));
 
                case LFUN_TOC_INSERT:
@@ -137,5 +155,3 @@ Inset * createInset(FuncRequest const & cmd)
        }
        return 0;
 }
-
-