#define MATHSIZEINSET_H
#include "math_nestinset.h"
-#include "math_defs.h"
+#include "metricsinfo.h"
-#ifdef __GNUG__
-#pragma interface
-#endif
/** An inset for \scriptsize etc
- \author André Poenitz
+ * \author André Pönitz
+ *
+ * Full author contact details are available in file CREDITS
*/
+class latexkeys;
+
class MathSizeInset : public MathNestInset {
public:
///
- explicit MathSizeInset(MathStyles st);
+ explicit MathSizeInset(latexkeys const * l);
///
- MathInset * clone() const;
+ virtual std::auto_ptr<InsetBase> clone() const;
+ /// we write extra braces in any case...
+ bool extraBraces() const { return true; }
///
- void metrics(MathStyles st) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const;
///
- void draw(Painter &, int x, int y) const;
+ void draw(PainterInfo &, int x, int y) const;
+
///
- void write(std::ostream &, bool fragile) const;
+ void write(WriteStream & os) const;
///
- void writeNormal(std::ostream &) const;
+ void normalize(NormalStream &) const;
+ ///
+ void infoize(std::ostream & os) const;
private:
///
- char const * name() const;
- ///
- MathStyles style_;
+ latexkeys const * key_;
+ ///
+ Styles const style_;
};
#endif