8 * Wrapper for MathInset * with copy-semantics
10 * \author André Pönitz
12 * Full author contact details are available in file CREDITS
16 The 'atom' is the major blob in math typesetting. And 'atom' consists
17 of a nucleus, an optional superscript, and an optional subscript.
19 Exactly where the subscript and superscript are drawn depends on the
20 size, and type, of the nucleus they are attached to.
26 Ok: Implementing it thusly is not feasible since cursor movement gets
27 hackish. We use MathAtom only as a wrapper around MathInset * with value
30 The MathAtom owns the MathInset * and is responsible for proper cloning and
31 destruction. Every MathInset * should be put into a MathAtom after its
32 creation as soon as possible.
43 /// default constructor, object is useless, but we need it to put it into
46 /// the "real constructor"
47 explicit MathAtom(InsetBase * p);
48 /// copy constructor, invokes nucleus_->clone()
49 MathAtom(MathAtom const &);
50 /// we really need to clean up
52 /// assignment invokes nucleus_->clone()
53 void operator=(MathAtom const &);
54 /// access to the inset (checked with gprof)
55 MathInset * nucleus() { return nucleus_; }
56 /// access to the inset
57 MathInset const * operator->() const { return nucleus_; }
59 /// width cache. Not nice...