]> git.lyx.org Git - features.git/commitdiff
HTML for comments and colors.
authorRichard Heck <rgheck@comcast.net>
Tue, 30 Mar 2010 17:24:22 +0000 (17:24 +0000)
committerRichard Heck <rgheck@comcast.net>
Tue, 30 Mar 2010 17:24:22 +0000 (17:24 +0000)
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
src/mathed/InsetMathComment.cpp
src/mathed/InsetMathComment.h

index 848a46fc7c53bdca9626699b191d5a091a2245bf..7c69dac8b70cae2148dd81b9122c515c4e672248 100644 (file)
@@ -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;
        ///
index ebfba7a859918e35fc00b064334ebcd47c80a6ac..ec6d7cccd43cc88380881f4a5265b84fb9e1dae8 100644 (file)
@@ -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 << "<!-- " << cell(0) << cell(1) << " -->";
+}
+
+
 void InsetMathComment::infoize(odocstream & os) const
 {
        os << "Comment";
index bb775a74cb13e82fa94455faf68b5e9cc61258aa..fa33c630914ec1ff251cf02dbfabfb8126eb6bbe 100644 (file)
@@ -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; }