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 docstring const & selection = docstring(),
27 bool final = true, bool black = false);
29 void metrics(MetricsInfo & mi, Dimension & dim) const;
31 void draw(PainterInfo & pi, int x, int y) const;
33 void setName(docstring const & name);
35 docstring name() const;
38 docstring const & selection() const { return selection_; }
40 /// identifies UnknownInsets
41 InsetMathUnknown const * asUnknownInset() const { return this; }
42 /// identifies UnknownInsets
43 InsetMathUnknown * asUnknownInset() { return this; }
46 void normalize(NormalStream &) const;
48 void maple(MapleStream &) const;
50 void mathematica(MathematicaStream &) const;
52 void mathmlize(MathStream &) const;
54 void octave(OctaveStream &) const;
60 int kerning(BufferView const *) const { return kerning_; }
63 virtual Inset * clone() const;
66 /// are we finished creating the name?
72 /// the selection which was replaced by this