#include "math_nestinset.h"
-#ifdef __GNUG__
-#pragma interface
-#endif
/** Inset for font changes
- \author André Pönitz
+ * \author André Pönitz
+ *
+ * Full author contact details are available in file CREDITS
*/
class latexkeys;
///
explicit MathFontInset(latexkeys const * key);
///
- MathInset * clone() const;
+ virtual std::auto_ptr<InsetBase> clone() const;
///
- void metrics(MathMetricsInfo & mi) const;
+ MathFontInset * asFontInset() { return this; }
///
- void draw(MathPainterInfo & pi, int x, int y) const;
+ MathFontInset const * asFontInset() const { return this; }
+ /// are we in math mode, text mode, or unsure?
+ mode_type currentMode() const;
///
- void metricsT(TextMetricsInfo const & mi) const;
+ string name() const;
///
- void drawT(TextPainter & pi, int x, int y) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const;
///
- void write(WriteStream & os) const;
+ void draw(PainterInfo & pi, int x, int y) const;
///
- void normalize(NormalStream &) const;
+ void metricsT(TextMetricsInfo const & mi, Dimension & dim) const;
+ ///
+ void drawT(TextPainter & pi, int x, int y) const;
///
void validate(LaTeXFeatures & features) const;
///