Home | Info | Community | Development | myReactOS | Contact Us
[static]
Definition at line 45 of file wrap.c.
Referenced by ME_InsertRowStart(), and ME_WrapTextParagraph().
{ PARAFORMAT2 *pFmt; ME_DisplayItem *para = wc->pPara; pFmt = para->member.para.pFmt; wc->pRowStart = NULL; wc->bOverflown = FALSE; wc->pLastSplittableRun = NULL; wc->bWordWrap = wc->context->editor->bWordWrap; if (para->member.para.nFlags & (MEPF_ROWSTART|MEPF_ROWEND)) { wc->nAvailWidth = 0; wc->bWordWrap = FALSE; if (para->member.para.nFlags & MEPF_ROWEND) { ME_Cell *cell = &ME_FindItemBack(para, diCell)->member.cell; cell->nWidth = 0; } } else if (para->member.para.pCell) { ME_Cell *cell = ¶->member.para.pCell->member.cell; int width; width = cell->nRightBoundary; if (cell->prev_cell) width -= cell->prev_cell->member.cell.nRightBoundary; if (!cell->prev_cell) { int rowIndent = ME_GetTableRowEnd(para)->member.para.pFmt->dxStartIndent; width -= rowIndent; } cell->nWidth = max(ME_twips2pointsX(wc->context, width), 0); wc->nAvailWidth = cell->nWidth - (wc->nRow ? wc->nLeftMargin : wc->nFirstMargin) - wc->nRightMargin; wc->bWordWrap = TRUE; } else { wc->nAvailWidth = wc->context->nAvailWidth - (wc->nRow ? wc->nLeftMargin : wc->nFirstMargin) - wc->nRightMargin; } wc->pt.x = wc->context->pt.x; if (wc->context->editor->bEmulateVersion10 && /* v1.0 - 3.0 */ pFmt->dwMask & PFM_TABLE && pFmt->wEffects & PFE_TABLE) /* Shift the text down because of the border. */ wc->pt.y++; }