From: Richard Heck Date: Wed, 31 Mar 2010 20:49:21 +0000 (+0000) Subject: HTML for special characters. X-Git-Tag: 2.0.0~3593 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=ae69c7c63c95f7bace077e9831dd27464a416412;p=features.git HTML for special characters. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33987 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/mathed/InsetMathSpecialChar.cpp b/src/mathed/InsetMathSpecialChar.cpp index 2c600d0c2b..a1f9dd40e9 100644 --- a/src/mathed/InsetMathSpecialChar.cpp +++ b/src/mathed/InsetMathSpecialChar.cpp @@ -160,4 +160,17 @@ void InsetMathSpecialChar::mathmlize(MathStream & ms) const } +void InsetMathSpecialChar::htmlize(HtmlStream & ms) const +{ + switch (char_) { + case '&': + ms << "&"; + break; + default: + ms.os().put(char_); + break; + } +} + + } // namespace lyx diff --git a/src/mathed/InsetMathSpecialChar.h b/src/mathed/InsetMathSpecialChar.h index c672b504f6..f24acfb6f9 100644 --- a/src/mathed/InsetMathSpecialChar.h +++ b/src/mathed/InsetMathSpecialChar.h @@ -46,6 +46,8 @@ public: void mathematica(MathematicaStream &) const; /// void mathmlize(MathStream & ms) const; + /// + void htmlize(HtmlStream & ms) const; /// identifies SpecialChar insets InsetMathSpecialChar const * asSpecialCharInset() const { return this; } ///