]> git.lyx.org Git - lyx.git/commitdiff
MathML for Stackrel.
authorRichard Heck <rgheck@comcast.net>
Thu, 31 Dec 2009 21:54:00 +0000 (21:54 +0000)
committerRichard Heck <rgheck@comcast.net>
Thu, 31 Dec 2009 21:54:00 +0000 (21:54 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32720 a592a061-630c-0410-9148-cb99ea01b6c8

development/HTML/HTML.notes
src/mathed/InsetMathStackrel.cpp
src/mathed/InsetMathStackrel.h

index 2db751d81d8cad3dd7ee83e1b67e928233c13022..f833550eaf07ce37bbd6760e4ecafdc5cf02bc4d 100644 (file)
@@ -57,7 +57,6 @@ Math
        - Box: There is a general issue here with text mode nesting. See the FIXME attached
                to the SetMode class.
        - Lefteqn
-       - Overset: Use <mover>.
        - Par?
        - Phantom: There is some support for this in MathML....
        - Ref: Needs to be deferred.
@@ -66,12 +65,10 @@ Math
        - Space: Needs checking.
        - SpecialChar: Needs checking.
        - Split
-       - Stackrel: Use <mover>, probably.
        - Substack: This is a stack of however many cells, all in a smaller style.
                Probably do something with <mover>, again.
        - Tabular: This is more or less a text-like table in math. Probably output it
                as a table, but set the font.
-       - Underset: Use <munder>.
        - XArrow: Contents above and below an arrow. Use...?
        - XYMatrix: Not sure how this differs from ordinary ones.
 
index 0a934f21d29424d293bf75e72f80e87f38ffbdca..84e2d95191c47da70c73369312afddd78b47d25d 100644 (file)
@@ -69,4 +69,9 @@ void InsetMathStackrel::normalize(NormalStream & os) const
 }
 
 
+void InsetMathStackrel::mathmlize(MathStream & ms) const
+{
+       ms << "<mover accent='false'>" << cell(1) << cell(0) << "</mover>";
+}
+
 } // namespace lyx
index 87397f3bbfed60b12ddd843873636c9adb7196e0..707985b4bea522808fbc9cf2f9d0d0468fb62d45 100644 (file)
@@ -31,12 +31,13 @@ public:
        void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
        void draw(PainterInfo & pi, int x, int y) const;
-
        ///
        void write(WriteStream & os) const;
        ///
        void normalize(NormalStream &) const;
        ///
+       void mathmlize(MathStream &) const;
+       ///
        InsetCode lyxCode() const { return MATH_STACKREL_CODE; }
 
 private: