]> git.lyx.org Git - lyx.git/blob - src/mathed/math_stringinset.h
fonts as insets
[lyx.git] / src / mathed / math_stringinset.h
1 // -*- C++ -*-
2 #ifndef MATH_STRINGINSET_H
3 #define MATH_STRINGINSET_H
4
5 #include "math_diminset.h"
6
7 #ifdef __GNUG__
8 #pragma interface
9 #endif
10
11 /** Some cllection of chars with similar properties
12     \author André Pönitz
13  */
14
15 class MathStringInset : public MathDimInset {
16 public:
17         ///
18         MathStringInset();
19         ///
20         explicit MathStringInset(string const & s);
21         ///
22         MathInset * clone() const;
23         ///
24         void metrics(MathMetricsInfo & st) const;
25         ///
26         void draw(MathPainterInfo &, int x, int y) const;
27         ///
28         string str() const { return str_; }
29         ///
30         MathStringInset * asStringInset() { return this; }
31
32         ///
33         void normalize(NormalStream &) const;
34         ///
35         void octavize(OctaveStream &) const;
36         ///
37         void maplize(MapleStream &) const;
38         ///
39         void mathmlize(MathMLStream &) const;
40         ///
41         void write(WriteStream & os) const;
42
43 public:
44         /// the string
45         string str_;
46 };
47 #endif