]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathBrace.h
Fix #11827
[lyx.git] / src / mathed / InsetMathBrace.h
index 3d581dc023c23dce476cc557bdf476566e50b132..b28cd05e7db452d31d751bb7ef989ec636dc902b 100644 (file)
@@ -4,7 +4,7 @@
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
- * \author André Pönitz
+ * \author André Pönitz
  *
  * Full author contact details are available in file CREDITS.
  */
@@ -22,15 +22,17 @@ namespace lyx {
 class InsetMathBrace : public InsetMathNest {
 public:
        ///
-       InsetMathBrace();
-       ///
-       InsetMathBrace(MathArray const & ar);
+       InsetMathBrace(Buffer * buf);
        ///
+       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;
        ///
@@ -46,9 +48,13 @@ public:
        ///
        void mathmlize(MathStream &) const;
        ///
+       void htmlize(HtmlStream &) const;
+       ///
        void infoize(odocstream & os) const;
+       ///
+       InsetCode lyxCode() const { return MATH_BRACE_CODE; }
 private:
-       virtual std::auto_ptr<InsetBase> doClone() const;
+       virtual Inset * clone() const;
 };