namespace lyx {
-InsetFlex::InsetFlex(BufferParams const & bp,
- TextClassPtr tc, string const & layoutName)
- : InsetCollapsable(bp, Collapsed, tc),
+InsetFlex::InsetFlex(Buffer const & buf,
+ DocumentClass * dc, string const & layoutName)
+ : InsetCollapsable(buf, Collapsed, dc),
name_(layoutName)
{
- setLayout(tc); // again, because now the name is initialized
+ setLayout(dc); // again, because now the name is initialized
packages_ = getLayout().requires();
preamble_ = getLayout().preamble();
}
{}
-Inset * InsetFlex::clone() const
-{
- return new InsetFlex(*this);
-}
-
-
docstring InsetFlex::editMessage() const
{
return _("Opened Flex Inset");