2001-06-25 00:06:33 +00:00
|
|
|
|
// -*- C++ -*-
|
|
|
|
|
#ifndef MATHSIZEINSET_H
|
|
|
|
|
#define MATHSIZEINSET_H
|
|
|
|
|
|
2001-08-03 17:10:22 +00:00
|
|
|
|
#include "math_nestinset.h"
|
2001-06-25 00:06:33 +00:00
|
|
|
|
#include "math_defs.h"
|
|
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
|
#pragma interface
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
/** An inset for \scriptsize etc
|
|
|
|
|
\author Andr<EFBFBD> Poenitz
|
|
|
|
|
*/
|
|
|
|
|
|
2001-08-03 17:10:22 +00:00
|
|
|
|
class MathSizeInset : public MathNestInset {
|
2001-06-25 00:06:33 +00:00
|
|
|
|
public:
|
|
|
|
|
///
|
|
|
|
|
explicit MathSizeInset(MathStyles st);
|
|
|
|
|
///
|
2001-08-06 17:20:26 +00:00
|
|
|
|
MathInset * clone() const;
|
2001-06-25 00:06:33 +00:00
|
|
|
|
///
|
2001-08-06 17:20:26 +00:00
|
|
|
|
void metrics(MathStyles st) const;
|
2001-06-25 00:06:33 +00:00
|
|
|
|
///
|
2001-08-06 17:20:26 +00:00
|
|
|
|
void draw(Painter &, int x, int y) const;
|
2001-06-25 00:06:33 +00:00
|
|
|
|
///
|
2001-07-26 06:56:43 +00:00
|
|
|
|
void write(std::ostream &, bool fragile) const;
|
2001-06-25 00:06:33 +00:00
|
|
|
|
///
|
2001-07-26 06:56:43 +00:00
|
|
|
|
void writeNormal(std::ostream &) const;
|
2001-06-25 00:06:33 +00:00
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
///
|
2001-08-08 17:26:30 +00:00
|
|
|
|
char const * name() const;
|
2001-06-25 00:06:33 +00:00
|
|
|
|
///
|
|
|
|
|
MathStyles style_;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|