]> git.lyx.org Git - lyx.git/blob - src/mathed/math_commentinset.h
float2string #4 (Spacing)
[lyx.git] / src / mathed / math_commentinset.h
1 // -*- C++ -*-
2 /**
3  * \file math_commentinset.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_COMMENTINSET_H
13 #define MATH_COMMENTINSET_H
14
15 #include "math_nestinset.h"
16
17
18 class latexkeys;
19
20 /// Inset for end-of-line comments
21 class MathCommentInset : public MathNestInset {
22 public:
23         ///
24         MathCommentInset();
25         ///
26         explicit MathCommentInset(std::string const &);
27         ///
28         void metrics(MetricsInfo & mi, Dimension & dim) const;
29         ///
30         void draw(PainterInfo & pi, int x, int y) const;
31         ///
32         void metricsT(TextMetricsInfo const & mi, Dimension & dim) const;
33         ///
34         void drawT(TextPainter & pi, int x, int y) const;
35
36         ///
37         void write(WriteStream & os) const;
38         ///
39         void maple(MapleStream &) const;
40         ///
41         void mathematica(MathematicaStream &) const;
42         ///
43         void octave(OctaveStream &) const;
44         ///
45         void mathmlize(MathMLStream &) const;
46         ///
47         void infoize(std::ostream & os) const;
48 private:
49         virtual std::auto_ptr<InsetBase> doClone() const;
50 };
51 #endif