2001-10-29 15:45:24 +00:00
|
|
|
|
// -*- C++ -*-
|
|
|
|
|
#ifndef MATH_BRACEINSET_H
|
|
|
|
|
#define MATH_BRACEINSET_H
|
|
|
|
|
|
|
|
|
|
#include "math_nestinset.h"
|
|
|
|
|
|
|
|
|
|
|
2002-03-21 17:42:56 +00:00
|
|
|
|
/** Extra nesting
|
2002-09-11 08:26:02 +00:00
|
|
|
|
* \author Andr<EFBFBD> P<EFBFBD>nitz
|
|
|
|
|
*
|
|
|
|
|
* Full author contact details are available in file CREDITS
|
2001-10-29 15:45:24 +00:00
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
class MathBraceInset : public MathNestInset {
|
|
|
|
|
public:
|
|
|
|
|
///
|
|
|
|
|
MathBraceInset();
|
|
|
|
|
///
|
2002-07-11 07:56:14 +00:00
|
|
|
|
MathBraceInset(MathArray const & ar);
|
|
|
|
|
///
|
2003-07-25 17:11:25 +00:00
|
|
|
|
virtual std::auto_ptr<InsetBase> clone() const;
|
2002-07-10 07:15:36 +00:00
|
|
|
|
/// we write extra braces in any case...
|
|
|
|
|
bool extraBraces() const { return true; }
|
2002-02-07 09:47:21 +00:00
|
|
|
|
///
|
2003-06-02 10:03:27 +00:00
|
|
|
|
void metrics(MetricsInfo & mi, Dimension & dim) const;
|
2002-07-30 17:51:19 +00:00
|
|
|
|
///
|
2003-03-21 14:20:48 +00:00
|
|
|
|
void draw(PainterInfo &, int x, int y) const;
|
2001-10-29 15:45:24 +00:00
|
|
|
|
///
|
2001-11-09 08:35:57 +00:00
|
|
|
|
void write(WriteStream & os) const;
|
2001-10-29 15:45:24 +00:00
|
|
|
|
/// write normalized content
|
2002-06-24 15:37:14 +00:00
|
|
|
|
void normalize(NormalStream & ns) const;
|
2001-10-29 15:45:24 +00:00
|
|
|
|
///
|
2003-02-14 14:30:09 +00:00
|
|
|
|
void maple(MapleStream &) const;
|
2002-07-30 17:51:19 +00:00
|
|
|
|
///
|
2003-02-14 14:30:09 +00:00
|
|
|
|
void mathematica(MathematicaStream &) const;
|
2002-07-30 17:51:19 +00:00
|
|
|
|
///
|
2003-02-14 14:30:09 +00:00
|
|
|
|
void octave(OctaveStream &) const;
|
2002-07-30 17:51:19 +00:00
|
|
|
|
///
|
|
|
|
|
void mathmlize(MathMLStream &) const;
|
2002-07-09 13:38:27 +00:00
|
|
|
|
///
|
2002-07-09 14:00:59 +00:00
|
|
|
|
void infoize(std::ostream & os) const;
|
2001-10-29 15:45:24 +00:00
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
/// width of brace character
|
|
|
|
|
mutable int wid_;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|