+ inset.reset(new InsetNote(buf.params(), tmptok));
+ } else if (tmptok == "Box") {
+ inset.reset(new InsetBox(buf.params(), tmptok));
+ } else if (tmptok == "CharStyle") {
+ lex.next();
+ string s = lex.getString();
+ CharStyles::iterator found_cs = tclass.charstyle(s);
+ if (found_cs != tclass.charstyles().end())
+ inset.reset(new InsetCharStyle(buf.params(), found_cs));
+ else {
+ // "Undefined" inset
+ inset.reset(new InsetCharStyle(buf.params(), s));
+ }
+ } else if (tmptok == "Branch") {
+ inset.reset(new InsetBranch(buf.params(),
+ InsetBranchParams()));