2001-02-13 13:28:32 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
#ifndef MATH_DELIMINSET_H
|
|
|
|
#define MATH_DELIMINSET_H
|
|
|
|
|
|
|
|
#include "math_parinset.h"
|
|
|
|
|
2001-02-16 09:25:43 +00:00
|
|
|
/** A delimiter
|
|
|
|
\author Alejandro Aguilar Sierra
|
|
|
|
*/
|
|
|
|
class MathDelimInset : public MathParInset {
|
2001-02-13 13:28:32 +00:00
|
|
|
public:
|
|
|
|
///
|
|
|
|
MathDelimInset(int, int, short st = LM_ST_TEXT);
|
|
|
|
///
|
|
|
|
MathedInset * Clone();
|
|
|
|
///
|
|
|
|
void draw(Painter &, int, int);
|
|
|
|
///
|
|
|
|
void Write(std::ostream &, bool fragile);
|
|
|
|
///
|
|
|
|
void Metrics();
|
2001-02-16 09:25:43 +00:00
|
|
|
private:
|
2001-02-13 13:28:32 +00:00
|
|
|
///
|
2001-02-16 09:25:43 +00:00
|
|
|
int left_;
|
2001-02-13 13:28:32 +00:00
|
|
|
///
|
2001-02-16 09:25:43 +00:00
|
|
|
int right_;
|
2001-02-13 13:28:32 +00:00
|
|
|
///
|
2001-02-16 09:25:43 +00:00
|
|
|
int dw_;
|
2001-02-13 13:28:32 +00:00
|
|
|
///
|
2001-02-16 09:25:43 +00:00
|
|
|
int dh_;
|
2001-02-13 13:28:32 +00:00
|
|
|
};
|
|
|
|
#endif
|