]> git.lyx.org Git - lyx.git/blob - src/mathed/math_stringinset.h
fix #1073
[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
8 /** Some collection of chars with similar properties
9  *  maily for math-extern
10  *  \author André Pönitz
11  *
12  * Full author contact details are available in file CREDITS
13  */
14
15 class MathStringInset : public MathDimInset {
16 public:
17         ///
18         explicit MathStringInset(string const & s);
19         ///
20         MathInset * clone() const;
21         ///
22         void metrics(MetricsInfo & mi) const;
23         ///
24         void draw(PainterInfo & pi, int x, int y) const;
25         ///
26         string str() const { return str_; }
27         ///
28         MathStringInset * asStringInset() { return this; }
29
30         ///
31         void normalize(NormalStream &) const;
32         ///
33         void octave(OctaveStream &) const;
34         ///
35         void maple(MapleStream &) const;
36         ///
37         void mathematica(MathematicaStream &) const;
38         ///
39         void mathmlize(MathMLStream &) const;
40         ///
41         void write(WriteStream & os) const;
42
43 private:
44         /// the string
45         string str_;
46 };
47 #endif