2 * \file InsetMathUnknown.C
3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
8 * Full author contact details are available in file CREDITS.
13 #include "InsetMathUnknown.h"
14 #include "MathSupport.h"
16 #include "MathMLStream.h"
17 #include "MathStream.h"
23 InsetMathUnknown::InsetMathUnknown(string const & nm, bool final, bool black)
24 : name_(nm), final_(final), black_(black)
28 auto_ptr<InsetBase> InsetMathUnknown::doClone() const
30 return auto_ptr<InsetBase>(new InsetMathUnknown(*this));
34 string InsetMathUnknown::name() const
40 void InsetMathUnknown::setName(string const & name)
46 void InsetMathUnknown::normalize(NormalStream & os) const
48 os << "[unknown " << name_ << ']';
52 void InsetMathUnknown::metrics(MetricsInfo & mi, Dimension & dim) const
55 mathed_string_dim(mi.base.font, lyx::from_utf8(name_), dim);
60 void InsetMathUnknown::draw(PainterInfo & pi, int x, int y) const
64 drawStrBlack(pi, x, y, lyx::from_utf8(name_));
66 drawStrRed(pi, x, y, lyx::from_utf8(name_));
67 setPosCache(pi, x, y);
71 void InsetMathUnknown::finalize()
77 bool InsetMathUnknown::final() const
83 void InsetMathUnknown::maple(MapleStream & os) const
89 void InsetMathUnknown::mathematica(MathematicaStream & os) const
95 void InsetMathUnknown::mathmlize(MathMLStream & os) const
97 os << MTag("mi") << name_ << ETag("mi");
101 void InsetMathUnknown::octave(OctaveStream & os) const