3 * \file InsetMathSymbol.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_SYMBOLINSET_H
13 #define MATH_SYMBOLINSET_H
15 #include "InsetMath.h"
23 /** "normal" symbols that don't take limits and don't grow in displayed
26 class InsetMathSymbol : public InsetMath {
29 explicit InsetMathSymbol(latexkeys const * l);
31 explicit InsetMathSymbol(char const * name);
33 explicit InsetMathSymbol(docstring const & name);
35 bool metrics(MetricsInfo & mi, Dimension & dim) const;
37 void draw(PainterInfo &, int x, int y) const;
39 int width() const { return width_; }
43 /// do we take scripts?
44 bool isScriptable() const;
45 /// do we take \limits or \nolimits?
46 bool takesLimits() const;
47 /// identifies SymbolInset as such
48 InsetMathSymbol const * asSymbolInset() const { return this; }
49 /// the LaTeX name of the symbol (without the backslash)
50 docstring name() const;
51 /// request "external features"
52 void validate(LaTeXFeatures & features) const;
55 void normalize(NormalStream &) const;
57 void maple(MapleStream &) const;
59 void maxima(MaximaStream &) const;
61 void mathematica(MathematicaStream &) const;
63 void mathmlize(MathStream &) const;
65 void octave(OctaveStream &) const;
67 void write(WriteStream & os) const;
69 void infoize2(odocstream & os) const;
72 virtual std::auto_ptr<InsetBase> doClone() const;
74 latexkeys const * sym_;
80 mutable bool scriptable_;