diff options
Diffstat (limited to 'toolkit/source/controls/grid')
-rw-r--r-- | toolkit/source/controls/grid/defaultgridcolumnmodel.cxx | 26 | ||||
-rw-r--r-- | toolkit/source/controls/grid/defaultgriddatamodel.cxx | 58 | ||||
-rw-r--r-- | toolkit/source/controls/grid/gridcolumn.cxx | 68 | ||||
-rw-r--r-- | toolkit/source/controls/grid/gridcontrol.cxx | 60 | ||||
-rw-r--r-- | toolkit/source/controls/grid/grideventforwarder.cxx | 24 | ||||
-rw-r--r-- | toolkit/source/controls/grid/sortablegriddatamodel.cxx | 104 |
6 files changed, 170 insertions, 170 deletions
diff --git a/toolkit/source/controls/grid/defaultgridcolumnmodel.cxx b/toolkit/source/controls/grid/defaultgridcolumnmodel.cxx index 271b30d4b9bc..95ac0f9631a1 100644 --- a/toolkit/source/controls/grid/defaultgridcolumnmodel.cxx +++ b/toolkit/source/controls/grid/defaultgridcolumnmodel.cxx @@ -132,25 +132,25 @@ private: m_aColumns.swap( aColumns ); } - //------------------------------------------------------------------------------------------------------------------ + DefaultGridColumnModel::~DefaultGridColumnModel() { } - //------------------------------------------------------------------------------------------------------------------ + ::sal_Int32 SAL_CALL DefaultGridColumnModel::getColumnCount() throw (RuntimeException) { return m_aColumns.size(); } - //------------------------------------------------------------------------------------------------------------------ + Reference< XGridColumn > SAL_CALL DefaultGridColumnModel::createColumn( ) throw (RuntimeException) { ::comphelper::ComponentGuard aGuard( *this, rBHelper ); return new GridColumn(); } - //------------------------------------------------------------------------------------------------------------------ + ::sal_Int32 SAL_CALL DefaultGridColumnModel::addColumn( const Reference< XGridColumn > & i_column ) throw (RuntimeException, css::lang::IllegalArgumentException) { @@ -176,7 +176,7 @@ private: return index; } - //------------------------------------------------------------------------------------------------------------------ + void SAL_CALL DefaultGridColumnModel::removeColumn( ::sal_Int32 i_columnIndex ) throw (RuntimeException, css::lang::IndexOutOfBoundsException) { @@ -226,14 +226,14 @@ private: } } - //------------------------------------------------------------------------------------------------------------------ + Sequence< Reference< XGridColumn > > SAL_CALL DefaultGridColumnModel::getColumns() throw (RuntimeException) { ::comphelper::ComponentGuard aGuard( *this, rBHelper ); return ::comphelper::containerToSequence( m_aColumns ); } - //------------------------------------------------------------------------------------------------------------------ + Reference< XGridColumn > SAL_CALL DefaultGridColumnModel::getColumn(::sal_Int32 index) throw (css::lang::IndexOutOfBoundsException, RuntimeException) { @@ -245,7 +245,7 @@ private: throw css::lang::IndexOutOfBoundsException(); } - //------------------------------------------------------------------------------------------------------------------ + void SAL_CALL DefaultGridColumnModel::setDefaultColumns(sal_Int32 rowElements) throw (RuntimeException) { ::std::vector< ContainerEvent > aRemovedColumns; @@ -329,7 +329,7 @@ private: } } - //------------------------------------------------------------------------------------------------------------------ + OUString SAL_CALL DefaultGridColumnModel::getImplementationName( ) throw (RuntimeException) { return OUString("stardiv.Toolkit.DefaultGridColumnModel"); @@ -347,21 +347,21 @@ private: return aSeq; } - //------------------------------------------------------------------------------------------------------------------ + void SAL_CALL DefaultGridColumnModel::addContainerListener( const Reference< XContainerListener >& i_listener ) throw (RuntimeException) { if ( i_listener.is() ) m_aContainerListeners.addInterface( i_listener ); } - //------------------------------------------------------------------------------------------------------------------ + void SAL_CALL DefaultGridColumnModel::removeContainerListener( const Reference< XContainerListener >& i_listener ) throw (RuntimeException) { if ( i_listener.is() ) m_aContainerListeners.removeInterface( i_listener ); } - //------------------------------------------------------------------------------------------------------------------ + void SAL_CALL DefaultGridColumnModel::disposing() { DefaultGridColumnModel_Base::disposing(); @@ -391,7 +391,7 @@ private: m_aColumns.swap( aEmpty ); } - //------------------------------------------------------------------------------------------------------------------ + Reference< css::util::XCloneable > SAL_CALL DefaultGridColumnModel::createClone( ) throw (RuntimeException) { ::comphelper::ComponentGuard aGuard( *this, rBHelper ); diff --git a/toolkit/source/controls/grid/defaultgriddatamodel.cxx b/toolkit/source/controls/grid/defaultgriddatamodel.cxx index 13936bcafb9d..614555e4ae0e 100644 --- a/toolkit/source/controls/grid/defaultgriddatamodel.cxx +++ b/toolkit/source/controls/grid/defaultgriddatamodel.cxx @@ -121,7 +121,7 @@ private: { } - //------------------------------------------------------------------------------------------------------------------ + DefaultGridDataModel::DefaultGridDataModel( DefaultGridDataModel const & i_copySource ) :cppu::BaseMutex() ,DefaultGridDataModel_Base( m_aMutex ) @@ -131,12 +131,12 @@ private: { } - //------------------------------------------------------------------------------------------------------------------ + DefaultGridDataModel::~DefaultGridDataModel() { } - //------------------------------------------------------------------------------------------------------------------ + void DefaultGridDataModel::broadcast( GridDataEvent const & i_event, void ( SAL_CALL XGridDataListener::*i_listenerMethod )( GridDataEvent const & ), ::comphelper::ComponentGuard & i_instanceLock ) { @@ -148,21 +148,21 @@ private: pListeners->notifyEach( i_listenerMethod, i_event ); } - //------------------------------------------------------------------------------------------------------------------ + ::sal_Int32 SAL_CALL DefaultGridDataModel::getRowCount() throw (::com::sun::star::uno::RuntimeException) { ::comphelper::ComponentGuard aGuard( *this, rBHelper ); return impl_getRowCount_nolck(); } - //------------------------------------------------------------------------------------------------------------------ + ::sal_Int32 SAL_CALL DefaultGridDataModel::getColumnCount() throw (::com::sun::star::uno::RuntimeException) { ::comphelper::ComponentGuard aGuard( *this, rBHelper ); return m_nColumnCount; } - //------------------------------------------------------------------------------------------------------------------ + DefaultGridDataModel::CellData const & DefaultGridDataModel::impl_getCellData_throw( sal_Int32 const i_column, sal_Int32 const i_row ) const { if ( ( i_row < 0 ) || ( size_t( i_row ) > m_aData.size() ) @@ -178,7 +178,7 @@ private: return s_aEmpty; } - //------------------------------------------------------------------------------------------------------------------ + DefaultGridDataModel::RowData& DefaultGridDataModel::impl_getRowDataAccess_throw( sal_Int32 const i_rowIndex, size_t const i_requiredColumnCount ) { OSL_ENSURE( i_requiredColumnCount <= size_t( m_nColumnCount ), "DefaultGridDataModel::impl_getRowDataAccess_throw: invalid column count!" ); @@ -191,7 +191,7 @@ private: return rRowData; } - //------------------------------------------------------------------------------------------------------------------ + DefaultGridDataModel::CellData& DefaultGridDataModel::impl_getCellDataAccess_throw( sal_Int32 const i_columnIndex, sal_Int32 const i_rowIndex ) { if ( ( i_columnIndex < 0 ) || ( i_columnIndex >= m_nColumnCount ) ) @@ -201,21 +201,21 @@ private: return rRowData[ i_columnIndex ]; } - //------------------------------------------------------------------------------------------------------------------ + Any SAL_CALL DefaultGridDataModel::getCellData( ::sal_Int32 i_column, ::sal_Int32 i_row ) throw (RuntimeException, IndexOutOfBoundsException) { ::comphelper::ComponentGuard aGuard( *this, rBHelper ); return impl_getCellData_throw( i_column, i_row ).first; } - //------------------------------------------------------------------------------------------------------------------ + Any SAL_CALL DefaultGridDataModel::getCellToolTip( ::sal_Int32 i_column, ::sal_Int32 i_row ) throw (RuntimeException, IndexOutOfBoundsException) { ::comphelper::ComponentGuard aGuard( *this, rBHelper ); return impl_getCellData_throw( i_column, i_row ).second; } - //------------------------------------------------------------------------------------------------------------------ + Any SAL_CALL DefaultGridDataModel::getRowHeading( ::sal_Int32 i_row ) throw (RuntimeException, IndexOutOfBoundsException) { ::comphelper::ComponentGuard aGuard( *this, rBHelper ); @@ -226,7 +226,7 @@ private: return m_aRowHeaders[ i_row ]; } - //------------------------------------------------------------------------------------------------------------------ + Sequence< Any > SAL_CALL DefaultGridDataModel::getRowData( ::sal_Int32 i_rowIndex ) throw (IndexOutOfBoundsException, RuntimeException) { ::comphelper::ComponentGuard aGuard( *this, rBHelper ); @@ -239,7 +239,7 @@ private: return resultData; } - //------------------------------------------------------------------------------------------------------------------ + void DefaultGridDataModel::impl_insertRow( sal_Int32 const i_position, Any const & i_heading, Sequence< Any > const & i_rowData, sal_Int32 const i_assumedColCount ) { OSL_PRECOND( ( i_assumedColCount <= 0 ) || ( i_assumedColCount >= i_rowData.getLength() ), @@ -258,19 +258,19 @@ private: m_aData.insert( m_aData.begin() + i_position, newRow ); } - //------------------------------------------------------------------------------------------------------------------ + void SAL_CALL DefaultGridDataModel::addRow( const Any& i_heading, const Sequence< Any >& i_data ) throw (RuntimeException) { insertRow( getRowCount(), i_heading, i_data ); } - //------------------------------------------------------------------------------------------------------------------ + void SAL_CALL DefaultGridDataModel::addRows( const Sequence< Any >& i_headings, const Sequence< Sequence< Any > >& i_data ) throw (IllegalArgumentException, RuntimeException) { insertRows( getRowCount(), i_headings, i_data ); } - //------------------------------------------------------------------------------------------------------------------ + void SAL_CALL DefaultGridDataModel::insertRow( ::sal_Int32 i_index, const Any& i_heading, const Sequence< Any >& i_data ) throw (RuntimeException, IndexOutOfBoundsException) { ::comphelper::ComponentGuard aGuard( *this, rBHelper ); @@ -293,7 +293,7 @@ private: ); } - //------------------------------------------------------------------------------------------------------------------ + void SAL_CALL DefaultGridDataModel::insertRows( ::sal_Int32 i_index, const Sequence< Any>& i_headings, const Sequence< Sequence< Any > >& i_data ) throw (IllegalArgumentException, IndexOutOfBoundsException, RuntimeException) { if ( i_headings.getLength() != i_data.getLength() ) @@ -332,7 +332,7 @@ private: ); } - //------------------------------------------------------------------------------------------------------------------ + void SAL_CALL DefaultGridDataModel::removeRow( ::sal_Int32 i_rowIndex ) throw (IndexOutOfBoundsException, RuntimeException) { ::comphelper::ComponentGuard aGuard( *this, rBHelper ); @@ -350,7 +350,7 @@ private: ); } - //------------------------------------------------------------------------------------------------------------------ + void SAL_CALL DefaultGridDataModel::removeAllRows( ) throw (RuntimeException) { ::comphelper::ComponentGuard aGuard( *this, rBHelper ); @@ -365,7 +365,7 @@ private: ); } - //------------------------------------------------------------------------------------------------------------------ + void SAL_CALL DefaultGridDataModel::updateCellData( ::sal_Int32 i_columnIndex, ::sal_Int32 i_rowIndex, const Any& i_value ) throw (IndexOutOfBoundsException, RuntimeException) { ::comphelper::ComponentGuard aGuard( *this, rBHelper ); @@ -379,7 +379,7 @@ private: ); } - //------------------------------------------------------------------------------------------------------------------ + void SAL_CALL DefaultGridDataModel::updateRowData( const Sequence< ::sal_Int32 >& i_columnIndexes, ::sal_Int32 i_rowIndex, const Sequence< Any >& i_values ) throw (IndexOutOfBoundsException, IllegalArgumentException, RuntimeException) { ::comphelper::ComponentGuard aGuard( *this, rBHelper ); @@ -419,7 +419,7 @@ private: ); } - //------------------------------------------------------------------------------------------------------------------ + void SAL_CALL DefaultGridDataModel::updateRowHeading( ::sal_Int32 i_rowIndex, const Any& i_heading ) throw (IndexOutOfBoundsException, RuntimeException) { ::comphelper::ComponentGuard aGuard( *this, rBHelper ); @@ -436,14 +436,14 @@ private: ); } - //------------------------------------------------------------------------------------------------------------------ + void SAL_CALL DefaultGridDataModel::updateCellToolTip( ::sal_Int32 i_columnIndex, ::sal_Int32 i_rowIndex, const Any& i_value ) throw (IndexOutOfBoundsException, RuntimeException) { ::comphelper::ComponentGuard aGuard( *this, rBHelper ); impl_getCellDataAccess_throw( i_columnIndex, i_rowIndex ).second = i_value; } - //------------------------------------------------------------------------------------------------------------------ + void SAL_CALL DefaultGridDataModel::updateRowToolTip( ::sal_Int32 i_rowIndex, const Any& i_value ) throw (IndexOutOfBoundsException, RuntimeException) { ::comphelper::ComponentGuard aGuard( *this, rBHelper ); @@ -453,19 +453,19 @@ private: cell->second = i_value; } - //------------------------------------------------------------------------------------------------------------------ + void SAL_CALL DefaultGridDataModel::addGridDataListener( const Reference< grid::XGridDataListener >& i_listener ) throw (RuntimeException) { rBHelper.addListener( cppu::UnoType<XGridDataListener>::get(), i_listener ); } - //------------------------------------------------------------------------------------------------------------------ + void SAL_CALL DefaultGridDataModel::removeGridDataListener( const Reference< grid::XGridDataListener >& i_listener ) throw (RuntimeException) { rBHelper.removeListener( cppu::UnoType<XGridDataListener>::get(), i_listener ); } - //------------------------------------------------------------------------------------------------------------------ + void SAL_CALL DefaultGridDataModel::disposing() { ::com::sun::star::lang::EventObject aEvent; @@ -482,7 +482,7 @@ private: m_nColumnCount = 0; } - //------------------------------------------------------------------------------------------------------------------ + OUString SAL_CALL DefaultGridDataModel::getImplementationName( ) throw (RuntimeException) { return OUString("stardiv.Toolkit.DefaultGridDataModel"); @@ -500,7 +500,7 @@ private: return aSeq; } - //------------------------------------------------------------------------------------------------------------------ + Reference< css::util::XCloneable > SAL_CALL DefaultGridDataModel::createClone( ) throw (RuntimeException) { return new DefaultGridDataModel( *this ); diff --git a/toolkit/source/controls/grid/gridcolumn.cxx b/toolkit/source/controls/grid/gridcolumn.cxx index 644d9cd1aa5d..b4d78179aeab 100644 --- a/toolkit/source/controls/grid/gridcolumn.cxx +++ b/toolkit/source/controls/grid/gridcolumn.cxx @@ -37,7 +37,7 @@ namespace toolkit //================================================================================================================== //= DefaultGridColumnModel //================================================================================================================== - //------------------------------------------------------------------------------------------------------------------ + GridColumn::GridColumn() :GridColumn_Base( m_aMutex ) ,m_aIdentifier() @@ -52,7 +52,7 @@ namespace toolkit { } - //------------------------------------------------------------------------------------------------------------------ + GridColumn::GridColumn( GridColumn const & i_copySource ) :cppu::BaseMutex() ,GridColumn_Base( m_aMutex ) @@ -70,12 +70,12 @@ namespace toolkit { } - //------------------------------------------------------------------------------------------------------------------ + GridColumn::~GridColumn() { } - //------------------------------------------------------------------------------------------------------------------ + void GridColumn::broadcast_changed( sal_Char const * const i_asciiAttributeName, Any i_oldValue, Any i_newValue, ::comphelper::ComponentGuard& i_Guard ) { @@ -92,106 +92,106 @@ namespace toolkit pIter->notifyEach( &XGridColumnListener::columnChanged, aEvent ); } - //------------------------------------------------------------------------------------------------------------------ + ::com::sun::star::uno::Any SAL_CALL GridColumn::getIdentifier() throw (::com::sun::star::uno::RuntimeException) { ::comphelper::ComponentGuard aGuard( *this, rBHelper ); return m_aIdentifier; } - //------------------------------------------------------------------------------------------------------------------ + void SAL_CALL GridColumn::setIdentifier(const ::com::sun::star::uno::Any & value) throw (::com::sun::star::uno::RuntimeException) { ::comphelper::ComponentGuard aGuard( *this, rBHelper ); m_aIdentifier = value; } - //------------------------------------------------------------------------------------------------------------------ + ::sal_Int32 SAL_CALL GridColumn::getColumnWidth() throw (::com::sun::star::uno::RuntimeException) { ::comphelper::ComponentGuard aGuard( *this, rBHelper ); return m_nColumnWidth; } - //------------------------------------------------------------------------------------------------------------------ + void SAL_CALL GridColumn::setColumnWidth(::sal_Int32 value) throw (::com::sun::star::uno::RuntimeException) { impl_set( m_nColumnWidth, value, "ColumnWidth" ); } - //------------------------------------------------------------------------------------------------------------------ + ::sal_Int32 SAL_CALL GridColumn::getMaxWidth() throw (::com::sun::star::uno::RuntimeException) { ::comphelper::ComponentGuard aGuard( *this, rBHelper ); return m_nMaxWidth; } - //------------------------------------------------------------------------------------------------------------------ + void SAL_CALL GridColumn::setMaxWidth(::sal_Int32 value) throw (::com::sun::star::uno::RuntimeException) { impl_set( m_nMaxWidth, value, "MaxWidth" ); } - //------------------------------------------------------------------------------------------------------------------ + ::sal_Int32 SAL_CALL GridColumn::getMinWidth() throw (::com::sun::star::uno::RuntimeException) { ::comphelper::ComponentGuard aGuard( *this, rBHelper ); return m_nMinWidth; } - //------------------------------------------------------------------------------------------------------------------ + void SAL_CALL GridColumn::setMinWidth(::sal_Int32 value) throw (::com::sun::star::uno::RuntimeException) { impl_set( m_nMinWidth, value, "MinWidth" ); } - //------------------------------------------------------------------------------------------------------------------ + OUString SAL_CALL GridColumn::getTitle() throw (::com::sun::star::uno::RuntimeException) { ::comphelper::ComponentGuard aGuard( *this, rBHelper ); return m_sTitle; } - //------------------------------------------------------------------------------------------------------------------ + void SAL_CALL GridColumn::setTitle(const OUString & value) throw (::com::sun::star::uno::RuntimeException) { impl_set( m_sTitle, value, "Title" ); } - //------------------------------------------------------------------------------------------------------------------ + OUString SAL_CALL GridColumn::getHelpText() throw (RuntimeException) { ::comphelper::ComponentGuard aGuard( *this, rBHelper ); return m_sHelpText; } - //------------------------------------------------------------------------------------------------------------------ + void SAL_CALL GridColumn::setHelpText( const OUString & value ) throw (RuntimeException) { impl_set( m_sHelpText, value, "HelpText" ); } - //------------------------------------------------------------------------------------------------------------------ + sal_Bool SAL_CALL GridColumn::getResizeable() throw (::com::sun::star::uno::RuntimeException) { ::comphelper::ComponentGuard aGuard( *this, rBHelper ); return m_bResizeable; } - //------------------------------------------------------------------------------------------------------------------ + void SAL_CALL GridColumn::setResizeable(sal_Bool value) throw (::com::sun::star::uno::RuntimeException) { impl_set( m_bResizeable, value, "Resizeable" ); } - //------------------------------------------------------------------------------------------------------------------ + ::sal_Int32 SAL_CALL GridColumn::getFlexibility() throw (RuntimeException) { ::comphelper::ComponentGuard aGuard( *this, rBHelper ); return m_nFlexibility; } - //------------------------------------------------------------------------------------------------------------------ + void SAL_CALL GridColumn::setFlexibility( ::sal_Int32 i_value ) throw (IllegalArgumentException, RuntimeException) { if ( i_value < 0 ) @@ -199,32 +199,32 @@ namespace toolkit impl_set( m_nFlexibility, i_value, "Flexibility" ); } - //------------------------------------------------------------------------------------------------------------------ + HorizontalAlignment SAL_CALL GridColumn::getHorizontalAlign() throw (::com::sun::star::uno::RuntimeException) { ::comphelper::ComponentGuard aGuard( *this, rBHelper ); return m_eHorizontalAlign; } - //------------------------------------------------------------------------------------------------------------------ + void SAL_CALL GridColumn::setHorizontalAlign(HorizontalAlignment align) throw (::com::sun::star::uno::RuntimeException) { impl_set( m_eHorizontalAlign, align, "HorizontalAlign" ); } - //------------------------------------------------------------------------------------------------------------------ + void SAL_CALL GridColumn::addGridColumnListener( const Reference< XGridColumnListener >& xListener ) throw (RuntimeException) { rBHelper.addListener( cppu::UnoType<XGridColumnListener>::get(), xListener ); } - //------------------------------------------------------------------------------------------------------------------ + void SAL_CALL GridColumn::removeGridColumnListener( const Reference< XGridColumnListener >& xListener ) throw (RuntimeException) { rBHelper.removeListener( cppu::UnoType<XGridColumnListener>::get(), xListener ); } - //------------------------------------------------------------------------------------------------------------------ + void SAL_CALL GridColumn::disposing() { ::osl::MutexGuard aGuard( m_aMutex ); @@ -232,34 +232,34 @@ namespace toolkit m_sTitle = m_sHelpText = OUString(); } - //------------------------------------------------------------------------------------------------------------------ + ::sal_Int32 SAL_CALL GridColumn::getIndex() throw (RuntimeException) { ::comphelper::ComponentGuard aGuard( *this, rBHelper ); return m_nIndex; } - //------------------------------------------------------------------------------------------------------------------ + void GridColumn::setIndex( sal_Int32 const i_index ) { ::comphelper::ComponentGuard aGuard( *this, rBHelper ); m_nIndex = i_index; } - //------------------------------------------------------------------------------------------------------------------ + ::sal_Int32 SAL_CALL GridColumn::getDataColumnIndex() throw(RuntimeException) { ::comphelper::ComponentGuard aGuard( *this, rBHelper ); return m_nDataColumnIndex; } - //------------------------------------------------------------------------------------------------------------------ + void SAL_CALL GridColumn::setDataColumnIndex( ::sal_Int32 i_dataColumnIndex ) throw(RuntimeException) { impl_set( m_nDataColumnIndex, i_dataColumnIndex, "DataColumnIndex" ); } - //------------------------------------------------------------------------------------------------------------------ + OUString SAL_CALL GridColumn::getImplementationName( ) throw (RuntimeException) { return OUString( "org.openoffice.comp.toolkit.GridColumn" ); @@ -277,13 +277,13 @@ namespace toolkit return aSeq; } - //------------------------------------------------------------------------------------------------------------------ + Reference< XCloneable > SAL_CALL GridColumn::createClone( ) throw (RuntimeException) { return new GridColumn( *this ); } - //------------------------------------------------------------------------------------------------------------------ + sal_Int64 SAL_CALL GridColumn::getSomething( const Sequence< sal_Int8 >& i_identifier ) throw(RuntimeException) { if ( ( i_identifier.getLength() == 16 ) && ( i_identifier == getUnoTunnelId() ) ) @@ -291,14 +291,14 @@ namespace toolkit return 0; } - //------------------------------------------------------------------------------------------------------------------ + Sequence< sal_Int8 > GridColumn::getUnoTunnelId() throw() { static ::cppu::OImplementationId const aId; return aId.getImplementationId(); } - //------------------------------------------------------------------------------------------------------------------ + GridColumn* GridColumn::getImplementation( const Reference< XInterface >& i_component ) { Reference< XUnoTunnel > const xTunnel( i_component, UNO_QUERY ); diff --git a/toolkit/source/controls/grid/gridcontrol.cxx b/toolkit/source/controls/grid/gridcontrol.cxx index 84b6000ccfa7..ce2df3a18d4b 100644 --- a/toolkit/source/controls/grid/gridcontrol.cxx +++ b/toolkit/source/controls/grid/gridcontrol.cxx @@ -67,7 +67,7 @@ namespace } } -//---------------------------------------------------------------------------------------------------------------------- + UnoGridModel::UnoGridModel( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rxContext ) :UnoControlModel( rxContext ) { @@ -109,7 +109,7 @@ UnoGridModel::UnoGridModel( const ::com::sun::star::uno::Reference< ::com::sun:: ImplRegisterProperty( BASEPROPERTY_VERTICALALIGN ); } -//---------------------------------------------------------------------------------------------------------------------- + UnoGridModel::UnoGridModel( const UnoGridModel& rModel ) :UnoControlModel( rModel ) { @@ -154,13 +154,13 @@ UnoGridModel::UnoGridModel( const UnoGridModel& rModel ) osl_atomic_decrement( &m_refCount ); } -//---------------------------------------------------------------------------------------------------------------------- + UnoControlModel* UnoGridModel::Clone() const { return new UnoGridModel( *this ); } -//---------------------------------------------------------------------------------------------------------------------- + namespace { void lcl_dispose_nothrow( const Any& i_component ) @@ -177,7 +177,7 @@ namespace } } -//---------------------------------------------------------------------------------------------------------------------- + void SAL_CALL UnoGridModel::dispose( ) throw(RuntimeException) { lcl_dispose_nothrow( getFastPropertyValue( BASEPROPERTY_GRID_COLUMNMODEL ) ); @@ -186,7 +186,7 @@ void SAL_CALL UnoGridModel::dispose( ) throw(RuntimeException) UnoControlModel::dispose(); } -//---------------------------------------------------------------------------------------------------------------------- + void SAL_CALL UnoGridModel::setFastPropertyValue_NoBroadcast( sal_Int32 nHandle, const Any& rValue ) throw (Exception) { Any aOldSubModel; @@ -207,13 +207,13 @@ void SAL_CALL UnoGridModel::setFastPropertyValue_NoBroadcast( sal_Int32 nHandle, lcl_dispose_nothrow( aOldSubModel ); } -//---------------------------------------------------------------------------------------------------------------------- + OUString UnoGridModel::getServiceName() throw(RuntimeException) { return OUString("com.sun.star.awt.grid.UnoControlGridModel"); } -//---------------------------------------------------------------------------------------------------------------------- + Any UnoGridModel::ImplGetDefaultValue( sal_uInt16 nPropId ) const { switch( nPropId ) @@ -246,7 +246,7 @@ Any UnoGridModel::ImplGetDefaultValue( sal_uInt16 nPropId ) const } -//---------------------------------------------------------------------------------------------------------------------- + ::cppu::IPropertyArrayHelper& UnoGridModel::getInfoHelper() { static UnoPropertyArrayHelper* pHelper = NULL; @@ -258,7 +258,7 @@ Any UnoGridModel::ImplGetDefaultValue( sal_uInt16 nPropId ) const return *pHelper; } -//---------------------------------------------------------------------------------------------------------------------- + // XMultiPropertySet Reference< XPropertySetInfo > UnoGridModel::getPropertySetInfo( ) throw(RuntimeException) { @@ -277,18 +277,18 @@ UnoGridControl::UnoGridControl() { } -//---------------------------------------------------------------------------------------------------------------------- + UnoGridControl::~UnoGridControl() { } -//---------------------------------------------------------------------------------------------------------------------- + OUString UnoGridControl::GetComponentServiceName() { return OUString("Grid"); } -//---------------------------------------------------------------------------------------------------------------------- + void SAL_CALL UnoGridControl::dispose( ) throw(RuntimeException) { lang::EventObject aEvt; @@ -297,7 +297,7 @@ void SAL_CALL UnoGridControl::dispose( ) throw(RuntimeException) UnoControl::dispose(); } -//---------------------------------------------------------------------------------------------------------------------- + void SAL_CALL UnoGridControl::createPeer( const uno::Reference< awt::XToolkit > & rxToolkit, const uno::Reference< awt::XWindowPeer > & rParentPeer ) throw(uno::RuntimeException) { UnoControlBase::createPeer( rxToolkit, rParentPeer ); @@ -306,7 +306,7 @@ void SAL_CALL UnoGridControl::createPeer( const uno::Reference< awt::XToolkit > xGrid->addSelectionListener( &m_aSelectionListeners ); } -//---------------------------------------------------------------------------------------------------------------------- + namespace { void lcl_setEventForwarding( const Reference< XControlModel >& i_gridControlModel, const ::boost::scoped_ptr< toolkit::GridEventForwarder >& i_listener, @@ -346,7 +346,7 @@ namespace } } -//---------------------------------------------------------------------------------------------------------------------- + sal_Bool SAL_CALL UnoGridControl::setModel( const Reference< XControlModel >& i_model ) throw(RuntimeException) { lcl_setEventForwarding( getModel(), m_pEventForwarder, false ); @@ -356,90 +356,90 @@ sal_Bool SAL_CALL UnoGridControl::setModel( const Reference< XControlModel >& i_ return sal_True; } -//---------------------------------------------------------------------------------------------------------------------- + ::sal_Int32 UnoGridControl::getRowAtPoint(::sal_Int32 x, ::sal_Int32 y) throw (::com::sun::star::uno::RuntimeException) { Reference< XGridControl > const xGrid ( getPeer(), UNO_QUERY_THROW ); return xGrid->getRowAtPoint( x, y ); } -//---------------------------------------------------------------------------------------------------------------------- + ::sal_Int32 UnoGridControl::getColumnAtPoint(::sal_Int32 x, ::sal_Int32 y) throw (::com::sun::star::uno::RuntimeException) { Reference< XGridControl > const xGrid ( getPeer(), UNO_QUERY_THROW ); return xGrid->getColumnAtPoint( x, y ); } -//---------------------------------------------------------------------------------------------------------------------- + ::sal_Int32 SAL_CALL UnoGridControl::getCurrentColumn( ) throw (RuntimeException) { Reference< XGridControl > const xGrid ( getPeer(), UNO_QUERY_THROW ); return xGrid->getCurrentColumn(); } -//---------------------------------------------------------------------------------------------------------------------- + ::sal_Int32 SAL_CALL UnoGridControl::getCurrentRow( ) throw (RuntimeException) { Reference< XGridControl > const xGrid ( getPeer(), UNO_QUERY_THROW ); return xGrid->getCurrentRow(); } -//---------------------------------------------------------------------------------------------------------------------- + void SAL_CALL UnoGridControl::goToCell( ::sal_Int32 i_columnIndex, ::sal_Int32 i_rowIndex ) throw (RuntimeException, IndexOutOfBoundsException, VetoException) { Reference< XGridControl > const xGrid ( getPeer(), UNO_QUERY_THROW ); xGrid->goToCell( i_columnIndex, i_rowIndex ); } -//---------------------------------------------------------------------------------------------------------------------- + void SAL_CALL UnoGridControl::selectRow( ::sal_Int32 i_rowIndex ) throw (RuntimeException, IndexOutOfBoundsException ) { Reference< XGridRowSelection >( getPeer(), UNO_QUERY_THROW )->selectRow( i_rowIndex ); } -//---------------------------------------------------------------------------------------------------------------------- + void SAL_CALL UnoGridControl::selectAllRows() throw (::com::sun::star::uno::RuntimeException) { Reference< XGridRowSelection >( getPeer(), UNO_QUERY_THROW )->selectAllRows(); } -//---------------------------------------------------------------------------------------------------------------------- + void SAL_CALL UnoGridControl::deselectRow( ::sal_Int32 i_rowIndex ) throw (RuntimeException, IndexOutOfBoundsException ) { Reference< XGridRowSelection >( getPeer(), UNO_QUERY_THROW )->deselectRow( i_rowIndex ); } -//---------------------------------------------------------------------------------------------------------------------- + void SAL_CALL UnoGridControl::deselectAllRows() throw (::com::sun::star::uno::RuntimeException) { Reference< XGridRowSelection >( getPeer(), UNO_QUERY_THROW )->deselectAllRows(); } -//---------------------------------------------------------------------------------------------------------------------- + ::com::sun::star::uno::Sequence< ::sal_Int32 > SAL_CALL UnoGridControl::getSelectedRows() throw (::com::sun::star::uno::RuntimeException) { return Reference< XGridRowSelection >( getPeer(), UNO_QUERY_THROW )->getSelectedRows(); } -//---------------------------------------------------------------------------------------------------------------------- + ::sal_Bool SAL_CALL UnoGridControl::hasSelectedRows() throw (::com::sun::star::uno::RuntimeException) { return Reference< XGridRowSelection >( getPeer(), UNO_QUERY_THROW )->hasSelectedRows(); } -//---------------------------------------------------------------------------------------------------------------------- + ::sal_Bool SAL_CALL UnoGridControl::isRowSelected(::sal_Int32 index) throw (::com::sun::star::uno::RuntimeException) { return Reference< XGridRowSelection >( getPeer(), UNO_QUERY_THROW )->isRowSelected( index ); } -//---------------------------------------------------------------------------------------------------------------------- + void SAL_CALL UnoGridControl::addSelectionListener(const ::com::sun::star::uno::Reference< ::com::sun::star::awt::grid::XGridSelectionListener > & listener) throw (::com::sun::star::uno::RuntimeException) { m_aSelectionListeners.addInterface( listener ); } -//---------------------------------------------------------------------------------------------------------------------- + void SAL_CALL UnoGridControl::removeSelectionListener(const ::com::sun::star::uno::Reference< ::com::sun::star::awt::grid::XGridSelectionListener > & listener) throw (::com::sun::star::uno::RuntimeException) { m_aSelectionListeners.removeInterface( listener ); diff --git a/toolkit/source/controls/grid/grideventforwarder.cxx b/toolkit/source/controls/grid/grideventforwarder.cxx index 06508169374b..cad7956ac29f 100644 --- a/toolkit/source/controls/grid/grideventforwarder.cxx +++ b/toolkit/source/controls/grid/grideventforwarder.cxx @@ -43,30 +43,30 @@ namespace toolkit //================================================================================================================== //= GridEventForwarder //================================================================================================================== - //------------------------------------------------------------------------------------------------------------------ + GridEventForwarder::GridEventForwarder( UnoGridControl& i_parent ) :m_parent( i_parent ) { } - //------------------------------------------------------------------------------------------------------------------ + GridEventForwarder::~GridEventForwarder() { } - //------------------------------------------------------------------------------------------------------------------ + void SAL_CALL GridEventForwarder::acquire() throw() { m_parent.acquire(); } - //------------------------------------------------------------------------------------------------------------------ + void SAL_CALL GridEventForwarder::release() throw() { m_parent.release(); } - //------------------------------------------------------------------------------------------------------------------ + void SAL_CALL GridEventForwarder::rowsInserted( const GridDataEvent& i_event ) throw (RuntimeException) { Reference< XGridDataListener > xPeer( m_parent.getPeer(), UNO_QUERY ); @@ -74,7 +74,7 @@ namespace toolkit xPeer->rowsInserted( i_event ); } - //------------------------------------------------------------------------------------------------------------------ + void SAL_CALL GridEventForwarder::rowsRemoved( const GridDataEvent& i_event ) throw (RuntimeException) { Reference< XGridDataListener > xPeer( m_parent.getPeer(), UNO_QUERY ); @@ -82,7 +82,7 @@ namespace toolkit xPeer->rowsRemoved( i_event ); } - //------------------------------------------------------------------------------------------------------------------ + void SAL_CALL GridEventForwarder::dataChanged( const GridDataEvent& i_event ) throw (RuntimeException) { Reference< XGridDataListener > xPeer( m_parent.getPeer(), UNO_QUERY ); @@ -90,7 +90,7 @@ namespace toolkit xPeer->dataChanged( i_event ); } - //------------------------------------------------------------------------------------------------------------------ + void SAL_CALL GridEventForwarder::rowHeadingChanged( const GridDataEvent& i_event ) throw (RuntimeException) { Reference< XGridDataListener > xPeer( m_parent.getPeer(), UNO_QUERY ); @@ -98,7 +98,7 @@ namespace toolkit xPeer->rowHeadingChanged( i_event ); } - //------------------------------------------------------------------------------------------------------------------ + void SAL_CALL GridEventForwarder::elementInserted( const ContainerEvent& i_event ) throw (RuntimeException) { Reference< XContainerListener > xPeer( m_parent.getPeer(), UNO_QUERY ); @@ -106,7 +106,7 @@ namespace toolkit xPeer->elementInserted( i_event ); } - //------------------------------------------------------------------------------------------------------------------ + void SAL_CALL GridEventForwarder::elementRemoved( const ContainerEvent& i_event ) throw (RuntimeException) { Reference< XContainerListener > xPeer( m_parent.getPeer(), UNO_QUERY ); @@ -114,7 +114,7 @@ namespace toolkit xPeer->elementRemoved( i_event ); } - //------------------------------------------------------------------------------------------------------------------ + void SAL_CALL GridEventForwarder::elementReplaced( const ContainerEvent& i_event ) throw (RuntimeException) { Reference< XContainerListener > xPeer( m_parent.getPeer(), UNO_QUERY ); @@ -122,7 +122,7 @@ namespace toolkit xPeer->elementReplaced( i_event ); } - //------------------------------------------------------------------------------------------------------------------ + void SAL_CALL GridEventForwarder::disposing( const EventObject& i_event ) throw (RuntimeException) { Reference< XEventListener > xPeer( m_parent.getPeer(), UNO_QUERY ); diff --git a/toolkit/source/controls/grid/sortablegriddatamodel.cxx b/toolkit/source/controls/grid/sortablegriddatamodel.cxx index fc53ea7c492b..1ddd53e36f3e 100644 --- a/toolkit/source/controls/grid/sortablegriddatamodel.cxx +++ b/toolkit/source/controls/grid/sortablegriddatamodel.cxx @@ -207,7 +207,7 @@ private: return static_cast< const SortableGridDataModel* >( _pInstance )->checkInvariants(); } - //------------------------------------------------------------------------------------------------------------------ + const char* SortableGridDataModel::checkInvariants() const { if ( m_publicToPrivateRowIndex.size() != m_privateToPublicRowIndex.size() ) @@ -247,7 +247,7 @@ private: #define DBG_CHECK_ME() \ DBG_CHKTHIS( SortableGridDataModel, SortableGridDataModel_checkInvariants ) - //------------------------------------------------------------------------------------------------------------------ + namespace { template< class STLCONTAINER > @@ -262,7 +262,7 @@ private: //= SortableGridDataModel //================================================================================================================== DBG_NAME( SortableGridDataModel ) - //------------------------------------------------------------------------------------------------------------------ + SortableGridDataModel::SortableGridDataModel( Reference< XComponentContext > const & rxContext ) :SortableGridDataModel_Base( m_aMutex ) ,SortableGridDataModel_PrivateBase() @@ -278,7 +278,7 @@ private: DBG_CTOR( SortableGridDataModel, SortableGridDataModel_checkInvariants ); } - //------------------------------------------------------------------------------------------------------------------ + SortableGridDataModel::SortableGridDataModel( SortableGridDataModel const & i_copySource ) :cppu::BaseMutex() ,SortableGridDataModel_Base( m_aMutex ) @@ -299,7 +299,7 @@ private: m_delegator.set( i_copySource.m_delegator->createClone(), UNO_QUERY_THROW ); } - //------------------------------------------------------------------------------------------------------------------ + SortableGridDataModel::~SortableGridDataModel() { if ( !rBHelper.bDisposed ) @@ -311,7 +311,7 @@ private: DBG_DTOR( SortableGridDataModel, SortableGridDataModel_checkInvariants ); } - //------------------------------------------------------------------------------------------------------------------ + Any SAL_CALL SortableGridDataModel::queryInterface( const Type& aType ) throw (RuntimeException) { Any aReturn( SortableGridDataModel_Base::queryInterface( aType ) ); @@ -320,33 +320,33 @@ private: return aReturn; } - //------------------------------------------------------------------------------------------------------------------ + void SAL_CALL SortableGridDataModel::acquire( ) throw () { SortableGridDataModel_Base::acquire(); } - //------------------------------------------------------------------------------------------------------------------ + void SAL_CALL SortableGridDataModel::release( ) throw () { SortableGridDataModel_Base::release(); } - //------------------------------------------------------------------------------------------------------------------ + Sequence< Type > SAL_CALL SortableGridDataModel::getTypes( ) throw (RuntimeException) { return SortableGridDataModel_Base::getTypes(); // don't expose the types got via SortableGridDataModel_PrivateBase - they're private, after all } - //------------------------------------------------------------------------------------------------------------------ + Sequence< ::sal_Int8 > SAL_CALL SortableGridDataModel::getImplementationId( ) throw (RuntimeException) { static ::cppu::OImplementationId aId; return aId.getImplementationId(); } - //------------------------------------------------------------------------------------------------------------------ + namespace { Reference< XCollator > lcl_loadDefaultCollator_throw( const Reference<XComponentContext> & rxContext ) @@ -357,7 +357,7 @@ private: } } - //------------------------------------------------------------------------------------------------------------------ + void SAL_CALL SortableGridDataModel::initialize( const Sequence< Any >& i_arguments ) throw (Exception, RuntimeException) { ::comphelper::ComponentGuard aGuard( *this, rBHelper ); @@ -393,7 +393,7 @@ private: m_isInitialized = true; } - //------------------------------------------------------------------------------------------------------------------ + GridDataEvent SortableGridDataModel::impl_createPublicEvent( GridDataEvent const & i_originalEvent ) const { GridDataEvent aEvent( i_originalEvent ); @@ -403,7 +403,7 @@ private: return aEvent; } - //------------------------------------------------------------------------------------------------------------------ + void SortableGridDataModel::impl_broadcast( void ( SAL_CALL XGridDataListener::*i_listenerMethod )( const GridDataEvent & ), GridDataEvent const & i_publicEvent, MethodGuard& i_instanceLock ) { @@ -415,7 +415,7 @@ private: pListeners->notifyEach( i_listenerMethod, i_publicEvent ); } - //------------------------------------------------------------------------------------------------------------------ + void SAL_CALL SortableGridDataModel::rowsInserted( const GridDataEvent& i_event ) throw (RuntimeException) { MethodGuard aGuard( *this, rBHelper ); @@ -433,7 +433,7 @@ private: impl_broadcast( &XGridDataListener::rowsInserted, aEvent, aGuard ); } - //------------------------------------------------------------------------------------------------------------------ + namespace { void lcl_decrementValuesGreaterThan( ::std::vector< ::sal_Int32 > & io_indexMap, sal_Int32 const i_threshold ) @@ -449,7 +449,7 @@ private: } } - //------------------------------------------------------------------------------------------------------------------ + void SortableGridDataModel::impl_rebuildIndexesAndNotify( MethodGuard& i_instanceLock ) { OSL_PRECOND( impl_isSorted_nothrow(), "SortableGridDataModel::impl_rebuildIndexesAndNotify: illegal call!" ); @@ -475,7 +475,7 @@ private: impl_broadcast( &XGridDataListener::rowsInserted, aAdditionEvent, i_instanceLock ); } - //------------------------------------------------------------------------------------------------------------------ + void SAL_CALL SortableGridDataModel::rowsRemoved( const GridDataEvent& i_event ) throw (RuntimeException) { MethodGuard aGuard( *this, rBHelper ); @@ -536,7 +536,7 @@ private: impl_broadcast( &XGridDataListener::rowsRemoved, aEvent, aGuard ); } - //------------------------------------------------------------------------------------------------------------------ + void SAL_CALL SortableGridDataModel::dataChanged( const GridDataEvent& i_event ) throw (RuntimeException) { MethodGuard aGuard( *this, rBHelper ); @@ -546,7 +546,7 @@ private: impl_broadcast( &XGridDataListener::dataChanged, aEvent, aGuard ); } - //------------------------------------------------------------------------------------------------------------------ + void SAL_CALL SortableGridDataModel::rowHeadingChanged( const GridDataEvent& i_event ) throw (RuntimeException) { MethodGuard aGuard( *this, rBHelper ); @@ -556,14 +556,14 @@ private: impl_broadcast( &XGridDataListener::rowHeadingChanged, aEvent, aGuard ); } - //------------------------------------------------------------------------------------------------------------------ + void SAL_CALL SortableGridDataModel::disposing( const EventObject& i_event ) throw (RuntimeException) { // not interested in OSL_UNUSED( i_event ); } - //------------------------------------------------------------------------------------------------------------------ + namespace { class CellDataLessComparison : public ::std::binary_function< sal_Int32, sal_Int32, bool > @@ -604,7 +604,7 @@ private: }; } - //------------------------------------------------------------------------------------------------------------------ + bool SortableGridDataModel::impl_reIndex_nothrow( ::sal_Int32 const i_columnIndex, sal_Bool const i_sortAscending ) { ::sal_Int32 const rowCount( getRowCount() ); @@ -650,7 +650,7 @@ private: return true; } - //------------------------------------------------------------------------------------------------------------------ + void SAL_CALL SortableGridDataModel::sortByColumn( ::sal_Int32 i_columnIndex, ::sal_Bool i_sortAscending ) throw (IndexOutOfBoundsException, RuntimeException) { MethodGuard aGuard( *this, rBHelper ); @@ -672,7 +672,7 @@ private: ); } - //------------------------------------------------------------------------------------------------------------------ + void SortableGridDataModel::impl_removeColumnSort_noBroadcast() { lcl_clear( m_publicToPrivateRowIndex ); @@ -682,7 +682,7 @@ private: m_sortAscending = sal_True; } - //------------------------------------------------------------------------------------------------------------------ + void SortableGridDataModel::impl_removeColumnSort( MethodGuard& i_instanceLock ) { impl_removeColumnSort_noBroadcast(); @@ -693,7 +693,7 @@ private: ); } - //------------------------------------------------------------------------------------------------------------------ + void SAL_CALL SortableGridDataModel::removeColumnSort( ) throw (RuntimeException) { MethodGuard aGuard( *this, rBHelper ); @@ -701,7 +701,7 @@ private: impl_removeColumnSort( aGuard ); } - //------------------------------------------------------------------------------------------------------------------ + css::beans::Pair< ::sal_Int32, ::sal_Bool > SAL_CALL SortableGridDataModel::getCurrentSortOrder( ) throw (RuntimeException) { MethodGuard aGuard( *this, rBHelper ); @@ -710,7 +710,7 @@ private: return css::beans::Pair< ::sal_Int32, ::sal_Bool >( m_currentSortColumn, m_sortAscending ); } - //------------------------------------------------------------------------------------------------------------------ + void SAL_CALL SortableGridDataModel::addRow( const Any& i_heading, const Sequence< Any >& i_data ) throw (RuntimeException) { MethodGuard aGuard( *this, rBHelper ); @@ -721,7 +721,7 @@ private: delegator->addRow( i_heading, i_data ); } - //------------------------------------------------------------------------------------------------------------------ + void SAL_CALL SortableGridDataModel::addRows( const Sequence< Any >& i_headings, const Sequence< Sequence< Any > >& i_data ) throw (IllegalArgumentException, RuntimeException) { MethodGuard aGuard( *this, rBHelper ); @@ -732,7 +732,7 @@ private: delegator->addRows( i_headings, i_data ); } - //------------------------------------------------------------------------------------------------------------------ + void SAL_CALL SortableGridDataModel::insertRow( ::sal_Int32 i_index, const Any& i_heading, const Sequence< Any >& i_data ) throw (RuntimeException, IndexOutOfBoundsException) { MethodGuard aGuard( *this, rBHelper ); @@ -746,7 +746,7 @@ private: delegator->insertRow( rowIndex, i_heading, i_data ); } - //------------------------------------------------------------------------------------------------------------------ + void SAL_CALL SortableGridDataModel::insertRows( ::sal_Int32 i_index, const Sequence< Any>& i_headings, const Sequence< Sequence< Any > >& i_data ) throw (IllegalArgumentException, IndexOutOfBoundsException, RuntimeException) { MethodGuard aGuard( *this, rBHelper ); @@ -760,7 +760,7 @@ private: delegator->insertRows( rowIndex, i_headings, i_data ); } - //------------------------------------------------------------------------------------------------------------------ + void SAL_CALL SortableGridDataModel::removeRow( ::sal_Int32 i_rowIndex ) throw (IndexOutOfBoundsException, RuntimeException) { MethodGuard aGuard( *this, rBHelper ); @@ -773,7 +773,7 @@ private: delegator->removeRow( rowIndex ); } - //------------------------------------------------------------------------------------------------------------------ + void SAL_CALL SortableGridDataModel::removeAllRows( ) throw (RuntimeException) { MethodGuard aGuard( *this, rBHelper ); @@ -784,7 +784,7 @@ private: delegator->removeAllRows(); } - //------------------------------------------------------------------------------------------------------------------ + void SAL_CALL SortableGridDataModel::updateCellData( ::sal_Int32 i_columnIndex, ::sal_Int32 i_rowIndex, const Any& i_value ) throw (IndexOutOfBoundsException, RuntimeException) { MethodGuard aGuard( *this, rBHelper ); @@ -797,7 +797,7 @@ private: delegator->updateCellData( i_columnIndex, rowIndex, i_value ); } - //------------------------------------------------------------------------------------------------------------------ + void SAL_CALL SortableGridDataModel::updateRowData( const Sequence< ::sal_Int32 >& i_columnIndexes, ::sal_Int32 i_rowIndex, const Sequence< Any >& i_values ) throw (IndexOutOfBoundsException, IllegalArgumentException, RuntimeException) { MethodGuard aGuard( *this, rBHelper ); @@ -810,7 +810,7 @@ private: delegator->updateRowData( i_columnIndexes, rowIndex, i_values ); } - //------------------------------------------------------------------------------------------------------------------ + void SAL_CALL SortableGridDataModel::updateRowHeading( ::sal_Int32 i_rowIndex, const Any& i_heading ) throw (IndexOutOfBoundsException, RuntimeException) { MethodGuard aGuard( *this, rBHelper ); @@ -823,7 +823,7 @@ private: delegator->updateRowHeading( rowIndex, i_heading ); } - //------------------------------------------------------------------------------------------------------------------ + void SAL_CALL SortableGridDataModel::updateCellToolTip( ::sal_Int32 i_columnIndex, ::sal_Int32 i_rowIndex, const Any& i_value ) throw (IndexOutOfBoundsException, RuntimeException) { MethodGuard aGuard( *this, rBHelper ); @@ -836,7 +836,7 @@ private: delegator->updateCellToolTip( i_columnIndex, rowIndex, i_value ); } - //------------------------------------------------------------------------------------------------------------------ + void SAL_CALL SortableGridDataModel::updateRowToolTip( ::sal_Int32 i_rowIndex, const Any& i_value ) throw (IndexOutOfBoundsException, RuntimeException) { MethodGuard aGuard( *this, rBHelper ); @@ -849,19 +849,19 @@ private: delegator->updateRowToolTip( rowIndex, i_value ); } - //------------------------------------------------------------------------------------------------------------------ + void SAL_CALL SortableGridDataModel::addGridDataListener( const Reference< XGridDataListener >& i_listener ) throw (RuntimeException) { rBHelper.addListener( cppu::UnoType<XGridDataListener>::get(), i_listener ); } - //------------------------------------------------------------------------------------------------------------------ + void SAL_CALL SortableGridDataModel::removeGridDataListener( const Reference< XGridDataListener >& i_listener ) throw (RuntimeException) { rBHelper.removeListener( cppu::UnoType<XGridDataListener>::get(), i_listener ); } - //------------------------------------------------------------------------------------------------------------------ + ::sal_Int32 SAL_CALL SortableGridDataModel::getRowCount() throw (RuntimeException) { MethodGuard aGuard( *this, rBHelper ); @@ -872,7 +872,7 @@ private: return delegator->getRowCount(); } - //------------------------------------------------------------------------------------------------------------------ + ::sal_Int32 SAL_CALL SortableGridDataModel::getColumnCount() throw (RuntimeException) { MethodGuard aGuard( *this, rBHelper ); @@ -883,7 +883,7 @@ private: return delegator->getColumnCount(); } - //------------------------------------------------------------------------------------------------------------------ + Any SAL_CALL SortableGridDataModel::getCellData( ::sal_Int32 i_columnIndex, ::sal_Int32 i_rowIndex ) throw (IndexOutOfBoundsException, RuntimeException) { MethodGuard aGuard( *this, rBHelper ); @@ -896,7 +896,7 @@ private: return delegator->getCellData( i_columnIndex, rowIndex ); } - //------------------------------------------------------------------------------------------------------------------ + Any SAL_CALL SortableGridDataModel::getCellToolTip( ::sal_Int32 i_columnIndex, ::sal_Int32 i_rowIndex ) throw (IndexOutOfBoundsException, RuntimeException) { MethodGuard aGuard( *this, rBHelper ); @@ -909,7 +909,7 @@ private: return delegator->getCellToolTip( i_columnIndex, rowIndex ); } - //------------------------------------------------------------------------------------------------------------------ + Any SAL_CALL SortableGridDataModel::getRowHeading( ::sal_Int32 i_rowIndex ) throw (IndexOutOfBoundsException, RuntimeException) { MethodGuard aGuard( *this, rBHelper ); @@ -922,7 +922,7 @@ private: return delegator->getRowHeading( rowIndex ); } - //------------------------------------------------------------------------------------------------------------------ + Sequence< Any > SAL_CALL SortableGridDataModel::getRowData( ::sal_Int32 i_rowIndex ) throw (IndexOutOfBoundsException, RuntimeException) { MethodGuard aGuard( *this, rBHelper ); @@ -935,7 +935,7 @@ private: return delegator->getRowData( rowIndex ); } - //------------------------------------------------------------------------------------------------------------------ + void SAL_CALL SortableGridDataModel::disposing() { m_currentSortColumn = -1; @@ -954,7 +954,7 @@ private: lcl_clear( m_privateToPublicRowIndex ); } - //------------------------------------------------------------------------------------------------------------------ + Reference< css::util::XCloneable > SAL_CALL SortableGridDataModel::createClone( ) throw (RuntimeException) { MethodGuard aGuard( *this, rBHelper ); @@ -963,7 +963,7 @@ private: return new SortableGridDataModel( *this ); } - //------------------------------------------------------------------------------------------------------------------ + OUString SAL_CALL SortableGridDataModel::getImplementationName( ) throw (RuntimeException) { return OUString( "org.openoffice.comp.toolkit.SortableGridDataModel" ); @@ -981,7 +981,7 @@ private: return aServiceNames; } - //------------------------------------------------------------------------------------------------------------------ + ::sal_Int32 SortableGridDataModel::impl_getPrivateRowIndex_throw( ::sal_Int32 const i_publicRowIndex ) const { if ( ( i_publicRowIndex < 0 ) || ( i_publicRowIndex >= m_delegator->getRowCount() ) ) @@ -999,7 +999,7 @@ private: return m_publicToPrivateRowIndex[ i_publicRowIndex ]; } - //------------------------------------------------------------------------------------------------------------------ + ::sal_Int32 SortableGridDataModel::impl_getPublicRowIndex_nothrow( ::sal_Int32 const i_privateRowIndex ) const { if ( !impl_isSorted_nothrow() ) |