]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/CommandInset.h
InsetMathHull.cpp: whitespace
[lyx.git] / src / mathed / CommandInset.h
index bc7b839dd7162dea014f9623318f911135ca2b68..98f96664dc30ab8e06677b2163e3bc2717cd3075 100644 (file)
@@ -25,9 +25,9 @@ namespace lyx {
 class CommandInset : public InsetMathNest {
 public:
        ///
-       explicit CommandInset(docstring const & name);
+       explicit CommandInset(docstring const & name, bool needs_math_mode = true);
        ///
-       bool metrics(MetricsInfo & mi, Dimension & dim) const;
+       void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
        void draw(PainterInfo & pi, int x, int y) const;
        ///
@@ -40,12 +40,17 @@ 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_;
        ///
+       bool needs_math_mode_;
+       ///
        mutable bool set_label_;
        ///
        mutable RenderButton button_;