]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetFlex.cpp
Fix GRAPHICS_EDIT of InsetGraphics
[lyx.git] / src / insets / InsetFlex.cpp
index 45e8b739d756a2ce5af012f4e6d14d57acd9c498..d61346d342db57fb41038c515b22e00c0c03a206 100644 (file)
@@ -39,12 +39,12 @@ using namespace std;
 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();
 }
@@ -55,12 +55,6 @@ InsetFlex::InsetFlex(InsetFlex const & in)
 {}
 
 
-Inset * InsetFlex::clone() const
-{
-       return new InsetFlex(*this);
-}
-
-
 docstring InsetFlex::editMessage() const
 {
        return _("Opened Flex Inset");