]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/CommandInset.h
Change the interface to a paragraph's layout. We still store a LayoutPtr, but now...
[lyx.git] / src / mathed / CommandInset.h
index 22cdb1935e9c88bbd296df1dfb63ff25719f209e..c1b8ffe714042bcaaea99dce07359d5c84528dd1 100644 (file)
@@ -27,11 +27,11 @@ 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;
        ///
-       InsetBase * editXY(Cursor &, int, int);
+       Inset * editXY(Cursor &, int, int);
        ///
        void write(WriteStream & os) 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<InsetBase> doClone() const;
+       virtual Inset * clone() const;
 
        ///
        docstring name_;