X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathComment.cpp;h=096cf38752d80371d7b6941d9ebad25459205e02;hb=63c193afeff44f6f4678fed1ea5083b8bc0664a2;hp=7ecdc2da2c19ca11d72db1571851f0989917c2c5;hpb=237c132c1e6fc720b87f2fea6deb18a8395cbe0a;p=lyx.git diff --git a/src/mathed/InsetMathComment.cpp b/src/mathed/InsetMathComment.cpp index 7ecdc2da2c..096cf38752 100644 --- a/src/mathed/InsetMathComment.cpp +++ b/src/mathed/InsetMathComment.cpp @@ -3,7 +3,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. */ @@ -11,21 +11,23 @@ #include #include "InsetMathComment.h" + #include "MathData.h" #include "MathStream.h" #include "MathSupport.h" -#include "support/std_ostream.h" + +#include namespace lyx { -InsetMathComment::InsetMathComment() - : InsetMathNest(1) +InsetMathComment::InsetMathComment(Buffer * buf) + : InsetMathNest(buf, 1) {} -InsetMathComment::InsetMathComment(docstring const & str) - : InsetMathNest(1) +InsetMathComment::InsetMathComment(Buffer * buf, docstring const & str) + : InsetMathNest(buf, 1) { // FIXME UNICODE asArray(str, cell(0)); @@ -42,7 +44,6 @@ void InsetMathComment::metrics(MetricsInfo & mi, Dimension & dim) const { cell(0).metrics(mi, dim); metricsMarkers(dim); - dim_ = dim; } @@ -77,17 +78,15 @@ void InsetMathComment::maple(MapleStream & os) const } -void InsetMathComment::mathematica(MathematicaStream &) const -{} - - -void InsetMathComment::octave(OctaveStream &) const -{} +void InsetMathComment::mathmlize(MathStream & os) const +{ + os << MTag("comment") << cell(0) << ETag("comment"); +} -void InsetMathComment::mathmlize(MathStream & os) const +void InsetMathComment::htmlize(HtmlStream & os) const { - os << MTag("comment") << cell(0) << cell(1) << ETag("comment"); + os << ""; }