]> git.lyx.org Git - lyx.git/blob - src/mathed/InsetMathString.h
delete unneeded BufferView.h declaration.
[lyx.git] / src / mathed / InsetMathString.h
1 // -*- C++ -*-
2 /**
3  * \file InsetMathString.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_STRINGINSET_H
13 #define MATH_STRINGINSET_H
14
15 #include "InsetMath.h"
16
17
18 /** Some collection of chars with similar properties
19  *  mainly for math-extern
20  */
21
22 class InsetMathString : public InsetMath {
23 public:
24         ///
25         explicit InsetMathString(std::string const & s);
26         ///
27         void metrics(MetricsInfo & mi, Dimension & dim) const;
28         ///
29         void draw(PainterInfo & pi, int x, int y) const;
30         ///
31         std::string str() const { return str_; }
32         ///
33         InsetMathString * asStringInset() { return this; }
34         ///
35         InsetMathString const * asStringInset() const { return this; }
36
37         ///
38         void normalize(NormalStream &) const;
39         ///
40         void octave(OctaveStream &) const;
41         ///
42         void maple(MapleStream &) const;
43         ///
44         void mathematica(MathematicaStream &) const;
45         ///
46         void mathmlize(MathMLStream &) const;
47         ///
48         void write(WriteStream & os) const;
49
50 private:
51         virtual std::auto_ptr<InsetBase> doClone() const;
52         /// the string
53         std::string str_;
54 };
55 #endif