#include "support/docstream.h"
#include "support/filetools.h"
-#include "frontends/controllers/frontend_helpers.h"
-
using std::endl;
using std::find;
using std::string;
return;
}
- Layout_ptr const & lyt = tclass[layoutname];
+ LayoutPtr const & lyt = tclass[layoutname];
if (!lyt->depends_on().empty()) {
++level;
useLayout(lyt->depends_on());
"latexsym",
"pifont",
"subfigure",
- "floatflt",
+ "wrapfig",
"varioref",
"prettyref",
"float",
"dvipost",
"fancybox",
"calc",
- "nicefrac",
+ "units",
"tipa",
"framed",
"pdfcolmk",
tcpreamble << tclass[*cit]->preamble();
}
- CharStyles::iterator cs = tclass.charstyles().begin();
- CharStyles::iterator csend = tclass.charstyles().end();
- for (; cs != csend; ++cs) {
- if (isRequired(cs->name))
- tcpreamble << cs->preamble;
+ InsetLayouts const & insetlayouts = tclass.insetlayouts();
+ InsetLayouts::const_iterator cit2 = insetlayouts.begin();
+ InsetLayouts::const_iterator end2 = insetlayouts.end();
+ for (; cit2 != end2; ++cit2) {
+ if (isRequired(to_utf8(cit2->first))) {
+ tcpreamble << from_utf8(cit2->second.preamble);
+ }
}
return tcpreamble.str();