]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetcommand.h
Enable the external inset to handle unknown templates gracefully.
[lyx.git] / src / insets / insetcommand.h
index 6d8df729c363e5a2d92103af8a721730797e2cbc..a3e14b818a40d73603971f2fe88095bcd5634052 100644 (file)
@@ -31,7 +31,9 @@ class InsetCommand : public InsetButton, boost::noncopyable {
 public:
        ///
        explicit
-       InsetCommand(InsetCommandParams const &, bool same_id = false);
+       InsetCommand(InsetCommandParams const &);
+       ///
+       InsetCommand(InsetCommand const &);
        ///
        void write(Buffer const *, std::ostream & os) const
                { p_.write(os); }
@@ -42,7 +44,7 @@ public:
        void scanCommand(string const & c) { p_.scanCommand(c); };
        ///
        virtual int latex(Buffer const *, std::ostream &,
-                         bool fragile, bool free_spc) const;
+                         LatexRunParams const &) const;
        ///
        int ascii(Buffer const *, std::ostream &, int linelen) const;
        ///
@@ -84,7 +86,7 @@ public:
        ///
        InsetCommandMailer(string const & name, InsetCommand & inset);
        ///
-       virtual Inset & inset() const { return inset_; }
+       virtual InsetBase & inset() const { return inset_; }
        ///
        virtual string const & name() const { return name_; }
        ///