}
+MathAtom::MathAtom(MathInset * p, MathScriptInset * up, MathScriptInset * down)
+ : nucleus_(p), limits_(0), xo_(0), yo_(0)
+{
+ script_[0] = down;
+ script_[1] = up;
+}
+
MathAtom::MathAtom(MathAtom const & p)
{
}
+MathScriptInset * & MathAtom::up()
+{
+ return script_[1];
+}
+
+
+MathScriptInset * & MathAtom::down()
+{
+ return script_[0];
+}
+
+
int MathAtom::dy0() const
{
if (!down())
}
-void MathAtom::substitute(MathArray & array, MathMacro const & m) const
+void MathAtom::substitute(MathMacro const & m)
{
if (nucleus())
- nucleus()->substitute(array, m);
+ nucleus()->substitute(m);
if (up())
- up()->substitute(array, m);
+ up()->substitute(m);
if (down())
- down()->substitute(array, m);
+ down()->substitute(m);
}