default:
case VIEWER_DISPLAYTEXT: gEditor->OutputText(nsnull); break; case VIEWER_DISPLAYHTML:  gEditor->OutputHTML(nsnull); break; default:
nsresult NS_DoEditorTest(PRInt32 aCommandID){  if (gEditor)  {    switch(aCommandID)    {      case VIEWER_EDIT_INSERT_TABLE:        // First param = number,         // 2nd is TRUE to insert after, FALSE for before        gEditor->InsertTable();        break;          case VIEWER_EDIT_INSERT_CELL:          gEditor->InsertTableCell(1, PR_FALSE);        break;          case VIEWER_EDIT_INSERT_COLUMN:        gEditor->InsertTableColumn(1, PR_FALSE);        break;          case VIEWER_EDIT_INSERT_ROW:            gEditor->InsertTableRow(1, PR_FALSE);        break;          case VIEWER_EDIT_DELETE_TABLE:          gEditor->DeleteTable();        break;          case VIEWER_EDIT_DELETE_CELL:          gEditor->DeleteTableCell(1);        break;          case VIEWER_EDIT_DELETE_COLUMN:        gEditor->DeleteTableColumn(1);        break;          case VIEWER_EDIT_DELETE_ROW:        gEditor->DeleteTableRow(1);        break;          case VIEWER_EDIT_JOIN_CELL_RIGHT:        gEditor->JoinTableCells(PR_TRUE);        break;          case VIEWER_EDIT_JOIN_CELL_BELOW:        gEditor->JoinTableCells(PR_FALSE);        break;      default:        return NS_ERROR_NOT_IMPLEMENTED;        }  }  return NS_OK;}