]> git.lyx.org Git - lyx.git/commitdiff
Mostly comments about InsetMathSplit, which more or less works.
authorRichard Heck <rgheck@comcast.net>
Thu, 31 Dec 2009 23:28:19 +0000 (23:28 +0000)
committerRichard Heck <rgheck@comcast.net>
Thu, 31 Dec 2009 23:28:19 +0000 (23:28 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32727 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/InsetMathSplit.cpp
src/mathed/InsetMathSplit.h

index 3f7478321e5766054cb05a1bd5d290b0cc427c4a..7efd406b77ba8d5bc3a2ef9ec1c7d65d1c536177 100644 (file)
@@ -111,6 +111,20 @@ void InsetMathSplit::infoize(odocstream & os) const
 }
 
 
+void InsetMathSplit::mathmlize(MathStream & ms) const
+{
+       // split, gathered, aligned, alignedat
+       // At the moment, those seem to display just fine without any
+       // special treatment.
+       // FIXME
+       // lgathered and rgathered could use the proper alignment, but
+       // it's not clear how to do that without copying a lot of code.
+       // One idea would be to wrap the table in an <mrow>, and set the
+       // alignment there via CSS.
+       InsetMathGrid::mathmlize(ms);
+}
+
+
 void InsetMathSplit::validate(LaTeXFeatures & features) const
 {
        if (name_ == "split" || name_ == "gathered" || name_ == "aligned" ||
index 123f9258690e28a099c1c817430368cddab264a8..447aa0f4dd1a7ccdacceaa30a2e7fe8c2b43ad56 100644 (file)
@@ -33,6 +33,8 @@ public:
        ///
        void infoize(odocstream & os) const;
        ///
+       void mathmlize(MathStream &) const;
+       ///
        void validate(LaTeXFeatures & features) const;
        ///
        int defaultColSpace(col_type) { return 0; }