]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetref.h
Enable the external inset to handle unknown templates gracefully.
[lyx.git] / src / insets / insetref.h
index 9e1aa204aeda37f9b7d33b2404d232a058e4e38c..41ac981dadebadf8119642a1006a785d71019ecd 100644 (file)
@@ -35,21 +35,17 @@ public:
        ///
        static string const & getName(int type);
 
-       ///
+
        InsetRef(InsetCommandParams const &, Buffer const &);
-       ///
-       //InsetRef(InsetCommandParams const &, Buffer const &, bool same_id);
-       ///
+
+       InsetRef(InsetRef const &);
+
        ~InsetRef();
        ///
-       virtual Inset * clone(Buffer const & buffer) const {
-               return new InsetRef(params(), buffer);
+       virtual Inset * clone() const {
+               return new InsetRef(*this);
        }
        ///
-       //virtual Inset * clone(Buffer const & buffer, bool same_id) const {
-       //      return new InsetRef(params(), buffer, same_id);
-       //}
-       ///
        dispatch_result localDispatch(FuncRequest const & cmd);
        ///
        string const getScreenLabel(Buffer const *) const;