]> git.lyx.org Git - lyx.git/blob - src/mathed/InsetMathString.h
use FileName::isDirectory()
[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 namespace lyx {
19
20 /** Some collection of chars with similar properties
21  *  mainly for math-extern
22  */
23
24 class InsetMathString : public InsetMath {
25 public:
26         ///
27         explicit InsetMathString(docstring const & s);
28         ///
29         void metrics(MetricsInfo & mi, Dimension & dim) const;
30         ///
31         void draw(PainterInfo & pi, int x, int y) const;
32         ///
33         docstring str() const { return str_; }
34         ///
35         InsetMathString * asStringInset() { return this; }
36         ///
37         InsetMathString const * asStringInset() const { return this; }
38
39         ///
40         void normalize(NormalStream &) const;
41         ///
42         void octave(OctaveStream &) const;
43         ///
44         void maple(MapleStream &) const;
45         ///
46         void mathematica(MathematicaStream &) const;
47         ///
48         void mathmlize(MathStream &) const;
49         ///
50         void write(WriteStream & os) const;
51
52 private:
53         virtual Inset * clone() const;
54         /// the string
55         docstring str_;
56 };
57
58 } // namespace lyx
59
60 #endif