2001-06-25 00:06:33 +00:00
|
|
|
|
// -*- C++ -*-
|
|
|
|
|
#ifndef MATHSIZEINSET_H
|
|
|
|
|
#define MATHSIZEINSET_H
|
|
|
|
|
|
|
|
|
|
#include "math_inset.h"
|
|
|
|
|
#include "math_defs.h"
|
|
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
|
#pragma interface
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
/** An inset for \scriptsize etc
|
|
|
|
|
\author Andr<EFBFBD> Poenitz
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
class MathSizeInset : public MathInset {
|
|
|
|
|
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
|
|
|
|
///
|
|
|
|
|
void Metrics(MathStyles st);
|
|
|
|
|
///
|
|
|
|
|
void draw(Painter &, int x, int baseline);
|
|
|
|
|
///
|
|
|
|
|
void Write(std::ostream &, bool fragile) const;
|
|
|
|
|
///
|
|
|
|
|
void WriteNormal(std::ostream &) const;
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
///
|
|
|
|
|
char const * verbose() const;
|
|
|
|
|
///
|
|
|
|
|
MathStyles style_;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|