3 * \file InsetMathFontOld.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS.
12 #ifndef MATH_FONTOLDINSET_H
13 #define MATH_FONTOLDINSET_H
15 #include "InsetMathNest.h"
20 /// Old-style font changes
21 class InsetMathFontOld : public InsetMathNest {
24 explicit InsetMathFontOld(latexkeys const * key);
25 /// we are in text mode.
26 mode_type currentMode() const { return TEXT_MODE; }
27 /// we write extra braces in any case...
28 bool extraBraces() const { return true; }
30 void metrics(MetricsInfo & mi, Dimension & dim) const;
32 void draw(PainterInfo & pi, int x, int y) const;
34 void metricsT(TextMetricsInfo const & mi, Dimension & dim) const;
36 void drawT(TextPainter & pi, int x, int y) const;
38 void write(WriteStream & os) const;
40 void normalize(NormalStream &) const;
42 void infoize(std::ostream & os) const;
45 virtual std::auto_ptr<InsetBase> doClone() const;
46 /// the font to be used on screen
47 latexkeys const * key_;