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

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

index 21beba0e914557ef0e0c4984663bc6afbb2ddce2..3760b72a300065ab238ee2154090a496a284cb34 100644 (file)
@@ -54,7 +54,6 @@ Math
   isues, and not all the insets work. Here are the ones I know still need work:
        - AMSArray
        - Array
-       - BoldSymbol: Should be easy.
        - Box
        - Cases
        - Diff: Code exists, but I do not know if it is right.
index 7382dc4dae30eaf6d1c927369cb789ba734a9f72..dd41bb03287bdc85f4ba013d09109b023da752fa 100644 (file)
@@ -106,6 +106,12 @@ void InsetMathBoldSymbol::write(WriteStream & os) const
 }
 
 
+void InsetMathBoldSymbol::mathmlize(MathStream & os) const
+{
+       os << "<mstyle mathvariant='bold'>" << cell(0) << "</mstyle>";
+}
+
+
 void InsetMathBoldSymbol::infoize(odocstream & os) const
 {
        switch (kind_) {
index 77d27bc965cb95a26650afffd9c823c2b17eff8b..6189cefeab0cc0f912ab097255d5bfa20d2527b6 100644 (file)
@@ -17,7 +17,6 @@
 
 namespace lyx {
 
-
 /// Inset for AMSTeX's \boldsymbol
 class InsetMathBoldSymbol : public InsetMathNest {
 public:
@@ -43,6 +42,8 @@ public:
        ///
        void write(WriteStream & os) const;
        ///
+       void mathmlize(MathStream &) const;
+       ///
        void infoize(odocstream & os) const;
        ///
        InsetCode lyxCode() const { return MATH_BOLDSYMBOL_CODE; }