A bit more re-organization.
[lyx.git] / src / mathed / InsetMathComment.h
blobbb775a74cb13e82fa94455faf68b5e9cc61258aa
1 // -*- C++ -*-
2 /**
3 * \file InsetMathComment.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_COMMENTINSET_H
13 #define MATH_COMMENTINSET_H
15 #include "InsetMathNest.h"
18 namespace lyx {
20 class latexkeys;
22 /// Inset for end-of-line comments
23 class InsetMathComment : public InsetMathNest {
24 public:
25 ///
26 InsetMathComment(Buffer * buf);
27 ///
28 explicit InsetMathComment(Buffer * buf, docstring 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;
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(MathStream &) const;
48 ///
49 void infoize(odocstream & os) const;
50 ///
51 InsetCode lyxCode() const { return MATH_COMMENT_CODE; }
52 private:
53 virtual Inset * clone() const;
56 } // namespace lyx
58 #endif