//p.dump();
stringstream ss;
- TextClass textclass = parse_preamble(p, ss, documentclass);
+ TeX2LyXDocClass textclass;
+ parse_preamble(p, ss, documentclass, textclass);
captionlayout = LayoutPtr(Layout::forCaption());
active_environments.push_back("document");