void InsetCollapsable::validate(LaTeXFeatures & features) const
{
- if (!layout_)
- return;
-
- // Force inclusion of preamble snippet in layout file
- features.require(to_utf8(layout_->name()));
+ string const preamble = getLayout().preamble();
+ if (!preamble.empty())
+ features.addPreambleSnippet(preamble);
+ features.require(getLayout().requires());
InsetText::validate(features);
}
}
-void InsetFlex::validate(LaTeXFeatures & features) const
-{
- string const preamble = getLayout().preamble();
- if (!preamble.empty())
- features.addPreambleSnippet(preamble);
- features.require(getLayout().requires());
-}
-
} // namespace lyx
int docbook(odocstream &, OutputParams const &) const;
/// the string that is passed to the TOC
void textString(odocstream &) const;
- ///
- void validate(LaTeXFeatures &) const;
/// should paragraph indendation be ommitted in any case?
bool neverIndent() const { return true; }