]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathBrace.h
revert last patch. there's something wrong, possibly unrelated to this
[lyx.git] / src / mathed / InsetMathBrace.h
index c4481bae393ef915c809230ee971e5a60defaec2..6a90397e6a4c133c7ca33c088289315d98940d0a 100644 (file)
@@ -25,12 +25,14 @@ public:
        InsetMathBrace();
        ///
        InsetMathBrace(MathData const & ar);
-       ///
+       /// identifies brace insets
+       InsetMathBrace * asBraceInset() { return this; }
+       /// identifies brace insets
        InsetMathBrace const * asBraceInset() const { return this; }
        /// we write extra braces in any case...
        bool extraBraces() const { return true; }
        ///
-       bool metrics(MetricsInfo & mi, Dimension & dim) const;
+       void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
        void draw(PainterInfo &, int x, int y) const;
        ///
@@ -48,7 +50,7 @@ public:
        ///
        void infoize(odocstream & os) const;
 private:
-       virtual std::auto_ptr<Inset> doClone() const;
+       virtual Inset * clone() const;
 };