LO_Element *pLastCell;
LO_Element *pLastCell = NULL;
XP_Bool lo_AllCellsSelectedInColumnOrRow( LO_CellStruct *pCell, XP_Bool bInColumn ){	LO_Element *pFirstCell;	LO_Element *pLastCell;	LO_Element *tptr;    /* Get first and last cells in row or column */    pFirstCell = lo_GetFirstAndLastCellsInColumnOrRow( (LO_Element*)pCell, &pLastCell, bInColumn );    if( !pFirstCell || !pLastCell )        return FALSE;    tptr = pFirstCell;    do {        if( tptr->type == LO_CELL )        {            if( (bInColumn && pCell->x == tptr->lo_any.x) ||                (!bInColumn && pCell->y == tptr->lo_any.y) )            {                /* If any cell is not selected, return FALSE */                if( !(pCell->ele_attrmask & LO_ELE_SELECTED) )                    return FALSE;            }        }        tptr = tptr->lo_any.next;    } while (tptr != pLastCell);     return TRUE;}