+2003-11-28 Martin Vermeer <martin.vermeer@hut.fi>
+
+ * factory.C: Syntax change for CharStyles
+
2003-11-28 André Pönitz <poenitz@gmx.net>
* BufferView.[Ch]: make LyXText * text a private member
lex.next();
string tmptok = lex.getString();
- CharStyles::iterator found_cs = tclass.charstyle(tmptok);
- if (found_cs != tclass.charstyles().end())
- tmptok = "CharStyle";
// test the different insets
if (tmptok == "LatexCommand") {
|| tmptok == "Ovalbox" || tmptok == "Frameless") {
inset.reset(new InsetBox(buf.params(), tmptok));
} else if (tmptok == "CharStyle") {
+ lex.next();
+ string s = lex.getString();
+ CharStyles::iterator found_cs = tclass.charstyle(s);
inset.reset(new InsetCharStyle(buf.params(), found_cs));
} else if (tmptok == "Branch") {
inset.reset(new InsetBranch(buf.params(), string()));