]> git.lyx.org Git - lyx.git/blob - src/mathed/math_fontinset.h
fixes for \xxalignat and old style font changes
[lyx.git] / src / mathed / math_fontinset.h
1 // -*- C++ -*-
2 #ifndef MATH_FONTINSET_H
3 #define MATH_FONTINSET_H
4
5 #include "math_nestinset.h"
6
7 #ifdef __GNUG__
8 #pragma interface
9 #endif
10
11 /** Inset for font changes
12     \author André Pönitz
13  */
14
15 class latexkeys;
16
17 class MathFontInset : public MathNestInset {
18 public:
19         ///
20         explicit MathFontInset(latexkeys const * key);
21         ///
22         MathInset * clone() const;
23         ///
24         void metrics(MathMetricsInfo & mi) const;
25         ///
26         void draw(MathPainterInfo & pi, int x, int y) const;
27         ///
28         void metricsT(TextMetricsInfo const & mi) const;
29         ///
30         void drawT(TextPainter & pi, int x, int y) const;
31         ///
32         void write(WriteStream & os) const;
33         ///
34         void normalize(NormalStream &) const;
35         ///
36         void validate(LaTeXFeatures & features) const;
37         ///
38         void infoize(std::ostream & os) const;
39
40 private:
41         /// the font to be used on screen
42         latexkeys const * key_;
43 };
44 #endif