]> git.lyx.org Git - lyx.git/blobdiff - src/factory.cpp
Workaround for #6865: smarter FontList::setMisspelled implementation
[lyx.git] / src / factory.cpp
index 5e435c65a89b6d9d579c5d3c62f6f7102ae4cb90..9f39a2d2291a1920814132ac252c96cce457f3ad 100644 (file)
@@ -45,7 +45,7 @@
 #include "insets/InsetNewpage.h"
 #include "insets/InsetNomencl.h"
 #include "insets/InsetNote.h"
-#include "insets/InsetOptArg.h"
+#include "insets/InsetArgument.h"
 #include "insets/InsetPhantom.h"
 #include "insets/InsetPreview.h"
 #include "insets/InsetRef.h"
@@ -80,7 +80,7 @@ Inset * createInsetHelper(Buffer * buf, FuncRequest const & cmd)
 {
        try {
 
-               switch (cmd.action_) {
+               switch (cmd.action()) {
 
                case LFUN_LINE_INSERT:
                        return new InsetLine;
@@ -144,8 +144,8 @@ Inset * createInsetHelper(Buffer * buf, FuncRequest const & cmd)
                case LFUN_MARGINALNOTE_INSERT:
                        return new InsetMarginal(buf);
 
-               case LFUN_OPTIONAL_INSERT:
-                       return new InsetOptArg(buf);
+               case LFUN_ARGUMENT_INSERT:
+                       return new InsetArgument(buf);
 
                case LFUN_FLOAT_INSERT:
                        return new InsetFloat(buf, to_utf8(cmd.argument()));
@@ -562,8 +562,8 @@ Inset * readInset(Lexer & lex, Buffer * buf)
                        inset.reset(new InsetNewpage);
                } else if (tmptok == "Newline") {
                        inset.reset(new InsetNewline);
-               } else if (tmptok == "OptArg") {
-                       inset.reset(new InsetOptArg(buf));
+               } else if (tmptok == "Argument") {
+                       inset.reset(new InsetArgument(buf));
                } else if (tmptok == "Float") {
                        inset.reset(new InsetFloat(buf, string()));
                } else if (tmptok == "Wrap") {