A bit more re-organization.
[lyx.git] / src / mathed / InsetMathString.h
blob9f94a7457fe986f056a7054fe1f159e5ceded9c4
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.
7 * \author André Pönitz
9 * Full author contact details are available in file CREDITS.
12 #ifndef MATH_STRINGINSET_H
13 #define MATH_STRINGINSET_H
15 #include "InsetMath.h"
17 #include "support/docstring.h"
20 namespace lyx {
22 /** Some collection of chars with similar properties
23 * mainly for math-extern
26 class InsetMathString : public InsetMath {
27 public:
28 ///
29 explicit InsetMathString(docstring const & s);
30 ///
31 void metrics(MetricsInfo & mi, Dimension & dim) const;
32 ///
33 void draw(PainterInfo & pi, int x, int y) const;
34 ///
35 docstring str() const { return str_; }
36 ///
37 InsetMathString * asStringInset() { return this; }
38 ///
39 InsetMathString const * asStringInset() const { return this; }
41 ///
42 void normalize(NormalStream &) const;
43 ///
44 void octave(OctaveStream &) const;
45 ///
46 void maple(MapleStream &) const;
47 ///
48 void mathematica(MathematicaStream &) const;
49 ///
50 void mathmlize(MathStream &) const;
51 ///
52 void write(WriteStream & os) const;
53 ///
54 InsetCode lyxCode() const { return MATH_STRING_CODE; }
56 private:
57 virtual Inset * clone() const;
58 /// the string
59 docstring str_;
62 } // namespace lyx
64 #endif