* 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.
*/
class InsetMathBrace : public InsetMathNest {
public:
///
- InsetMathBrace();
+ explicit InsetMathBrace(Buffer * buf);
///
- InsetMathBrace(MathArray const & ar);
+ explicit InsetMathBrace(MathData const & ar);
+ /// identifies brace insets
+ InsetMathBrace * asBraceInset() override { return this; }
+ /// identifies brace insets
+ InsetMathBrace const * asBraceInset() const override { return this; }
///
- InsetMathBrace const * asBraceInset() const { return this; }
- /// we write extra braces in any case...
- bool extraBraces() const { return true; }
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void draw(PainterInfo &, int x, int y) const override;
///
- void draw(PainterInfo &, int x, int y) const;
- ///
- void write(WriteStream & os) const;
+ void write(TeXMathStream & os) const override;
/// write normalized content
- void normalize(NormalStream & ns) const;
+ void normalize(NormalStream & ns) const override;
+ ///
+ void maple(MapleStream &) const override;
+ ///
+ void mathematica(MathematicaStream &) const override;
///
- void maple(MapleStream &) const;
+ void octave(OctaveStream &) const override;
///
- void mathematica(MathematicaStream &) const;
+ void mathmlize(MathMLStream &) const override;
///
- void octave(OctaveStream &) const;
+ void htmlize(HtmlStream &) const override;
///
- void mathmlize(MathMLStream &) const;
+ void infoize(odocstream & os) const override;
///
- void infoize(std::ostream & os) const;
+ InsetCode lyxCode() const override { return MATH_BRACE_CODE; }
private:
- virtual std::auto_ptr<InsetBase> doClone() const;
+ Inset * clone() const override;
};