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-06-28 10:25:20 +00:00
|
|
|
|
virtual MathInset * clone() const;
|
2001-06-25 00:06:33 +00:00
|
|
|
|
///
|
2001-07-26 06:56:43 +00:00
|
|
|
|
void metrics(MathStyles st);
|
2001-06-25 00:06:33 +00:00
|
|
|
|
///
|
|
|
|
|
void draw(Painter &, int x, int baseline);
|
|
|
|
|
///
|
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:
|
|
|
|
|
///
|
|
|
|
|
char const * verbose() const;
|
|
|
|
|
///
|
|
|
|
|
MathStyles style_;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|