]> git.lyx.org Git - features.git/blobdiff - src/insets/insetinclude.C
Another clean-up patch from Angus
[features.git] / src / insets / insetinclude.C
index 1bd61134803d0a5331fa1b92e3c8972d57f8c2bd..bb2c28c85472e3334a438e1d331df8efeed7d2fc 100644 (file)
@@ -210,11 +210,9 @@ static string unique_id() {
 }
 
 
-InsetInclude::InsetInclude(string const & fname, Buffer * bf)
-       : InsetCommand("include") 
+InsetInclude::InsetInclude(InsetCommandParams const & p, Buffer * bf)
+       : InsetCommand(p), master(bf)
 {
-       master = bf;
-       setContents(fname);
        flag = InsetInclude::INCLUDE;
        noload = false;
        include_label = unique_id();
@@ -240,7 +238,7 @@ InsetInclude::~InsetInclude()
 
 Inset * InsetInclude::Clone() const
 { 
-       InsetInclude * ii = new InsetInclude (getContents(), master); 
+       InsetInclude * ii = new InsetInclude (params(), master); 
        ii->setNoLoad(isNoLoad());
        // By default, the newly created inset is of `include' type,
        // so we do not test this case.