]> git.lyx.org Git - lyx.git/blob - src/mathed/math_commentinset.h
macro rework
[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         virtual std::auto_ptr<InsetBase> clone() const;
29         ///
30         void metrics(MetricsInfo & mi, Dimension & dim) const;
31         ///
32         void draw(PainterInfo & pi, int x, int y) const;
33         ///
34         void metricsT(TextMetricsInfo const & mi, Dimension & dim) const;
35         ///
36         void drawT(TextPainter & pi, int x, int y) const;
37
38         ///
39         void write(WriteStream & os) const;
40         ///
41         void maple(MapleStream &) const;
42         ///
43         void mathematica(MathematicaStream &) const;
44         ///
45         void octave(OctaveStream &) const;
46         ///
47         void mathmlize(MathMLStream &) const;
48         ///
49         void infoize(std::ostream & os) const;
50 };
51 #endif