#define MATHSIZEINSET_H
#include "math_nestinset.h"
-#include "math_defs.h"
#ifdef __GNUG__
#pragma interface
#endif
/** An inset for \scriptsize etc
- \author André Poenitz
+ \author André Pönitz
*/
+class latexkeys;
+
class MathSizeInset : public MathNestInset {
public:
///
- explicit MathSizeInset(MathStyles st);
+ explicit MathSizeInset(latexkeys const * l);
///
MathInset * clone() const;
///
- void metrics(MathStyles st) const;
+ void metrics(MathMetricsInfo & st) const;
+ ///
+ void draw(MathPainterInfo &, int x, int y) const;
///
- void draw(Painter &, int x, int y) const;
+ bool needsBraces() const { return false; }
+
///
- void write(std::ostream &, bool fragile) const;
+ void write(WriteStream & os) const;
///
- void writeNormal(std::ostream &) const;
+ void normalize(NormalStream &) const;
private:
///
- char const * name() const;
- ///
- MathStyles style_;
+ latexkeys const * key_;
};
#endif