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