]> git.lyx.org Git - lyx.git/blob - src/mathed/math_fontoldinset.h
Compile fix gcc 2.95 + stlport
[lyx.git] / src / mathed / math_fontoldinset.h
1 // -*- C++ -*-
2 /**
3  * \file math_fontoldinset.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author André Pönitz
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef MATH_FONTOLDINSET_H
13 #define MATH_FONTOLDINSET_H
14
15 #include "math_nestinset.h"
16
17
18 class latexkeys;
19
20 /// Old-style font changes
21 class MathFontOldInset : public MathNestInset {
22 public:
23         ///
24         explicit MathFontOldInset(latexkeys const * key);
25         ///
26         virtual std::auto_ptr<InsetBase> clone() const;
27         /// we are in text mode.
28         mode_type currentMode() const { return TEXT_MODE; }
29         /// we write extra braces in any case...
30         bool extraBraces() const { return true; }
31         ///
32         void metrics(MetricsInfo & mi, Dimension & dim) const;
33         ///
34         void draw(PainterInfo & pi, int x, int y) const;
35         ///
36         void metricsT(TextMetricsInfo const & mi, Dimension & dim) const;
37         ///
38         void drawT(TextPainter & pi, int x, int y) const;
39         ///
40         void write(WriteStream & os) const;
41         ///
42         void normalize(NormalStream &) const;
43         ///
44         void infoize(std::ostream & os) const;
45
46 private:
47         /// the font to be used on screen
48         latexkeys const * key_;
49 };
50 #endif