diff options
author | Frank Schoenheit [fs] <frank.schoenheit@oracle.com> | 2010-12-17 14:32:31 +0100 |
---|---|---|
committer | Frank Schoenheit [fs] <frank.schoenheit@oracle.com> | 2010-12-17 14:32:31 +0100 |
commit | 7fe193a7f64b61b8b1fb565c469e5c3decdbc8ef (patch) | |
tree | f902004ed835b28bef9911c1ee7cc593ffe4db78 /toolkit/source/controls | |
parent | 40b70c5f947f72a5776f114372cb5cc3a6ca7973 (diff) |
gridsort: renamed XGridDataModel::add/removeDataListener to add/removeGridDataListener - this consistency with the actual listener type name will make introspection work
Diffstat (limited to 'toolkit/source/controls')
-rw-r--r-- | toolkit/source/controls/grid/defaultgriddatamodel.cxx | 4 | ||||
-rw-r--r-- | toolkit/source/controls/grid/defaultgriddatamodel.hxx | 4 | ||||
-rw-r--r-- | toolkit/source/controls/grid/gridcontrol.cxx | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/toolkit/source/controls/grid/defaultgriddatamodel.cxx b/toolkit/source/controls/grid/defaultgriddatamodel.cxx index 7ffafdf0ddb6..bf6eb5ed501c 100644 --- a/toolkit/source/controls/grid/defaultgriddatamodel.cxx +++ b/toolkit/source/controls/grid/defaultgriddatamodel.cxx @@ -225,14 +225,14 @@ void SAL_CALL DefaultGridDataModel::removeRow(::sal_Int32 index) throw (::com::s //--------------------------------------------------------------------- -void SAL_CALL DefaultGridDataModel::addDataListener( const Reference< XGridDataListener >& xListener ) throw (RuntimeException) +void SAL_CALL DefaultGridDataModel::addGridDataListener( const Reference< XGridDataListener >& xListener ) throw (RuntimeException) { BrdcstHelper.addListener( XGridDataListener::static_type(), xListener ); } //--------------------------------------------------------------------- -void SAL_CALL DefaultGridDataModel::removeDataListener( const Reference< XGridDataListener >& xListener ) throw (RuntimeException) +void SAL_CALL DefaultGridDataModel::removeGridDataListener( const Reference< XGridDataListener >& xListener ) throw (RuntimeException) { BrdcstHelper.removeListener( XGridDataListener::static_type(), xListener ); } diff --git a/toolkit/source/controls/grid/defaultgriddatamodel.hxx b/toolkit/source/controls/grid/defaultgriddatamodel.hxx index ea11a8a9a00a..b30bd758147c 100644 --- a/toolkit/source/controls/grid/defaultgriddatamodel.hxx +++ b/toolkit/source/controls/grid/defaultgriddatamodel.hxx @@ -68,8 +68,8 @@ public: virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< Any > > SAL_CALL getData() throw (::com::sun::star::uno::RuntimeException); virtual void SAL_CALL addRow(const ::rtl::OUString & headername, const ::com::sun::star::uno::Sequence< Any > & data) throw (::com::sun::star::uno::RuntimeException); virtual void SAL_CALL removeRow(::sal_Int32 index) throw (::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL addDataListener( const Reference< XGridDataListener >& xListener ) throw (RuntimeException); - virtual void SAL_CALL removeDataListener( const Reference< XGridDataListener >& xListener ) throw (RuntimeException); + virtual void SAL_CALL addGridDataListener( const Reference< XGridDataListener >& xListener ) throw (RuntimeException); + virtual void SAL_CALL removeGridDataListener( const Reference< XGridDataListener >& xListener ) throw (RuntimeException); virtual void SAL_CALL removeAll() throw (RuntimeException); virtual void SAL_CALL setRowHeaderWidth(sal_Int32 _value) throw (::com::sun::star::uno::RuntimeException); virtual sal_Int32 SAL_CALL getRowHeaderWidth() throw (::com::sun::star::uno::RuntimeException); diff --git a/toolkit/source/controls/grid/gridcontrol.cxx b/toolkit/source/controls/grid/gridcontrol.cxx index cc16d1f2c355..8a109b667176 100644 --- a/toolkit/source/controls/grid/gridcontrol.cxx +++ b/toolkit/source/controls/grid/gridcontrol.cxx @@ -234,9 +234,9 @@ namespace UNO_QUERY_THROW ); if ( i_add ) - xDataModel->addDataListener( i_listener.get() ); + xDataModel->addGridDataListener( i_listener.get() ); else - xDataModel->removeDataListener( i_listener.get() ); + xDataModel->removeGridDataListener( i_listener.get() ); } catch( const Exception& ) { |