2001-10-29 15:45:24 +00:00
|
|
|
|
// -*- C++ -*-
|
|
|
|
|
#ifndef MATH_BRACEINSET_H
|
|
|
|
|
#define MATH_BRACEINSET_H
|
|
|
|
|
|
|
|
|
|
#include "math_nestinset.h"
|
|
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
|
#pragma interface
|
|
|
|
|
#endif
|
|
|
|
|
|
2002-03-21 17:42:56 +00:00
|
|
|
|
/** Extra nesting
|
2001-10-29 15:45:24 +00:00
|
|
|
|
\author Andr<EFBFBD> P<EFBFBD>nitz
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
class MathBraceInset : public MathNestInset {
|
|
|
|
|
public:
|
|
|
|
|
///
|
|
|
|
|
MathBraceInset();
|
|
|
|
|
///
|
|
|
|
|
MathInset * clone() const;
|
|
|
|
|
///
|
2002-02-07 09:47:21 +00:00
|
|
|
|
MathBraceInset * asBraceInset() { return this; }
|
|
|
|
|
///
|
2002-05-30 07:09:54 +00:00
|
|
|
|
void draw(MathPainterInfo &, 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
|
|
|
|
///
|
2002-06-24 15:37:14 +00:00
|
|
|
|
void metrics(MathMetricsInfo & mi) 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
|