Exemple #1
0
ME_DisplayItem* ME_InsertTableRowStartFromCursor(ME_TextEditor *editor)
{
  ME_DisplayItem *para;
  WCHAR cr_lf[] = {'\r', '\n', 0};
  para = ME_InsertEndParaFromCursor(editor, 0, cr_lf, 2, MEPF_ROWSTART);
  return para->member.para.prev_para;
}
Exemple #2
0
/* Inserts a diCell and starts a new paragraph for the next cell.
 *
 * Returns the first paragraph of the new cell. */
ME_DisplayItem* ME_InsertTableCellFromCursor(ME_TextEditor *editor)
{
  ME_DisplayItem *para;
  WCHAR tab = '\t';
  para = ME_InsertEndParaFromCursor(editor, 0, &tab, 1, MEPF_CELL);
  return para;
}
Exemple #3
0
ME_DisplayItem* ME_InsertTableRowStartFromCursor(ME_TextEditor *editor)
{
    ME_DisplayItem *para;
    para = ME_InsertEndParaFromCursor(editor, 0, 1, 1, MEPF_ROWSTART);
    return para->member.para.prev_para;
}