MathCell* SqrtCell::Copy() { SqrtCell* tmp = new SqrtCell; CopyData(this, tmp); tmp->SetInner(m_innerCell->CopyList()); return tmp; }
MathCell* SqrtCell::Copy(bool all) { SqrtCell* tmp = new SqrtCell; CopyData(this, tmp); tmp->SetInner(m_innerCell->Copy(true)); if (all && m_next != NULL) tmp->AppendCell(m_next->Copy(all)); return tmp; }
MathCell* SqrtCell::Copy() { SqrtCell* tmp = new SqrtCell; CopyData(this, tmp); tmp->SetInner(m_innerCell->CopyList()); tmp->m_isBroken = m_isBroken; tmp->m_open->DontEscapeOpeningParenthesis(); return tmp; }
MathCell* MathParser::ParseSqrtTag(wxXmlNode* node) { wxXmlNode* child = node->GetChildren(); SqrtCell* cell = new SqrtCell; cell->SetInner(ParseTag(child, true)); cell->SetType(m_ParserStyle); cell->SetStyle(TS_VARIABLE); cell->SetHighlight(m_highlight); return cell; }