3 * \file math_symbolinset.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 "math_inset.h"
20 /** "normal" symbols that don't take limits and don't grow in displayed
23 class MathSymbolInset : public MathInset {
26 explicit MathSymbolInset(latexkeys const * l);
28 explicit MathSymbolInset(char const * name);
30 explicit MathSymbolInset(std::string const & name);
32 virtual std::auto_ptr<InsetBase> clone() const;
34 void metrics(MetricsInfo & mi, Dimension & dim) const;
36 void draw(PainterInfo &, int x, int y) const;
39 /// do we take scripts?
40 bool isScriptable() const;
41 /// do we take \limits or \nolimits?
42 bool takesLimits() const;
43 /// identifies SymbolInset as such
44 MathSymbolInset const * asSymbolInset() const { return this; }
45 /// the LaTeX name of the symbol (without the backslash)
46 std::string name() const;
48 bool match(MathAtom const &) const;
49 /// request "external features"
50 void validate(LaTeXFeatures & features) const;
53 void normalize(NormalStream &) const;
55 void maple(MapleStream &) const;
57 void maxima(MaximaStream &) const;
59 void mathematica(MathematicaStream &) const;
61 void mathmlize(MathMLStream &) const;
63 void octave(OctaveStream &) const;
65 void write(WriteStream & os) const;
67 void infoize2(std::ostream & os) const;
71 latexkeys const * sym_;
75 mutable bool scriptable_;