3 * Purpose: Wrapper for MathInset *
7 * Copyright: 2001 The LyX team
11 * You are free to use and modify this code under the terms of
12 * the GNU General Public Licence version 2 or later.
17 #include "math_atom.h"
18 #include "math_inset.h"
19 #include "insets/insetbase.h"
29 MathAtom::MathAtom(InsetBase * p)
30 : nucleus_(static_cast<MathInset *>(p))
34 MathAtom::MathAtom(MathAtom const & at)
35 : nucleus_(at.nucleus_ ? static_cast<MathInset *>(at.nucleus_->clone()) : 0)
39 void MathAtom::operator=(MathAtom const & at)
44 std::swap(tmp.nucleus_, nucleus_);