diff options
Diffstat (limited to 'svx/source/table/tablemodel.cxx')
-rw-r--r-- | svx/source/table/tablemodel.cxx | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/svx/source/table/tablemodel.cxx b/svx/source/table/tablemodel.cxx index c81572018a34..6d1f5a793322 100644 --- a/svx/source/table/tablemodel.cxx +++ b/svx/source/table/tablemodel.cxx @@ -47,11 +47,9 @@ using namespace ::com::sun::star::beans; using namespace ::com::sun::star::util; - namespace sdr { namespace table { - // removes the given range from a vector template< class Vec, class Iter > void remove_range( Vec& rVector, sal_Int32 nIndex, sal_Int32 nCount ) { @@ -85,7 +83,6 @@ template< class Vec, class Iter > void remove_range( Vec& rVector, sal_Int32 nIn } - /** inserts a range into a vector */ template< class Vec, class Iter, class Entry > sal_Int32 insert_range( Vec& rVector, sal_Int32 nIndex, sal_Int32 nCount ) { @@ -113,7 +110,6 @@ template< class Vec, class Iter, class Entry > sal_Int32 insert_range( Vec& rVec } - TableModel::TableModel( SdrTableObj* pTableObj ) : TableModelBase( m_aMutex ) , mpTableObj( pTableObj ) @@ -159,13 +155,11 @@ TableModel::TableModel( SdrTableObj* pTableObj, const TableModelRef& xSourceTabl } - TableModel::~TableModel() { } - void TableModel::init( sal_Int32 nColumns, sal_Int32 nRows ) { if( nRows < 20 ) @@ -197,35 +191,30 @@ sal_Int32 TableModel::getLeft() } - sal_Int32 TableModel::getTop() { return 0; } - sal_Int32 TableModel::getRight() { return getColumnCount(); } - sal_Int32 TableModel::getBottom() { return getRowCount(); } - Reference< XTable > TableModel::getTable() { return this; } - void TableModel::UndoInsertRows( sal_Int32 nIndex, sal_Int32 nCount ) { TableModelNotifyGuard aGuard( this ); @@ -237,7 +226,6 @@ void TableModel::UndoInsertRows( sal_Int32 nIndex, sal_Int32 nCount ) } - void TableModel::UndoRemoveRows( sal_Int32 nIndex, RowVector& aRows ) { TableModelNotifyGuard aGuard( this ); @@ -254,7 +242,6 @@ void TableModel::UndoRemoveRows( sal_Int32 nIndex, RowVector& aRows ) } - void TableModel::UndoInsertColumns( sal_Int32 nIndex, sal_Int32 nCount ) { TableModelNotifyGuard aGuard( this ); @@ -270,7 +257,6 @@ void TableModel::UndoInsertColumns( sal_Int32 nIndex, sal_Int32 nCount ) } - void TableModel::UndoRemoveColumns( sal_Int32 nIndex, ColumnVector& aCols, CellVector& aCells ) { TableModelNotifyGuard aGuard( this ); @@ -309,7 +295,6 @@ Reference< XCellCursor > SAL_CALL TableModel::createCursor() throw (RuntimeExcep } - Reference< XCellCursor > SAL_CALL TableModel::createCursorByRange( const Reference< XCellRange >& rRange ) throw (IllegalArgumentException, RuntimeException, std::exception) { ::SolarMutexGuard aGuard; @@ -323,7 +308,6 @@ Reference< XCellCursor > SAL_CALL TableModel::createCursorByRange( const Referen } - sal_Int32 SAL_CALL TableModel::getRowCount() throw (RuntimeException, std::exception) { ::SolarMutexGuard aGuard; @@ -331,7 +315,6 @@ sal_Int32 SAL_CALL TableModel::getRowCount() throw (RuntimeException, std::excep } - sal_Int32 SAL_CALL TableModel::getColumnCount() throw (RuntimeException, std::exception) { ::SolarMutexGuard aGuard; @@ -349,14 +332,12 @@ void TableModel::dispose() throw (RuntimeException, std::exception) } - void SAL_CALL TableModel::addEventListener( const Reference< XEventListener >& xListener ) throw (RuntimeException, std::exception) { TableModelBase::addEventListener( xListener ); } - void SAL_CALL TableModel::removeEventListener( const Reference< XEventListener >& xListener ) throw (RuntimeException, std::exception) { TableModelBase::removeEventListener( xListener ); @@ -373,7 +354,6 @@ sal_Bool SAL_CALL TableModel::isModified( ) throw (RuntimeException, std::excep } - void SAL_CALL TableModel::setModified( sal_Bool bModified ) throw (PropertyVetoException, RuntimeException, std::exception) { { @@ -394,7 +374,6 @@ void SAL_CALL TableModel::addModifyListener( const Reference< XModifyListener >& } - void SAL_CALL TableModel::removeModifyListener( const Reference< XModifyListener >& xListener ) throw (RuntimeException, std::exception) { rBHelper.removeListener( cppu::UnoType<XModifyListener>::get() , xListener ); @@ -414,7 +393,6 @@ Reference< XTableColumns > SAL_CALL TableModel::getColumns() throw (RuntimeExcep } - Reference< XTableRows > SAL_CALL TableModel::getRows() throw (RuntimeException, std::exception) { ::SolarMutexGuard aGuard; @@ -440,7 +418,6 @@ Reference< XCell > SAL_CALL TableModel::getCellByPosition( sal_Int32 nColumn, sa } - Reference< XCellRange > SAL_CALL TableModel::getCellRangeByPosition( sal_Int32 nLeft, sal_Int32 nTop, sal_Int32 nRight, sal_Int32 nBottom ) throw (IndexOutOfBoundsException, RuntimeException, std::exception) { ::SolarMutexGuard aGuard; @@ -455,7 +432,6 @@ Reference< XCellRange > SAL_CALL TableModel::getCellRangeByPosition( sal_Int32 n } - Reference< XCellRange > SAL_CALL TableModel::getCellRangeByName( const OUString& /*aRange*/ ) throw (RuntimeException, std::exception) { return Reference< XCellRange >(); @@ -472,38 +448,32 @@ Reference< XPropertySetInfo > SAL_CALL TableModel::getPropertySetInfo( ) throw } - void SAL_CALL TableModel::setPropertyValue( const OUString& /*aPropertyName*/, const Any& /*aValue*/ ) throw (UnknownPropertyException, PropertyVetoException, IllegalArgumentException, WrappedTargetException, RuntimeException, std::exception) { } - Any SAL_CALL TableModel::getPropertyValue( const OUString& /*PropertyName*/ ) throw (UnknownPropertyException, WrappedTargetException, RuntimeException, std::exception) { return Any(); } - void SAL_CALL TableModel::addPropertyChangeListener( const OUString& /*aPropertyName*/, const Reference< XPropertyChangeListener >& /*xListener*/ ) throw (UnknownPropertyException, WrappedTargetException, RuntimeException, std::exception) { } - void SAL_CALL TableModel::removePropertyChangeListener( const OUString& /*aPropertyName*/, const Reference< XPropertyChangeListener >& /*xListener*/ ) throw (UnknownPropertyException, WrappedTargetException, RuntimeException, std::exception) { } - void SAL_CALL TableModel::addVetoableChangeListener( const OUString& /*aPropertyName*/, const Reference< XVetoableChangeListener >& /*xListener*/ ) throw (UnknownPropertyException, WrappedTargetException, RuntimeException, std::exception) { } - void SAL_CALL TableModel::removeVetoableChangeListener( const OUString& /*aPropertyName*/, const Reference< XVetoableChangeListener >& /*xListener*/ ) throw (UnknownPropertyException, WrappedTargetException, RuntimeException, std::exception) { } @@ -517,7 +487,6 @@ void SAL_CALL TableModel::setFastPropertyValue( ::sal_Int32 /*nHandle*/, const A } - Any SAL_CALL TableModel::getFastPropertyValue( ::sal_Int32 /*nHandle*/ ) throw (UnknownPropertyException, WrappedTargetException, RuntimeException, std::exception) { Any aAny; @@ -534,14 +503,12 @@ sal_Int32 TableModel::getRowCountImpl() const } - sal_Int32 TableModel::getColumnCountImpl() const { return static_cast< sal_Int32 >( maColumns.size() ); } - void TableModel::disposing() { if( !maRows.empty() ) @@ -621,7 +588,6 @@ void TableModel::notifyModification() } - CellRef TableModel::getCell( sal_Int32 nCol, sal_Int32 nRow ) const { if( ((nRow >= 0) && (nRow < getRowCountImpl())) && (nCol >= 0) && (nCol < getColumnCountImpl()) ) @@ -636,7 +602,6 @@ CellRef TableModel::getCell( sal_Int32 nCol, sal_Int32 nRow ) const } - CellRef TableModel::createCell() { CellRef xCell; @@ -646,7 +611,6 @@ CellRef TableModel::createCell() } - void TableModel::insertColumns( sal_Int32 nIndex, sal_Int32 nCount ) { if( nCount && mpTableObj ) @@ -727,7 +691,6 @@ void TableModel::insertColumns( sal_Int32 nIndex, sal_Int32 nCount ) } - void TableModel::removeColumns( sal_Int32 nIndex, sal_Int32 nCount ) { sal_Int32 nColCount = getColumnCountImpl(); @@ -837,7 +800,6 @@ void TableModel::removeColumns( sal_Int32 nIndex, sal_Int32 nCount ) } - void TableModel::insertRows( sal_Int32 nIndex, sal_Int32 nCount ) { if( nCount && mpTableObj ) @@ -900,7 +862,6 @@ void TableModel::insertRows( sal_Int32 nIndex, sal_Int32 nCount ) } - void TableModel::removeRows( sal_Int32 nIndex, sal_Int32 nCount ) { sal_Int32 nRowCount = getRowCountImpl(); @@ -996,7 +957,6 @@ void TableModel::removeRows( sal_Int32 nIndex, sal_Int32 nCount ) } - TableRowRef TableModel::getRow( sal_Int32 nRow ) const throw (IndexOutOfBoundsException) { if( (nRow >= 0) && (nRow < getRowCountImpl()) ) @@ -1006,7 +966,6 @@ TableRowRef TableModel::getRow( sal_Int32 nRow ) const throw (IndexOutOfBoundsEx } - TableColumnRef TableModel::getColumn( sal_Int32 nColumn ) const throw (IndexOutOfBoundsException) { if( (nColumn >= 0) && (nColumn < getColumnCountImpl()) ) @@ -1016,7 +975,6 @@ TableColumnRef TableModel::getColumn( sal_Int32 nColumn ) const throw (IndexOutO } - /** deletes rows and columns that are completely merged. Must be called between BegUndo/EndUndo! */ void TableModel::optimize() { @@ -1107,7 +1065,6 @@ void TableModel::optimize() } - void TableModel::merge( sal_Int32 nCol, sal_Int32 nRow, sal_Int32 nColSpan, sal_Int32 nRowSpan ) { SdrModel* pModel = mpTableObj->GetModel(); |