#include "insets/InsetNote.h"
#include "insets/InsetBox.h"
#include "insets/InsetBranch.h"
+#include "insets/InsetPhantom.h"
#include "insets/InsetOptArg.h"
#include "insets/InsetNewpage.h"
#include "insets/InsetRef.h"
return new InsetBranch(buf, InsetBranchParams(arg));
}
+ case LFUN_PHANTOM_INSERT: {
+ string arg = cmd.getArg(0);
+ if (arg.empty())
+ arg = "Phantom";
+ return new InsetPhantom(buf, arg);
+ }
+
case LFUN_ERT_INSERT:
return new InsetERT(buf);
} else if (tmptok == "Box") {
inset.reset(new InsetBox(buf, tmptok));
} else if (tmptok == "Flex") {
- lex.next();
+ lex.eatLine();
string s = lex.getString();
inset.reset(new InsetFlex(buf, s));
} else if (tmptok == "Branch") {
inset.reset(new InsetBranch(buf, InsetBranchParams()));
+ } else if (tmptok == "Phantom") {
+ inset.reset(new InsetPhantom(buf, tmptok));
} else if (tmptok == "ERT") {
inset.reset(new InsetERT(buf));
} else if (tmptok == "listings") {