]> 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 01955ffd602ed8ca681985d35932b59200561ca2..41ac981dadebadf8119642a1006a785d71019ecd 100644 (file)
@@ -35,13 +35,15 @@ public:
        ///
        static string const & getName(int type);
 
-       ///
-       InsetRef(InsetCommandParams const &, Buffer const &, bool same_id = false);
-       ///
+
+       InsetRef(InsetCommandParams const &, Buffer const &);
+
+       InsetRef(InsetRef const &);
+
        ~InsetRef();
        ///
-       virtual Inset * clone(Buffer const & buffer, bool same_id = false) const {
-               return new InsetRef(params(), buffer, same_id);
+       virtual Inset * clone() const {
+               return new InsetRef(*this);
        }
        ///
        dispatch_result localDispatch(FuncRequest const & cmd);
@@ -54,8 +56,8 @@ public:
        ///
        bool display() const { return false; }
        ///
-       int latex(Buffer const *, std::ostream &, LatexRunParams const &,
-                 bool fragile, bool free_spc) const;
+       int latex(Buffer const *, std::ostream &,
+                 LatexRunParams const &) const;
        ///
        int ascii(Buffer const *, std::ostream &, int linelen) const;
        ///