]> git.lyx.org Git - lyx.git/blob - src/mathed/math_stringinset.h
start native C++ support for Octave, Maple and MathML
[lyx.git] / src / mathed / math_stringinset.h
1 // -*- C++ -*-
2 #ifndef MATH_STRINGINSET_H
3 #define MATH_STRINGINSET_H
4
5 #include "math_inset.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 MathInset {
16 public:
17         ///
18         MathStringInset(string const & s, MathTextCodes t);
19         ///
20         MathInset * clone() const;
21         ///
22         void metrics(MathMetricsInfo const & st) const;
23         ///
24         void draw(Painter &, int x, int y) const;
25         ///
26         void write(MathWriteInfo & os) const;
27         ///
28         void writeNormal(std::ostream &) const;
29         /// 
30         int ascent() const;
31         ///
32         int descent() const;
33         ///
34         int width() const;
35         ///
36         string & str();
37         ///
38         string octavize() const;
39         ///
40         string maplize() const;
41
42 private:
43         /// the string
44         string str_;
45         /// the font to be used on screen
46         MathTextCodes code_;
47         ///
48         mutable MathMetricsInfo mi_;
49 };
50 #endif