From a7f7530bd21d123636868801458cf907903ba235 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Thu, 29 Jul 2010 15:48:01 +0000 Subject: [PATCH] MathML and HTML definitely can't handle MathUnknown!! git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35028 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/InsetMathUnknown.cpp | 10 ++++++++-- src/mathed/InsetMathUnknown.h | 2 ++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/mathed/InsetMathUnknown.cpp b/src/mathed/InsetMathUnknown.cpp index 2cd11c2a86..03c41462f0 100644 --- a/src/mathed/InsetMathUnknown.cpp +++ b/src/mathed/InsetMathUnknown.cpp @@ -86,9 +86,15 @@ void InsetMathUnknown::mathematica(MathematicaStream & os) const } -void InsetMathUnknown::mathmlize(MathStream & os) const +void InsetMathUnknown::mathmlize(MathStream &) const { - os << MTag("mi") << name_ << ETag("mi"); + throw MathExportException(); +} + + +void InsetMathUnknown::htmlize(HtmlStream &) const +{ + throw MathExportException(); } diff --git a/src/mathed/InsetMathUnknown.h b/src/mathed/InsetMathUnknown.h index b43bcfd672..0436be5df6 100644 --- a/src/mathed/InsetMathUnknown.h +++ b/src/mathed/InsetMathUnknown.h @@ -52,6 +52,8 @@ public: /// void mathmlize(MathStream &) const; /// + void htmlize(HtmlStream &) const; + /// void octave(OctaveStream &) const; /// void finalize(); -- 2.39.5