X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathBrace.h;h=b28cd05e7db452d31d751bb7ef989ec636dc902b;hb=02e82157ec583c3900e359de86be79fac6512387;hp=c4481bae393ef915c809230ee971e5a60defaec2;hpb=32871c1284f15265f652ff01c438e539a7c8181f;p=lyx.git diff --git a/src/mathed/InsetMathBrace.h b/src/mathed/InsetMathBrace.h index c4481bae39..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(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; };