]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/CommandInset.h
revert last patch. there's something wrong, possibly unrelated to this
[lyx.git] / src / mathed / CommandInset.h
index bc7b839dd7162dea014f9623318f911135ca2b68..c1b8ffe714042bcaaea99dce07359d5c84528dd1 100644 (file)
@@ -27,7 +27,7 @@ public:
        ///
        explicit CommandInset(docstring const & name);
        ///
-       bool metrics(MetricsInfo & mi, Dimension & dim) const;
+       void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
        void draw(PainterInfo & pi, int x, int y) const;
        ///
@@ -40,8 +40,11 @@ public:
        virtual docstring const screenLabel() const;
        ///
        docstring const & commandname() const { return name_; }
+       ///
+       bool isActive() const { return false; }
+
 private:
-       virtual std::auto_ptr<Inset> doClone() const;
+       virtual Inset * clone() const;
 
        ///
        docstring name_;