#define MATH_BRACEINSET_H
#include "math_nestinset.h"
-#include "math_metricsinfo.h"
-#ifdef __GNUG__
-#pragma interface
-#endif
-/** Extra nesting
- \author André Pönitz
+/** Extra nesting
+ * \author André Pönitz
+ *
+ * Full author contact details are available in file CREDITS
*/
class MathBraceInset : public MathNestInset {
///
MathBraceInset();
///
- MathInset * clone() const;
+ MathBraceInset(MathArray const & ar);
+ ///
+ virtual std::auto_ptr<InsetBase> clone() const;
+ /// we write extra braces in any case...
+ bool extraBraces() const { return true; }
///
- void draw(Painter &, int x, int y) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const;
///
- void write(MathWriteInfo & os) const;
+ void draw(PainterInfo &, int x, int y) const;
+ ///
+ void write(WriteStream & os) const;
/// write normalized content
- void writeNormal(NormalStream &) const;
+ void normalize(NormalStream & ns) const;
+ ///
+ void maple(MapleStream &) const;
///
- void metrics(MathMetricsInfo const & st) const;
+ void mathematica(MathematicaStream &) const;
+ ///
+ void octave(OctaveStream &) const;
+ ///
+ void mathmlize(MathMLStream &) const;
+ ///
+ void infoize(std::ostream & os) const;
private:
/// width of brace character
mutable int wid_;
- ///
- MathMetricsInfo mi_;
};
#endif