Lines Matching refs:nRow
67 Reference< XCell > SAL_CALL CellCursor::getCellByPosition( sal_Int32 nColumn, sal_Int32 nRow ) thro… in getCellByPosition() argument
69 return CellRange::getCellByPosition( nColumn, nRow ); in getCellByPosition()
210 sal_Int32 nRow, nCol; in GetMergedSelection() local
211 for( nRow = rStart.mnRow; nRow <= rEnd.mnRow; nRow++ ) in GetMergedSelection()
215 xCell.set( dynamic_cast< Cell* >( mxTable->getCellByPosition( nCol, nRow ).get() ) ); in GetMergedSelection()
222 if( findMergeOrigin( mxTable, nCol, nRow, nOriginCol, nOriginRow ) ) in GetMergedSelection()
238 …else if( ((nCol + xCell->getColumnSpan() - 1) > rEnd.mnCol) || ((nRow + xCell->getRowSpan() - 1 ) … in GetMergedSelection()
294 sal_Int32 nNewCols = 0, nRow; in split_column() local
297 for( nRow = mnTop; nRow <= mnBottom; ++nRow ) in split_column()
299 CellRef xCell( dynamic_cast< Cell* >( mxTable->getCellByPosition( nCol, nRow ).get() ) ); in split_column()
301 nNewCols = std::max( nNewCols, nColumns - xCell->getColumnSpan() + 1 - rLeftOvers[nRow] ); in split_column()
327 for( nRow = 0; nRow < nRowCount; ++nRow ) in split_column()
329 CellRef xCell( dynamic_cast< Cell* >( mxTable->getCellByPosition( nCol, nRow ).get() ) ); in split_column()
335 … xCell.set( dynamic_cast< Cell* >(mxTable->getCellByPosition( nCol+1, nRow ).get() ) ); in split_column()
337 rLeftOvers[nRow] += nNewCols; in split_column()
345 if( (nRow >= mnTop) && (nRow <= mnBottom) ) in split_column()
347 sal_Int32 nCellsAvailable = 1 + nColSpan + rLeftOvers[nRow]; in split_column()
363 mxTable->merge( nSplitCol, nRow, nSplitSpan + 1, nRowSpan + 1); in split_column()
370 rLeftOvers[nRow++] = 0; in split_column()
373 --nRow; in split_column()
378 if( nColSpan < (rLeftOvers[nRow] + nNewCols) ) in split_column()
379 mxTable->merge( nCol, nRow, (rLeftOvers[nRow] + nNewCols) + 1, nRowSpan + 1 ); in split_column()
383 rLeftOvers[nRow++] = 0; // consumed in split_column()
386 --nRow; in split_column()
406 void CellCursor::split_row( sal_Int32 nRow, sal_Int32 nRows, std::vector< sal_Int32 >& rLeftOvers ) in split_row() argument
415 CellRef xCell( dynamic_cast< Cell* >( mxTable->getCellByPosition( nCol, nRow ).get() ) ); in split_row()
424 Reference< XPropertySet > xRefRow( xRows->getByIndex( nRow ), UNO_QUERY_THROW ); in split_row()
432 xRows->insertByIndex( nRow + 1, nNewRows ); in split_row()
436 for( sal_Int32 nNewRow = nRow + nNewRows; nNewRow > nRow; --nNewRow ) in split_row()
445 CellRef xCell( dynamic_cast< Cell* >( mxTable->getCellByPosition( nCol, nRow ).get() ) ); in split_row()
451 … xCell.set( dynamic_cast< Cell* >(mxTable->getCellByPosition( nCol, nRow+1 ).get() ) ); in split_row()
471 sal_Int32 nSplitRow = nRow; in split_row()
495 mxTable->merge( nCol, nRow, nColSpan + 1, (rLeftOvers[nCol] + nNewRows) + 1 ); in split_row()
516 for( sal_Int32 nRow = mnBottom; nRow >= mnTop; --nRow ) in split_vertical() local
517 split_row( nRow, nRows, aLeftOvers ); in split_vertical()
572 for( sal_Int32 nRow = mnTop; nRow <= mnBottom; nRow++ ) in isUnmergeable() local
576 CellRef xCell( dynamic_cast< Cell* >( mxTable->getCellByPosition( nCol, nRow ).get() ) ); in isUnmergeable()