Lines Matching refs:sal_Int32

67 template< class Vec, class Iter > void remove_range( Vec& rVector, sal_Int32 nIndex, sal_Int32 nCou…  in remove_range()
69 const sal_Int32 nSize = static_cast<sal_Int32>(rVector.size()); in remove_range()
101 …plate< class Vec, class Iter, class Entry > sal_Int32 insert_range( Vec& rVector, sal_Int32 nIndex… in insert_range()
105 if( nIndex >= static_cast< sal_Int32 >( rVector.size() ) ) in insert_range()
108 nIndex = static_cast< sal_Int32 >( rVector.size() ); // cap to end in insert_range()
114 sal_Int32 nFind = nIndex; in insert_range()
146 const sal_Int32 nColCount = xSourceTable->getColumnCountImpl(); in TableModel()
147 const sal_Int32 nRowCount = xSourceTable->getRowCountImpl(); in TableModel()
151 sal_Int32 nRows = nRowCount; in TableModel()
155 sal_Int32 nColumns = nColCount; in TableModel()
160 for( sal_Int32 nCol = 0; nCol < nColCount; ++nCol ) in TableModel()
162 for( sal_Int32 nRow = 0; nRow < nRowCount; ++nRow ) in TableModel()
180 void TableModel::init( sal_Int32 nColumns, sal_Int32 nRows ) in init()
205 sal_Int32 TableModel::getLeft() in getLeft()
212 sal_Int32 TableModel::getTop() in getTop()
219 sal_Int32 TableModel::getRight() in getRight()
226 sal_Int32 TableModel::getBottom() in getBottom()
240 void TableModel::UndoInsertRows( sal_Int32 nIndex, sal_Int32 nCount ) in UndoInsertRows()
252 void TableModel::UndoRemoveRows( sal_Int32 nIndex, RowVector& aRows ) in UndoRemoveRows()
256 const sal_Int32 nCount = sal::static_int_cast< sal_Int32 >( aRows.size() ); in UndoRemoveRows()
260 for( sal_Int32 nOffset = 0; nOffset < nCount; ++nOffset ) in UndoRemoveRows()
269 void TableModel::UndoInsertColumns( sal_Int32 nIndex, sal_Int32 nCount ) in UndoInsertColumns()
275 sal_Int32 nRows = getRowCountImpl(); in UndoInsertColumns()
285 void TableModel::UndoRemoveColumns( sal_Int32 nIndex, ColumnVector& aCols, CellVector& aCells ) in UndoRemoveColumns()
289 const sal_Int32 nCount = sal::static_int_cast< sal_Int32 >( aCols.size() ); in UndoRemoveColumns()
295 for( sal_Int32 nOffset = 0; nOffset < nCount; ++nOffset ) in UndoRemoveColumns()
300 sal_Int32 nRows = getRowCountImpl(); in UndoRemoveColumns()
301 for( sal_Int32 nRow = 0; nRow < nRows; ++nRow ) in UndoRemoveColumns()
338 sal_Int32 SAL_CALL TableModel::getRowCount() throw (RuntimeException) in getRowCount()
346 sal_Int32 SAL_CALL TableModel::getColumnCount() throw (RuntimeException) in getColumnCount()
442 Reference< XCell > SAL_CALL TableModel::getCellByPosition( sal_Int32 nColumn, sal_Int32 nRow ) thro… in getCellByPosition()
455 … SAL_CALL TableModel::getCellRangeByPosition( sal_Int32 nLeft, sal_Int32 nTop, sal_Int32 nRight, s… in getCellRangeByPosition()
526 void SAL_CALL TableModel::setFastPropertyValue( ::sal_Int32 /*nHandle*/, const Any& /*aValue*/ ) th… in setFastPropertyValue() argument
532 Any SAL_CALL TableModel::getFastPropertyValue( ::sal_Int32 /*nHandle*/ ) throw (UnknownPropertyExce… in getFastPropertyValue() argument
542 sal_Int32 TableModel::getRowCountImpl() const in getRowCountImpl()
544 return static_cast< sal_Int32 >( maRows.size() ); in getRowCountImpl()
549 sal_Int32 TableModel::getColumnCountImpl() const in getColumnCountImpl()
551 return static_cast< sal_Int32 >( maColumns.size() ); in getColumnCountImpl()
640 const sal_Int32 nColCount = getColumnCountImpl(); in notifyModification()
641 const sal_Int32 nRowCount = getRowCountImpl(); in notifyModification()
646 for( sal_Int32 nCol = 0; nCol < nColCount; ++nCol ) in notifyModification()
652 for( sal_Int32 nRow = 0; nRow < nRowCount; ++nRow ) in notifyModification()
655 for( sal_Int32 nCol = 0; nCol < nColCount; ++nCol ) in notifyModification()
660 sal_Int32 nRowSpan = xCell->getRowSpan(); in notifyModification()
661 sal_Int32 nColSpan = xCell->getColumnSpan(); in notifyModification()
684 CellRef TableModel::getCell( sal_Int32 nCol, sal_Int32 nRow ) const in getCell()
729 void TableModel::insertColumns( sal_Int32 nIndex, sal_Int32 nCount ) in insertColumns()
740 sal_Int32 nRows = getRowCountImpl(); in insertColumns()
745 for( sal_Int32 nOffset = 0; nOffset < nCount; ++nOffset ) in insertColumns()
765 for( sal_Int32 nRow = 0; nRow < nRows; ++nRow ) in insertColumns()
767 for( sal_Int32 nOffset = 0; nOffset < nCount; ++nOffset ) in insertColumns()
774 const sal_Int32 nRowCount = getRowCountImpl(); in insertColumns()
776 for( sal_Int32 nCol = 0; nCol < nIndex; ++nCol ) in insertColumns()
778 for( sal_Int32 nRow = 0; nRow < nRowCount; ++nRow ) in insertColumns()
781 sal_Int32 nColSpan = (xCell.is() && !xCell->isMerged()) ? xCell->getColumnSpan() : 1; in insertColumns()
785 const sal_Int32 nRowSpan = xCell->getRowSpan(); in insertColumns()
810 void TableModel::removeColumns( sal_Int32 nIndex, sal_Int32 nCount ) in removeColumns()
812 sal_Int32 nColCount = getColumnCountImpl(); in removeColumns()
824 sal_Int32 nRows = getRowCountImpl(); in removeColumns()
836 sal_Int32 nOffset; in removeColumns()
844 for( sal_Int32 nRow = 0; nRow < nRows; ++nRow ) in removeColumns()
856 const sal_Int32 nRowCount = getRowCountImpl(); in removeColumns()
859 for( sal_Int32 nCol = 0; nCol < nColCount; ++nCol ) in removeColumns()
861 for( sal_Int32 nRow = 0; nRow < nRowCount; ++nRow ) in removeColumns()
864 sal_Int32 nColSpan = (xCell.is() && !xCell->isMerged()) ? xCell->getColumnSpan() : 1; in removeColumns()
874 const sal_Int32 nRemove = nCount - nCol + nIndex; in removeColumns()
889 const sal_Int32 nRemove = ::std::min( nCount, nCol + nColSpan - nIndex ); in removeColumns()
920 void TableModel::insertRows( sal_Int32 nIndex, sal_Int32 nCount ) in insertRows()
933 const sal_Int32 nColCount = getColumnCountImpl(); in insertRows()
934 for( sal_Int32 nOffset = 0; nOffset < nCount; ++nOffset ) in insertRows()
950 for( sal_Int32 nRow = 0; nRow < nIndex; ++nRow ) in insertRows()
952 for( sal_Int32 nCol = 0; nCol < nColCount; ++nCol ) in insertRows()
955 sal_Int32 nRowSpan = (xCell.is() && !xCell->isMerged()) ? xCell->getRowSpan() : 1; in insertRows()
959 const sal_Int32 nColSpan = xCell->getColumnSpan(); in insertRows()
983 void TableModel::removeRows( sal_Int32 nIndex, sal_Int32 nCount ) in removeRows()
985 sal_Int32 nRowCount = getRowCountImpl(); in removeRows()
1008 for( sal_Int32 nOffset = 0; nOffset < nCount; ++nOffset ) in removeRows()
1017 const sal_Int32 nColCount = getColumnCountImpl(); in removeRows()
1020 for( sal_Int32 nRow = 0; nRow < nRowCount; ++nRow ) in removeRows()
1022 for( sal_Int32 nCol = 0; nCol < nColCount; ++nCol ) in removeRows()
1025 sal_Int32 nRowSpan = (xCell.is() && !xCell->isMerged()) ? xCell->getRowSpan() : 1; in removeRows()
1035 const sal_Int32 nRemove = nCount - nRow + nIndex; 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()
1089 TableColumnRef TableModel::getColumn( sal_Int32 nColumn ) const throw (IndexOutOfBoundsException) in getColumn()
1108 sal_Int32 nCol = getColumnCountImpl() - 1; in optimize()
1112 for( sal_Int32 nRow = 0; (nRow < getRowCountImpl()) && bEmpty; nRow++ ) in optimize()
1124 sal_Int32 nWidth1 = 0, nWidth2 = 0; in optimize()
1145 sal_Int32 nRow = getRowCountImpl() - 1; in optimize()
1161 sal_Int32 nHeight1 = 0, nHeight2 = 0; in optimize()
1188 void TableModel::merge( sal_Int32 nCol, sal_Int32 nRow, sal_Int32 nColSpan, sal_Int32 nRowSpan ) in merge()
1194 const sal_Int32 nLastRow = nRow + nRowSpan; in merge()
1195 const sal_Int32 nLastCol = nCol + nColSpan; in merge()
1211 sal_Int32 nTempCol = nCol + 1; in merge()
1236 sal_Int32 nRow = 0; in updateRows()
1248 sal_Int32 nColumn = 0; in updateColumns()