]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetcommand.h
Clean up InsetGraphics::Cache and rename as GraphicsInset.
[lyx.git] / src / insets / insetcommand.h
index 8d2e70b9f34f8c7f976314538034e1b575eeb315..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;
        ///
@@ -70,7 +72,7 @@ public:
        InsetCommandParams const & params() const { return p_; }
        ///
        void setParams(InsetCommandParams const &);
-       /// small wrapper for the time being
+       ///
        virtual dispatch_result localDispatch(FuncRequest const & cmd);
 
 private:
@@ -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_; }
        ///