2001-10-29 15:45:24 +00:00
|
|
|
|
// -*- C++ -*-
|
|
|
|
|
#ifndef MATH_BRACEINSET_H
|
|
|
|
|
#define MATH_BRACEINSET_H
|
|
|
|
|
|
|
|
|
|
#include "math_nestinset.h"
|
|
|
|
|
#include "math_metricsinfo.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; }
|
|
|
|
|
///
|
2001-10-29 15:45:24 +00:00
|
|
|
|
void draw(Painter &, int x, int y) const;
|
|
|
|
|
///
|
2001-11-09 08:35:57 +00:00
|
|
|
|
void write(WriteStream & os) const;
|
2001-10-29 15:45:24 +00:00
|
|
|
|
/// write normalized content
|
2001-11-09 08:35:57 +00:00
|
|
|
|
void normalize(NormalStream &) const;
|
2001-10-29 15:45:24 +00:00
|
|
|
|
///
|
|
|
|
|
void metrics(MathMetricsInfo const & st) const;
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
/// width of brace character
|
|
|
|
|
mutable int wid_;
|
|
|
|
|
///
|
2002-03-19 16:55:58 +00:00
|
|
|
|
mutable LyXFont font_;
|
2001-10-29 15:45:24 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|