X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathUnknown.cpp;h=926e7dd5d5ced43f457f79a3585bf8d0c866eae9;hb=28be7d552f62cc02fa86d7f79201d089bfb2d7b5;hp=2cd11c2a8666ed1f537ab58ac6e026fcbe3b6552;hpb=c060a85d811674888c31db9ee0407d8b5cc37b6e;p=lyx.git diff --git a/src/mathed/InsetMathUnknown.cpp b/src/mathed/InsetMathUnknown.cpp index 2cd11c2a86..926e7dd5d5 100644 --- a/src/mathed/InsetMathUnknown.cpp +++ b/src/mathed/InsetMathUnknown.cpp @@ -11,10 +11,12 @@ #include #include "InsetMathUnknown.h" + #include "MathSupport.h" #include "MathAtom.h" #include "MathStream.h" -#include "MathStream.h" + +#include "MetricsInfo.h" #include "frontends/Painter.h" @@ -23,7 +25,8 @@ namespace lyx { InsetMathUnknown::InsetMathUnknown(docstring const & nm, docstring const & selection, bool final, bool black) - : name_(nm), final_(final), black_(black), selection_(selection) + : name_(nm), final_(final), black_(black), kerning_(0), + selection_(selection) {} @@ -47,7 +50,7 @@ void InsetMathUnknown::normalize(NormalStream & os) const void InsetMathUnknown::metrics(MetricsInfo & mi, Dimension & dim) const { - mathed_string_dim(mi.base.font, name_, dim); + metricsStrRedBlack(mi, dim, name_); docstring::const_reverse_iterator rit = name_.rbegin(); kerning_ = mathed_char_kerning(mi.base.font, *rit); } @@ -86,9 +89,15 @@ void InsetMathUnknown::mathematica(MathematicaStream & os) const } -void InsetMathUnknown::mathmlize(MathStream & os) const +void InsetMathUnknown::mathmlize(MathStream &) const +{ + throw MathExportException(); +} + + +void InsetMathUnknown::htmlize(HtmlStream &) const { - os << MTag("mi") << name_ << ETag("mi"); + throw MathExportException(); }