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)
64 void MathAtom::copy(MathAtom const & p)
66 //cerr << "calling MathAtom::copy\n";
67 nucleus_ = p.nucleus_;
69 nucleus_ = nucleus_->clone();
73 MathInset * MathAtom::nucleus() const
75 lyx::Assert(nucleus_);
80 MathInset * MathAtom::operator->() const
86 void MathAtom::userSetSize(MathStyles sz)
90 flag = flag & ~LMPF_FIXED_SIZE;