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;
47 /// request "external features"
48 void validate(LaTeXFeatures & features) const;
51 void normalize(NormalStream &) const;
53 void maple(MapleStream &) const;
55 void maxima(MaximaStream &) const;
57 void mathematica(MathematicaStream &) const;
59 void mathmlize(MathMLStream &) const;
61 void octave(OctaveStream &) const;
63 void write(WriteStream & os) const;
65 void infoize2(std::ostream & os) const;
69 latexkeys const * sym_;
73 mutable bool scriptable_;