2002-07-09 09:46:31 +00:00
|
|
|
|
// -*- C++ -*-
|
|
|
|
|
#ifndef MATH_ENVINSET_H
|
|
|
|
|
#define MATH_ENVINSET_H
|
|
|
|
|
|
|
|
|
|
#include "math_nestinset.h"
|
|
|
|
|
#include "math_metricsinfo.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** Environtments <20> la \begin{something}...\end{something}
|
2002-09-11 08:26:02 +00:00
|
|
|
|
* \author Andr<EFBFBD> P<EFBFBD>nitz
|
|
|
|
|
*
|
|
|
|
|
* Full author contact details are available in file CREDITS
|
2002-07-09 09:46:31 +00:00
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
class MathEnvInset : public MathNestInset {
|
|
|
|
|
public:
|
|
|
|
|
///
|
|
|
|
|
MathEnvInset(string const & name_);
|
|
|
|
|
///
|
|
|
|
|
MathInset * clone() const;
|
|
|
|
|
///
|
|
|
|
|
void draw(MathPainterInfo &, int x, int y) const;
|
|
|
|
|
///
|
|
|
|
|
void write(WriteStream & os) const;
|
|
|
|
|
/// write normalized content
|
|
|
|
|
void normalize(NormalStream & ns) const;
|
|
|
|
|
///
|
|
|
|
|
void metrics(MathMetricsInfo & mi) const;
|
|
|
|
|
///
|
|
|
|
|
void infoize(std::ostream & os) const;
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
/// name of that environment
|
|
|
|
|
string name_;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|