diff options
Diffstat (limited to 'forms/source/component/ListBox.cxx')
-rw-r--r-- | forms/source/component/ListBox.cxx | 78 |
1 files changed, 38 insertions, 40 deletions
diff --git a/forms/source/component/ListBox.cxx b/forms/source/component/ListBox.cxx index 6874feb25059..2b5426f23a6c 100644 --- a/forms/source/component/ListBox.cxx +++ b/forms/source/component/ListBox.cxx @@ -205,7 +205,7 @@ namespace frm // XServiceInfo - css::uno::Sequence<OUString> SAL_CALL OListBoxModel::getSupportedServiceNames() throw(RuntimeException, std::exception) + css::uno::Sequence<OUString> SAL_CALL OListBoxModel::getSupportedServiceNames() { css::uno::Sequence<OUString> aSupported = OBoundControlModel::getSupportedServiceNames(); @@ -230,7 +230,7 @@ namespace frm } - Any SAL_CALL OListBoxModel::queryAggregation(const Type& _rType) throw (RuntimeException, std::exception) + Any SAL_CALL OListBoxModel::queryAggregation(const Type& _rType) { Any aReturn = OBoundControlModel::queryAggregation( _rType ); if ( !aReturn.hasValue() ) @@ -292,7 +292,7 @@ namespace frm } - void OListBoxModel::setFastPropertyValue_NoBroadcast(sal_Int32 _nHandle, const Any& _rValue) throw (css::uno::Exception, std::exception) + void OListBoxModel::setFastPropertyValue_NoBroadcast(sal_Int32 _nHandle, const Any& _rValue) { switch (_nHandle) { @@ -390,7 +390,6 @@ namespace frm sal_Bool OListBoxModel::convertFastPropertyValue( Any& _rConvertedValue, Any& _rOldValue, sal_Int32 _nHandle, const Any& _rValue) - throw (IllegalArgumentException, RuntimeException, std::exception) { bool bModified(false); switch (_nHandle) @@ -442,7 +441,7 @@ namespace frm } - void SAL_CALL OListBoxModel::setPropertyValues( const Sequence< OUString >& _rPropertyNames, const Sequence< Any >& _rValues ) throw(PropertyVetoException, IllegalArgumentException, WrappedTargetException, RuntimeException, std::exception) + void SAL_CALL OListBoxModel::setPropertyValues( const Sequence< OUString >& _rPropertyNames, const Sequence< Any >& _rValues ) { // if both SelectedItems and StringItemList are set, care for this // #i27024# @@ -494,7 +493,7 @@ namespace frm } - void OListBoxModel::_propertyChanged( const PropertyChangeEvent& i_rEvent ) throw ( RuntimeException ) + void OListBoxModel::_propertyChanged( const PropertyChangeEvent& i_rEvent ) { if ( i_rEvent.PropertyName == PROPERTY_STRINGITEMLIST ) { @@ -519,14 +518,13 @@ namespace frm } - OUString SAL_CALL OListBoxModel::getServiceName() throw(RuntimeException, std::exception) + OUString SAL_CALL OListBoxModel::getServiceName() { return OUString(FRM_COMPONENT_LISTBOX); // old (non-sun) name for compatibility ! } void SAL_CALL OListBoxModel::write(const Reference<XObjectOutputStream>& _rxOutStream) - throw(IOException, RuntimeException, std::exception) { OBoundControlModel::write(_rxOutStream); @@ -562,7 +560,7 @@ namespace frm } - void SAL_CALL OListBoxModel::read(const Reference<XObjectInputStream>& _rxInStream) throw(IOException, RuntimeException, std::exception) + void SAL_CALL OListBoxModel::read(const Reference<XObjectInputStream>& _rxInStream) { // We need to respect dependencies for certain variables. // Therefore, we need to set them explicitly via setPropertyValue(). @@ -1280,7 +1278,7 @@ namespace frm } - void SAL_CALL OListBoxModel::disposing( const EventObject& _rSource ) throw ( RuntimeException, std::exception ) + void SAL_CALL OListBoxModel::disposing( const EventObject& _rSource ) { if ( !OEntryListHelper::handleDisposing( _rSource ) ) OBoundControlModel::disposing( _rSource ); @@ -1763,7 +1761,7 @@ namespace frm } - Any SAL_CALL OListBoxControl::queryAggregation(const Type& _rType) throw (RuntimeException, std::exception) + Any SAL_CALL OListBoxControl::queryAggregation(const Type& _rType) { Any aReturn = OListBoxControl_BASE::queryInterface( _rType ); @@ -1817,7 +1815,7 @@ namespace frm } - css::uno::Sequence<OUString> SAL_CALL OListBoxControl::getSupportedServiceNames() throw(RuntimeException, std::exception) + css::uno::Sequence<OUString> SAL_CALL OListBoxControl::getSupportedServiceNames() { css::uno::Sequence<OUString> aSupported = OBoundControl::getSupportedServiceNames(); aSupported.realloc(aSupported.getLength() + 2); @@ -1831,7 +1829,7 @@ namespace frm // XFocusListener - void SAL_CALL OListBoxControl::focusGained(const FocusEvent& /*_rEvent*/) throw(RuntimeException, std::exception) + void SAL_CALL OListBoxControl::focusGained(const FocusEvent& /*_rEvent*/) { ::osl::MutexGuard aGuard(m_aMutex); if ( m_aChangeListeners.getLength() ) // only if there are listeners @@ -1846,14 +1844,14 @@ namespace frm } - void SAL_CALL OListBoxControl::focusLost(const FocusEvent& /*_rEvent*/) throw(RuntimeException, std::exception) + void SAL_CALL OListBoxControl::focusLost(const FocusEvent& /*_rEvent*/) { m_aCurrentSelection.clear(); } // XItemListener - void SAL_CALL OListBoxControl::itemStateChanged(const ItemEvent& _rEvent) throw(RuntimeException, std::exception) + void SAL_CALL OListBoxControl::itemStateChanged(const ItemEvent& _rEvent) { // forward this to our listeners Reference< XChild > xChild( getModel(), UNO_QUERY ); @@ -1923,20 +1921,20 @@ namespace frm // XEventListener - void SAL_CALL OListBoxControl::disposing(const EventObject& _rSource) throw (RuntimeException, std::exception) + void SAL_CALL OListBoxControl::disposing(const EventObject& _rSource) { OBoundControl::disposing(_rSource); } // XChangeBroadcaster - void SAL_CALL OListBoxControl::addChangeListener(const Reference<XChangeListener>& _rxListener) throw(RuntimeException, std::exception) + void SAL_CALL OListBoxControl::addChangeListener(const Reference<XChangeListener>& _rxListener) { m_aChangeListeners.addInterface( _rxListener ); } - void SAL_CALL OListBoxControl::removeChangeListener(const Reference<XChangeListener>& _rxListener) throw(RuntimeException, std::exception) + void SAL_CALL OListBoxControl::removeChangeListener(const Reference<XChangeListener>& _rxListener) { m_aChangeListeners.removeInterface( _rxListener ); } @@ -1990,54 +1988,54 @@ namespace frm } - void SAL_CALL OListBoxControl::addItemListener( const Reference< XItemListener >& l ) throw (RuntimeException, std::exception) + void SAL_CALL OListBoxControl::addItemListener( const Reference< XItemListener >& l ) { m_aItemListeners.addInterface( l ); } - void SAL_CALL OListBoxControl::removeItemListener( const Reference< XItemListener >& l ) throw (RuntimeException, std::exception) + void SAL_CALL OListBoxControl::removeItemListener( const Reference< XItemListener >& l ) { m_aItemListeners.removeInterface( l ); } - void SAL_CALL OListBoxControl::addActionListener( const Reference< XActionListener >& l ) throw (RuntimeException, std::exception) + void SAL_CALL OListBoxControl::addActionListener( const Reference< XActionListener >& l ) { if ( m_xAggregateListBox.is() ) m_xAggregateListBox->addActionListener( l ); } - void SAL_CALL OListBoxControl::removeActionListener( const Reference< XActionListener >& l ) throw (RuntimeException, std::exception) + void SAL_CALL OListBoxControl::removeActionListener( const Reference< XActionListener >& l ) { if ( m_xAggregateListBox.is() ) m_xAggregateListBox->removeActionListener( l ); } - void SAL_CALL OListBoxControl::addItem( const OUString& aItem, ::sal_Int16 nPos ) throw (RuntimeException, std::exception) + void SAL_CALL OListBoxControl::addItem( const OUString& aItem, ::sal_Int16 nPos ) { if ( m_xAggregateListBox.is() ) m_xAggregateListBox->addItem( aItem, nPos ); } - void SAL_CALL OListBoxControl::addItems( const Sequence< OUString >& aItems, ::sal_Int16 nPos ) throw (RuntimeException, std::exception) + void SAL_CALL OListBoxControl::addItems( const Sequence< OUString >& aItems, ::sal_Int16 nPos ) { if ( m_xAggregateListBox.is() ) m_xAggregateListBox->addItems( aItems, nPos ); } - void SAL_CALL OListBoxControl::removeItems( ::sal_Int16 nPos, ::sal_Int16 nCount ) throw (RuntimeException, std::exception) + void SAL_CALL OListBoxControl::removeItems( ::sal_Int16 nPos, ::sal_Int16 nCount ) { if ( m_xAggregateListBox.is() ) m_xAggregateListBox->removeItems( nPos, nCount ); } - ::sal_Int16 SAL_CALL OListBoxControl::getItemCount( ) throw (RuntimeException, std::exception) + ::sal_Int16 SAL_CALL OListBoxControl::getItemCount( ) { if ( m_xAggregateListBox.is() ) return m_xAggregateListBox->getItemCount(); @@ -2045,7 +2043,7 @@ namespace frm } - OUString SAL_CALL OListBoxControl::getItem( ::sal_Int16 nPos ) throw (RuntimeException, std::exception) + OUString SAL_CALL OListBoxControl::getItem( ::sal_Int16 nPos ) { if ( m_xAggregateListBox.is() ) return m_xAggregateListBox->getItem( nPos ); @@ -2053,7 +2051,7 @@ namespace frm } - Sequence< OUString > SAL_CALL OListBoxControl::getItems( ) throw (RuntimeException, std::exception) + Sequence< OUString > SAL_CALL OListBoxControl::getItems( ) { if ( m_xAggregateListBox.is() ) return m_xAggregateListBox->getItems(); @@ -2061,7 +2059,7 @@ namespace frm } - ::sal_Int16 SAL_CALL OListBoxControl::getSelectedItemPos( ) throw (RuntimeException, std::exception) + ::sal_Int16 SAL_CALL OListBoxControl::getSelectedItemPos( ) { if ( m_xAggregateListBox.is() ) return m_xAggregateListBox->getSelectedItemPos(); @@ -2069,7 +2067,7 @@ namespace frm } - Sequence< ::sal_Int16 > SAL_CALL OListBoxControl::getSelectedItemsPos( ) throw (RuntimeException, std::exception) + Sequence< ::sal_Int16 > SAL_CALL OListBoxControl::getSelectedItemsPos( ) { if ( m_xAggregateListBox.is() ) return m_xAggregateListBox->getSelectedItemsPos(); @@ -2077,7 +2075,7 @@ namespace frm } - OUString SAL_CALL OListBoxControl::getSelectedItem( ) throw (RuntimeException, std::exception) + OUString SAL_CALL OListBoxControl::getSelectedItem( ) { if ( m_xAggregateListBox.is() ) return m_xAggregateListBox->getSelectedItem(); @@ -2085,7 +2083,7 @@ namespace frm } - Sequence< OUString > SAL_CALL OListBoxControl::getSelectedItems( ) throw (RuntimeException, std::exception) + Sequence< OUString > SAL_CALL OListBoxControl::getSelectedItems( ) { if ( m_xAggregateListBox.is() ) return m_xAggregateListBox->getSelectedItems(); @@ -2093,28 +2091,28 @@ namespace frm } - void SAL_CALL OListBoxControl::selectItemPos( ::sal_Int16 nPos, sal_Bool bSelect ) throw (RuntimeException, std::exception) + void SAL_CALL OListBoxControl::selectItemPos( ::sal_Int16 nPos, sal_Bool bSelect ) { if ( m_xAggregateListBox.is() ) m_xAggregateListBox->selectItemPos( nPos, bSelect ); } - void SAL_CALL OListBoxControl::selectItemsPos( const Sequence< ::sal_Int16 >& aPositions, sal_Bool bSelect ) throw (RuntimeException, std::exception) + void SAL_CALL OListBoxControl::selectItemsPos( const Sequence< ::sal_Int16 >& aPositions, sal_Bool bSelect ) { if ( m_xAggregateListBox.is() ) m_xAggregateListBox->selectItemsPos( aPositions, bSelect ); } - void SAL_CALL OListBoxControl::selectItem( const OUString& aItem, sal_Bool bSelect ) throw (RuntimeException, std::exception) + void SAL_CALL OListBoxControl::selectItem( const OUString& aItem, sal_Bool bSelect ) { if ( m_xAggregateListBox.is() ) m_xAggregateListBox->selectItem( aItem, bSelect ); } - sal_Bool SAL_CALL OListBoxControl::isMutipleMode( ) throw (RuntimeException, std::exception) + sal_Bool SAL_CALL OListBoxControl::isMutipleMode( ) { if ( m_xAggregateListBox.is() ) return m_xAggregateListBox->isMutipleMode(); @@ -2122,14 +2120,14 @@ namespace frm } - void SAL_CALL OListBoxControl::setMultipleMode( sal_Bool bMulti ) throw (RuntimeException, std::exception) + void SAL_CALL OListBoxControl::setMultipleMode( sal_Bool bMulti ) { if ( m_xAggregateListBox.is() ) m_xAggregateListBox->setMultipleMode( bMulti ); } - ::sal_Int16 SAL_CALL OListBoxControl::getDropDownLineCount( ) throw (RuntimeException, std::exception) + ::sal_Int16 SAL_CALL OListBoxControl::getDropDownLineCount( ) { if ( m_xAggregateListBox.is() ) return m_xAggregateListBox->getDropDownLineCount(); @@ -2137,14 +2135,14 @@ namespace frm } - void SAL_CALL OListBoxControl::setDropDownLineCount( ::sal_Int16 nLines ) throw (RuntimeException, std::exception) + void SAL_CALL OListBoxControl::setDropDownLineCount( ::sal_Int16 nLines ) { if ( m_xAggregateListBox.is() ) m_xAggregateListBox->setDropDownLineCount( nLines ); } - void SAL_CALL OListBoxControl::makeVisible( ::sal_Int16 nEntry ) throw (RuntimeException, std::exception) + void SAL_CALL OListBoxControl::makeVisible( ::sal_Int16 nEntry ) { if ( m_xAggregateListBox.is() ) m_xAggregateListBox->makeVisible( nEntry ); |