11 The 'atom' is the major blob in math typesetting. And 'atom' consists
12 of a nucleus, an optional superscript, and an optional subscript.
14 Exactly where the subscript and superscript are drawn depends on the
15 size, and type, of the nucleus they are attached to.
21 Ok: Implementing it thusly is not feasible since cursor movement gets
22 hackish. We use MathAtom only as a wrapper around MathInset * with value
25 The MathAtom owns the MathInset * and is responsible for proper cloning and
26 destruction. Every MathInset * should be put into a MathAtom after its
27 creation as soon as possible.
37 /// default constructor, object is useless, but we need it to put it into
40 /// the "real constructor"
41 explicit MathAtom(MathInset * p);
42 /// copy constructor, invokes nucleus_->clone()
43 MathAtom(MathAtom const &);
44 /// we really need to clean up
46 /// assignment invokes nucleus_->clone()
47 void operator=(MathAtom const &);
48 /// access to the inset (checked with gprof)
49 MathInset * nucleus() { return nucleus_; }
50 /// access to the inset
51 MathInset const * operator->() const { return nucleus_; }