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_; }
41 int kerning() const { return kerning_; }
46 bool isOrdAlpha() const;
47 /// do we take scripts?
48 bool isScriptable() const;
49 /// do we take \limits or \nolimits?
50 bool takesLimits() const;
51 /// identifies SymbolInset as such
52 InsetMathSymbol const * asSymbolInset() const { return this; }
53 /// the LaTeX name of the symbol (without the backslash)
54 docstring name() const;
55 /// request "external features"
56 void validate(LaTeXFeatures & features) const;
59 void normalize(NormalStream &) const;
61 void maple(MapleStream &) const;
63 void maxima(MaximaStream &) const;
65 void mathematica(MathematicaStream &) const;
67 void mathmlize(MathStream &) const;
69 void octave(OctaveStream &) const;
71 void write(WriteStream & os) const;
73 void infoize2(odocstream & os) const;
76 virtual std::auto_ptr<InsetBase> doClone() const;
78 latexkeys const * sym_;
83 /// cached superscript kerning
86 mutable bool scriptable_;