};
-int const FORMAT = 7;
+int const FORMAT = 8;
bool layout2layout(FileName const & filename, FileName const & tempfile)
TC_TITLELATEXNAME,
TC_TITLELATEXTYPE,
TC_FORMAT,
- TC_ADDTOPREAMBLE
+ TC_ADDTOPREAMBLE,
+ TC_USEMODULE
};
{ "style", TC_STYLE },
{ "titlelatexname", TC_TITLELATEXNAME },
{ "titlelatextype", TC_TITLELATEXTYPE },
- { "tocdepth", TC_TOCDEPTH }
+ { "tocdepth", TC_TOCDEPTH },
+ { "usemodule", TC_USEMODULE }
};
} //namespace anon
break;
}
+ case TC_USEMODULE: {
+ lexrc.next();
+ string const module = lexrc.getString();
+ usemod_.insert(module);
+ break;
+ }
+
case TC_LEFTMARGIN: // left margin type
if (lexrc.next())
leftmargin_ = lexrc.getDocString();
case TC_INSETLAYOUT:
if (lexrc.next()) {
InsetLayout il;
- if (il.read(lexrc))
+ if (il.read(lexrc, *this))
insetlayoutlist_[il.name()] = il;
// else there was an error, so forget it
}