X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathBrace.h;h=b28cd05e7db452d31d751bb7ef989ec636dc902b;hb=3a544072a522845b192594dd2ab11fcb1fc80eeb;hp=3d581dc023c23dce476cc557bdf476566e50b132;hpb=86c1053f51784c8ad7a479d6d86f299b889e46d5;p=lyx.git diff --git a/src/mathed/InsetMathBrace.h b/src/mathed/InsetMathBrace.h index 3d581dc023..b28cd05e7d 100644 --- a/src/mathed/InsetMathBrace.h +++ b/src/mathed/InsetMathBrace.h @@ -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 doClone() const; + virtual Inset * clone() const; };