3 * \file InsetMathUnknown.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS.
12 #ifndef MATH_UNKNOWNINSET_H
13 #define MATH_UNKNOWNINSET_H
15 #include "InsetMath.h"
21 /// LaTeX names for objects that we really don't know
22 class InsetMathUnknown : public InsetMath {
25 explicit InsetMathUnknown(docstring const & name,
26 bool final = true, bool black = false);
28 void metrics(MetricsInfo & mi, Dimension & dim) const;
30 void draw(PainterInfo & pi, int x, int y) const;
32 void setName(docstring const & name);
34 docstring name() const;
35 /// identifies UnknownInsets
36 InsetMathUnknown const * asUnknownInset() const { return this; }
37 /// identifies UnknownInsets
38 InsetMathUnknown * asUnknownInset() { return this; }
41 void normalize(NormalStream &) const;
43 void maple(MapleStream &) const;
45 void mathematica(MathematicaStream &) const;
47 void mathmlize(MathStream &) const;
49 void octave(OctaveStream &) const;
55 int kerning(BufferView const *) const { return kerning_; }
57 virtual Inset * clone() const;
60 /// are we finished creating the name?