]> git.lyx.org Git - lyx.git/blob - src/mathed/math_fontoldinset.h
Jean-Marc's fix for wrong descent
[lyx.git] / src / mathed / math_fontoldinset.h
1 // -*- C++ -*-
2 #ifndef MATH_FONTOLDINSET_H
3 #define MATH_FONTOLDINSET_H
4
5 #include "math_nestinset.h"
6
7
8 /** Old-style font changes
9  *  \author André Pönitz
10  *
11  * Full author contact details are available in file CREDITS
12  */
13
14 class latexkeys;
15
16 class MathFontOldInset : public MathNestInset {
17 public:
18         ///
19         explicit MathFontOldInset(latexkeys const * key);
20         ///
21         MathInset * clone() const;
22         /// we are in text mode.
23         mode_type currentMode() const { return TEXT_MODE; }
24         /// we write extra braces in any case...
25         bool extraBraces() const { return true; }
26         ///
27         void metrics(MathMetricsInfo & mi) const;
28         ///
29         void draw(MathPainterInfo & pi, int x, int y) const;
30         ///
31         void metricsT(TextMetricsInfo const & mi) const;
32         ///
33         void drawT(TextPainter & pi, int x, int y) const;
34         ///
35         void write(WriteStream & os) const;
36         ///
37         void normalize(NormalStream &) const;
38         ///
39         void infoize(std::ostream & os) const;
40
41 private:
42         /// the font to be used on screen
43         latexkeys const * key_;
44 };
45 #endif