Lines Matching refs:nCol

210 		sal_Int32 nRow, nCol;  in GetMergedSelection()  local
213 for( nCol = rStart.mnCol; nCol <= rEnd.mnCol; nCol++ ) 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()
290 void CellCursor::split_column( sal_Int32 nCol, sal_Int32 nColumns, std::vector< sal_Int32 >& rLeftO… in split_column() argument
299 CellRef xCell( dynamic_cast< Cell* >( mxTable->getCellByPosition( nCol, nRow ).get() ) ); in split_column()
308 Reference< XPropertySet > xRefColumn( xCols->getByIndex( nCol ), UNO_QUERY_THROW ); in split_column()
316 xCols->insertByIndex( nCol + 1, nNewCols ); in split_column()
320 for( sal_Int32 nNewCol = nCol + nNewCols; nNewCol > nCol; --nNewCol ) 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()
355 sal_Int32 nSplitCol = nCol; in split_column()
379 mxTable->merge( nCol, nRow, (rLeftOvers[nRow] + nNewCols) + 1, nRowSpan + 1 ); in split_column()
400 for( sal_Int32 nCol = mnRight; nCol >= mnLeft; --nCol ) in split_horizontal() local
401 split_column( nCol, nColumns, aLeftOvers ); in split_horizontal()
410 sal_Int32 nNewRows = 0, nCol; in split_row() local
413 for( nCol = mnLeft; nCol <= mnRight; ++nCol ) in split_row()
415 CellRef xCell( dynamic_cast< Cell* >( mxTable->getCellByPosition( nCol, nRow ).get() ) ); in split_row()
417 nNewRows = std::max( nNewRows, nRows - xCell->getRowSpan() + 1 - rLeftOvers[nCol] ); in split_row()
443 for( nCol = 0; nCol < nColCount; ++nCol ) 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()
453 rLeftOvers[nCol] += nNewRows; in split_row()
461 if( (nCol >= mnLeft) && (nCol <= mnRight) ) in split_row()
463 sal_Int32 nCellsAvailable = 1 + nRowSpan + rLeftOvers[nCol]; in split_row()
479 mxTable->merge( nCol, nSplitRow, nColSpan + 1, nSplitSpan + 1 ); in split_row()
486 rLeftOvers[nCol++] = 0; in split_row()
489 --nCol; in split_row()
494 if( nRowSpan < (rLeftOvers[nCol] + nNewRows) ) in split_row()
495 mxTable->merge( nCol, nRow, nColSpan + 1, (rLeftOvers[nCol] + nNewRows) + 1 ); in split_row()
499 rLeftOvers[nCol++] = 0; // consumed in split_row()
502 --nCol; in split_row()
574 for( sal_Int32 nCol = mnLeft; nCol <= mnRight; nCol++ ) in isUnmergeable() local
576 CellRef xCell( dynamic_cast< Cell* >( mxTable->getCellByPosition( nCol, nRow ).get() ) ); in isUnmergeable()