3 * Purpose: Implementation of insets for mathed
4 * Author: Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
5 * Created: January 1996
8 * Dependencies: Xlib, XForms
10 * Copyright: 1996, 1997 Alejandro Aguilar Sierra
14 * You are free to use and modify this code under the terms of
15 * the GNU General Public Licence version 2 or later.
19 #pragma implementation
22 #include "math_atom.h"
23 #include "math_inset.h"
24 #include "support/LAssert.h"
32 MathAtom::MathAtom(MathInset * p)
37 MathAtom::MathAtom(MathAtom const & p)
43 void MathAtom::operator=(MathAtom const & p)
58 void MathAtom::reset(MathInset * p)
72 void MathAtom::copy(MathAtom const & p)
74 //cerr << "calling MathAtom::copy\n";
75 nucleus_ = p.nucleus_;
77 nucleus_ = nucleus_->clone();
81 MathInset * MathAtom::nucleus() const
83 lyx::Assert(nucleus_);
88 bool MathAtom::hasNucleus() const
94 MathInset * MathAtom::operator->() const