MathCell* DiffCell::Copy() { DiffCell* tmp = new DiffCell; CopyData(this, tmp); tmp->SetDiff(m_diffCell->CopyList()); tmp->SetBase(m_baseCell->CopyList()); return tmp; }
MathCell* MathParser::ParseDiffTag(wxXmlNode* node) { DiffCell *diff = new DiffCell; wxXmlNode* child = node->GetChildren(); if (child) { int fc = m_FracStyle; m_FracStyle = FC_DIFF; diff->SetDiff(ParseTag(child, false)); m_FracStyle = fc; child = child->GetNext(); if (child) { diff->SetBase(ParseTag(child, true)); diff->SetType(m_ParserStyle); diff->SetStyle(TS_VARIABLE); return diff; } } delete diff; return NULL; }