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 void metrics(MetricsInfo & mi, Dimension & dim) const;
34 void draw(PainterInfo &, int x, int y) const;
36 int width() const { return width_; }
40 /// do we take scripts?
41 bool isScriptable() const;
42 /// do we take \limits or \nolimits?
43 bool takesLimits() const;
44 /// identifies SymbolInset as such
45 MathSymbolInset const * asSymbolInset() const { return this; }
46 /// the LaTeX name of the symbol (without the backslash)
47 std::string name() const;
48 /// request "external features"
49 void validate(LaTeXFeatures & features) const;
52 void normalize(NormalStream &) const;
54 void maple(MapleStream &) const;
56 void maxima(MaximaStream &) const;
58 void mathematica(MathematicaStream &) const;
60 void mathmlize(MathMLStream &) const;
62 void octave(OctaveStream &) const;
64 void write(WriteStream & os) const;
66 void infoize2(std::ostream & os) const;
69 virtual std::auto_ptr<InsetBase> doClone() const;
71 latexkeys const * sym_;
77 mutable bool scriptable_;