]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/MathMacroArgument.h
Change the interface to a paragraph's layout. We still store a LayoutPtr, but now...
[lyx.git] / src / mathed / MathMacroArgument.h
index bee2ccc7c8c7c440ab9233dbe4ad0bd1abb93f24..32d0e05e2c7aaf82a75de94387da1cf0474e00e6 100644 (file)
@@ -25,13 +25,15 @@ public:
        ///
        explicit MathMacroArgument(std::size_t);
        ///
-       bool metrics(MetricsInfo & mi, Dimension & dim) const;
+       void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
        void draw(PainterInfo &, int x, int y) const;
        ///
        std::size_t number() const { return number_; }
        ///
-       Inset::Code lyxCode() const { return MATHMACROARG_CODE; }
+       void setNumber(std::size_t n);
+       ///
+       InsetCode lyxCode() const { return MATHMACROARG_CODE; }
 
        ///
        void normalize(NormalStream &) const;
@@ -39,7 +41,7 @@ public:
        void write(WriteStream & os) const;
 
 private:
-       virtual std::auto_ptr<Inset> doClone() const;
+       virtual Inset * clone() const;
        /// A number between 1 and 9
        std::size_t number_;
        ///