Lines Matching refs:nCol

160 		for( sal_Int32 nCol = 0; nCol < nColCount; ++nCol )  in TableModel()  local
164 CellRef xTargetCell( getCell( nCol, nRow ) ); in TableModel()
166 xTargetCell->cloneFrom( xSourceTable->getCell( nCol, nRow ) ); in TableModel()
646 for( sal_Int32 nCol = 0; nCol < nColCount; ++nCol ) in notifyModification() local
648 fprintf( file, "<column this=\"%lx\"/>\n\r", maColumns[nCol].get() ); in notifyModification()
655 for( sal_Int32 nCol = 0; nCol < nColCount; ++nCol ) in notifyModification() local
657 CellRef xCell( getCell( nCol, nRow ) ); in notifyModification()
684 CellRef TableModel::getCell( sal_Int32 nCol, sal_Int32 nRow ) const in getCell() argument
686 if( ((nRow >= 0) && (nRow < getRowCountImpl())) && (nCol >= 0) && (nCol < getColumnCountImpl()) ) in getCell()
688 return maRows[nRow]->maCells[nCol]; in getCell()
776 for( sal_Int32 nCol = 0; nCol < nIndex; ++nCol ) in insertColumns() local
780 CellRef xCell( getCell( nCol, nRow ) ); in insertColumns()
782 if( (nColSpan != 1) && ((nColSpan + nCol ) > nIndex) ) in insertColumns()
787 merge( nCol, nRow, nColSpan, nRowSpan ); in insertColumns()
859 for( sal_Int32 nCol = 0; nCol < nColCount; ++nCol ) in removeColumns() local
863 CellRef xCell( getCell( nCol, nRow ) ); in removeColumns()
868 if( nCol >= nIndex ) in removeColumns()
871 if( (nCol + nColSpan) > ( nIndex + nCount ) ) in removeColumns()
874 const sal_Int32 nRemove = nCount - nCol + nIndex; in removeColumns()
886 else if( nColSpan > (nIndex - nCol) ) in removeColumns()
889 const sal_Int32 nRemove = ::std::min( nCount, nCol + nColSpan - nIndex ); in removeColumns()
952 for( sal_Int32 nCol = 0; nCol < nColCount; ++nCol ) in insertRows() local
954 CellRef xCell( getCell( nCol, nRow ) ); in insertRows()
961 merge( nCol, nRow, nColSpan, nRowSpan ); in insertRows()
1022 for( sal_Int32 nCol = 0; nCol < nColCount; ++nCol ) in removeRows() local
1024 CellRef xCell( getCell( nCol, nRow ) ); in removeRows()
1037 CellRef xTargetCell( getCell( nCol, nIndex + nCount ) ); in removeRows()
1108 sal_Int32 nCol = getColumnCountImpl() - 1; in optimize() local
1109 while( nCol > 0 ) in optimize()
1114 Reference< XMergeableCell > xCell( getCellByPosition( nCol, nRow ), UNO_QUERY ); in optimize()
1121 if( nCol > 0 ) try in optimize()
1125 …Reference< XPropertySet > xSet1( static_cast< XCellRange* >( maColumns[nCol].get() ), UNO_QUERY_TH… in optimize()
1126 …Reference< XPropertySet > xSet2( static_cast< XCellRange* >( maColumns[nCol-1].get() ), UNO_QUERY_… in optimize()
1138 removeColumns( nCol, 1 ); in optimize()
1142 nCol--; in optimize()
1149 for( nCol = 0; (nCol < getColumnCountImpl()) && bEmpty; nCol++ ) in optimize()
1151 Reference< XMergeableCell > xCell( getCellByPosition( nCol, nRow ), UNO_QUERY ); in optimize()
1188 void TableModel::merge( sal_Int32 nCol, sal_Int32 nRow, sal_Int32 nColSpan, sal_Int32 nRowSpan ) in merge() argument
1195 const sal_Int32 nLastCol = nCol + nColSpan; in merge()
1203 CellRef xOriginCell( dynamic_cast< Cell* >( getCellByPosition( nCol, nRow ).get() ) ); in merge()
1211 sal_Int32 nTempCol = nCol + 1; in merge()
1227 nTempCol = nCol; in merge()