From 5aff1283543bbdf34106dcc7ec518e63edecbfe9 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Tue, 30 Mar 2010 17:24:22 +0000 Subject: [PATCH] HTML for comments and colors. Color doesn't do anything at this point. The colors are given in LaTeX format. Do we know how to convert these to HTML format? git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33954 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/InsetMathColor.h | 5 +++++ src/mathed/InsetMathComment.cpp | 14 ++++++-------- src/mathed/InsetMathComment.h | 6 ++++-- 3 files changed, 15 insertions(+), 10 deletions(-) diff --git a/src/mathed/InsetMathColor.h b/src/mathed/InsetMathColor.h index 848a46fc7c..7c69dac8b7 100644 --- a/src/mathed/InsetMathColor.h +++ b/src/mathed/InsetMathColor.h @@ -37,6 +37,11 @@ public: void validate(LaTeXFeatures & features) const; /// void write(WriteStream & os) const; + /// FIXME XHTML For now, we do nothing with color. + void mathmlize(MathStream &) const {} + /// FIXME XHTML For now, we do nothing with color. + void htmlize(HtmlStream &) const {} + /// /// write normalized content void normalize(NormalStream & ns) const; /// diff --git a/src/mathed/InsetMathComment.cpp b/src/mathed/InsetMathComment.cpp index ebfba7a859..ec6d7cccd4 100644 --- a/src/mathed/InsetMathComment.cpp +++ b/src/mathed/InsetMathComment.cpp @@ -78,20 +78,18 @@ 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) << cell(1) << ETag("comment"); } +void InsetMathComment::htmlize(HtmlStream & os) const +{ + os << ""; +} + + void InsetMathComment::infoize(odocstream & os) const { os << "Comment"; diff --git a/src/mathed/InsetMathComment.h b/src/mathed/InsetMathComment.h index bb775a74cb..fa33c63091 100644 --- a/src/mathed/InsetMathComment.h +++ b/src/mathed/InsetMathComment.h @@ -40,12 +40,14 @@ public: /// void maple(MapleStream &) const; /// - void mathematica(MathematicaStream &) const; + void mathematica(MathematicaStream &) const {} /// - void octave(OctaveStream &) const; + void octave(OctaveStream &) const {} /// void mathmlize(MathStream &) const; /// + void htmlize(HtmlStream &) const; + /// void infoize(odocstream & os) const; /// InsetCode lyxCode() const { return MATH_COMMENT_CODE; } -- 2.39.2