Lines Matching refs:nRow
162 for( sal_Int32 nRow = 0; nRow < nRowCount; ++nRow ) in TableModel() local
164 CellRef xTargetCell( getCell( nCol, nRow ) ); in TableModel()
166 xTargetCell->cloneFrom( xSourceTable->getCell( nCol, nRow ) ); in TableModel()
301 for( sal_Int32 nRow = 0; nRow < nRows; ++nRow ) in UndoRemoveColumns() local
303 CellVector::iterator aIter2 = aIter + nRow * nCount; in UndoRemoveColumns()
305 maRows[nRow]->insertColumns( nIndex, nCount, &aIter2 ); in UndoRemoveColumns()
442 Reference< XCell > SAL_CALL TableModel::getCellByPosition( sal_Int32 nColumn, sal_Int32 nRow ) thro… in getCellByPosition() argument
446 CellRef xCell( getCell( nColumn, nRow ) ); in getCellByPosition()
652 for( sal_Int32 nRow = 0; nRow < nRowCount; ++nRow ) in notifyModification() local
654 fprintf( file, "<row this=\"%lx\">\n\r", maRows[nRow].get() ); in notifyModification()
657 CellRef xCell( getCell( nCol, nRow ) ); in notifyModification()
684 CellRef TableModel::getCell( sal_Int32 nCol, sal_Int32 nRow ) const in getCell()
686 if( ((nRow >= 0) && (nRow < getRowCountImpl())) && (nCol >= 0) && (nCol < getColumnCountImpl()) ) in getCell()
688 return maRows[nRow]->maCells[nCol]; in getCell()
765 for( sal_Int32 nRow = 0; nRow < nRows; ++nRow ) in insertColumns() local
768 (*aCellIter++) = getCell( nIndex + nOffset, nRow ); in insertColumns()
778 for( sal_Int32 nRow = 0; nRow < nRowCount; ++nRow ) in insertColumns() local
780 CellRef xCell( getCell( nCol, nRow ) ); in insertColumns()
787 merge( nCol, nRow, nColSpan, nRowSpan ); in insertColumns()
844 for( sal_Int32 nRow = 0; nRow < nRows; ++nRow ) in removeColumns() local
847 (*aCellIter++) = getCell( nIndex + nOffset, nRow ); in removeColumns()
861 for( sal_Int32 nRow = 0; nRow < nRowCount; ++nRow ) in removeColumns() local
863 CellRef xCell( getCell( nCol, nRow ) ); in removeColumns()
876 CellRef xTargetCell( getCell( nIndex + nCount, nRow ) ); in removeColumns()
950 for( sal_Int32 nRow = 0; nRow < nIndex; ++nRow ) in insertRows() local
954 CellRef xCell( getCell( nCol, nRow ) ); in insertRows()
956 if( (nRowSpan > 1) && ((nRowSpan + nRow) > nIndex) ) in insertRows()
961 merge( nCol, nRow, nColSpan, nRowSpan ); in insertRows()
1020 for( sal_Int32 nRow = 0; nRow < nRowCount; ++nRow ) in removeRows() local
1024 CellRef xCell( getCell( nCol, nRow ) ); in removeRows()
1029 if( nRow >= nIndex ) in removeRows()
1032 if( (nRow + nRowSpan) > (nIndex + nCount) ) in removeRows()
1035 const sal_Int32 nRemove = nCount - nRow + nIndex; in removeRows()
1047 else if( nRowSpan > (nIndex - nRow) ) in removeRows()
1050 const sal_Int32 nRemove = ::std::min( nCount, nRow + nRowSpan - nIndex ); in removeRows()
1079 TableRowRef TableModel::getRow( sal_Int32 nRow ) const throw (IndexOutOfBoundsException) in getRow()
1081 if( (nRow >= 0) && (nRow < getRowCountImpl()) ) in getRow()
1082 return maRows[nRow]; in getRow()
1112 for( sal_Int32 nRow = 0; (nRow < getRowCountImpl()) && bEmpty; nRow++ ) in optimize() local
1114 Reference< XMergeableCell > xCell( getCellByPosition( nCol, nRow ), UNO_QUERY ); in optimize()
1145 sal_Int32 nRow = getRowCountImpl() - 1; in optimize() local
1146 while( nRow > 0 ) in optimize()
1151 Reference< XMergeableCell > xCell( getCellByPosition( nCol, nRow ), UNO_QUERY ); in optimize()
1158 if( nRow > 0 ) try in optimize()
1162 …Reference< XPropertySet > xSet1( static_cast< XCellRange* >( maRows[nRow].get() ), UNO_QUERY_THROW… in optimize()
1163 …Reference< XPropertySet > xSet2( static_cast< XCellRange* >( maRows[nRow-1].get() ), UNO_QUERY_THR… in optimize()
1175 removeRows( nRow, 1 ); in optimize()
1179 nRow--; in optimize()
1188 void TableModel::merge( sal_Int32 nCol, sal_Int32 nRow, sal_Int32 nColSpan, sal_Int32 nRowSpan ) in merge() argument
1194 const sal_Int32 nLastRow = nRow + nRowSpan; in merge()
1203 CellRef xOriginCell( dynamic_cast< Cell* >( getCellByPosition( nCol, nRow ).get() ) ); in merge()
1214 for( ; nRow < nLastRow; nRow++ ) in merge()
1218 CellRef xCell( dynamic_cast< Cell* >( getCellByPosition( nTempCol, nRow ).get() ) ); in merge()
1236 sal_Int32 nRow = 0; in updateRows() local
1240 (*iter++)->mnRow = nRow++; in updateRows()