X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathComment.h;h=30e8cc4de4504446ddf3fe1d1c20b7de171dbe49;hb=4ed0312c51704780af1c452d3a82a84171b3725a;hp=7bec2fce6b10a938de29a269dc2765eecd0d5083;hpb=e89625ef28143545a511cdabc67dee8b7be1b216;p=lyx.git diff --git a/src/mathed/InsetMathComment.h b/src/mathed/InsetMathComment.h index 7bec2fce6b..30e8cc4de4 100644 --- a/src/mathed/InsetMathComment.h +++ b/src/mathed/InsetMathComment.h @@ -4,7 +4,7 @@ * This file is part of LyX, the document processor. * Licence details can be found in the file COPYING. * - * \author André Pönitz + * \author André Pönitz * * Full author contact details are available in file CREDITS. */ @@ -15,37 +15,46 @@ #include "InsetMathNest.h" -class latexkeys; +namespace lyx { /// Inset for end-of-line comments class InsetMathComment : public InsetMathNest { public: /// - InsetMathComment(); + explicit InsetMathComment(Buffer * buf); /// - explicit InsetMathComment(std::string const &); + explicit InsetMathComment(MathData const & ar); /// - void metrics(MetricsInfo & mi, Dimension & dim) const; + InsetMathComment(Buffer * buf, docstring const &); /// - void draw(PainterInfo & pi, int x, int y) const; + void metrics(MetricsInfo & mi, Dimension & dim) const override; /// - void metricsT(TextMetricsInfo const & mi, Dimension & dim) const; + void draw(PainterInfo & pi, int x, int y) const override; /// - void drawT(TextPainter & pi, int x, int y) const; + void metricsT(TextMetricsInfo const & mi, Dimension & dim) const override; + /// + void drawT(TextPainter & pi, int x, int y) const override; /// - void write(WriteStream & os) const; + void write(TeXMathStream & os) const override; + /// + void maple(MapleStream &) const override; + /// + void mathematica(MathematicaStream &) const override {} /// - void maple(MapleStream &) const; + void octave(OctaveStream &) const override {} /// - void mathematica(MathematicaStream &) const; + void mathmlize(MathMLStream &) const override; /// - void octave(OctaveStream &) const; + void htmlize(HtmlStream &) const override; /// - void mathmlize(MathMLStream &) const; + void infoize(odocstream & os) const override; /// - void infoize(std::ostream & os) const; + InsetCode lyxCode() const override { return MATH_COMMENT_CODE; } private: - virtual std::auto_ptr doClone() const; + Inset * clone() const override; }; + +} // namespace lyx + #endif