]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetFormulaMacro.h
simplify GuiToc / TocWidget interaction. Much can still be simplified...
[lyx.git] / src / mathed / InsetFormulaMacro.h
index db33b839dc81d959ae27eb06b02abc5ea814c31f..20383169de73467afffcaa2d321f5e19a909265b 100644 (file)
@@ -35,7 +35,7 @@ public:
        /// constructs a mocro from its LaTeX definition
        explicit InsetFormulaMacro(docstring const & s);
        ///
-       bool metrics(MetricsInfo & mi, Dimension & dim) const;
+       void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
        void draw(PainterInfo & pi, int x, int y) const;
 
@@ -54,9 +54,7 @@ public:
                    OutputParams const &) const;
 
        ///
-       std::auto_ptr<Inset> clone() const;
-       ///
-       Inset::Code lyxCode() const { return MATHMACRO_CODE; }
+       InsetCode lyxCode() const { return MATHMACRO_CODE; }
        ///
        docstring const & getInsetName() const { return name_; }
        ///
@@ -70,6 +68,8 @@ private:
        docstring prefix() const;
        ///
        docstring name_;
+       ///
+       Inset * clone() const;
 };