예제 #1
0
MathCell* ParenCell::Copy()
{
  ParenCell *tmp = new ParenCell;
  CopyData(this, tmp);
  tmp->SetInner(m_innerCell->CopyList(), m_type);

  return tmp;
}
예제 #2
0
MathCell* ParenCell::Copy(bool all)
{
    ParenCell *tmp = new ParenCell;
    CopyData(this, tmp);
    tmp->SetInner(m_innerCell->Copy(true), m_type);
    if (all && m_next != NULL)
        tmp->AppendCell(m_next->Copy(all));
    return tmp;
}
예제 #3
0
MathCell* MathParser::ParseParenTag(wxXmlNode* node)
{
  wxXmlNode* child = node->GetChildren();
  ParenCell* cell = new ParenCell;
  cell->SetInner(ParseTag(child, true), m_ParserStyle);
  cell->SetHighlight(m_highlight);
  cell->SetStyle(TS_VARIABLE);
#if wxCHECK_VERSION(2,9,0)
  if (node->GetAttributes() != NULL)
    cell->SetPrint(false);
#else
  if (node->GetProperties() != NULL)
    cell->SetPrint(false);
#endif
  return cell;
}