#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"
{
try {
- switch (cmd.action) {
+ switch (cmd.action()) {
case LFUN_LINE_INSERT:
return new InsetLine;
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()));
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") {