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 "InsetMathDim.h"
18 /// LaTeX names for objects that we really don't know
19 class InsetMathUnknown : public InsetMathDim {
22 explicit InsetMathUnknown(std::string const & name,
23 bool final = true, bool black = false);
25 void metrics(MetricsInfo & mi, Dimension & dim) const;
27 void draw(PainterInfo & pi, int x, int y) const;
29 void setName(std::string const & name);
31 std::string name() const;
32 /// identifies UnknownInsets
33 InsetMathUnknown const * asUnknownInset() const { return this; }
34 /// identifies UnknownInsets
35 InsetMathUnknown * asUnknownInset() { return this; }
38 void normalize(NormalStream &) const;
40 void maple(MapleStream &) const;
42 void mathematica(MathematicaStream &) const;
44 void mathmlize(MathMLStream &) const;
46 void octave(OctaveStream &) const;
52 virtual std::auto_ptr<InsetBase> doClone() const;
55 /// are we finished creating the name?