diff options
Diffstat (limited to 'forms/source/component/DatabaseForm.cxx')
-rw-r--r-- | forms/source/component/DatabaseForm.cxx | 238 |
1 files changed, 118 insertions, 120 deletions
diff --git a/forms/source/component/DatabaseForm.cxx b/forms/source/component/DatabaseForm.cxx index 2cad1f8431fa..32bda101a149 100644 --- a/forms/source/component/DatabaseForm.cxx +++ b/forms/source/component/DatabaseForm.cxx @@ -191,13 +191,13 @@ void OFormSubmitResetThread::processEvent( //= ODatabaseForm -Sequence<sal_Int8> SAL_CALL ODatabaseForm::getImplementationId() throw(RuntimeException, std::exception) +Sequence<sal_Int8> SAL_CALL ODatabaseForm::getImplementationId() { return css::uno::Sequence<sal_Int8>(); } -Sequence<Type> SAL_CALL ODatabaseForm::getTypes() throw(RuntimeException, std::exception) +Sequence<Type> SAL_CALL ODatabaseForm::getTypes() { // ask the aggregate Sequence<Type> aAggregateTypes; @@ -213,7 +213,7 @@ Sequence<Type> SAL_CALL ODatabaseForm::getTypes() throw(RuntimeException, std::e } -Any SAL_CALL ODatabaseForm::queryAggregation(const Type& _rType) throw(RuntimeException, std::exception) +Any SAL_CALL ODatabaseForm::queryAggregation(const Type& _rType) { Any aReturn = ODatabaseForm_BASE1::queryInterface(_rType); // our own interfaces @@ -1370,49 +1370,49 @@ Reference< XMultiPropertySet > ODatabaseForm::getPropertiesInterface() } -Reference< XPropertySetInfo > ODatabaseForm::getPropertySetInfo() throw( RuntimeException, std::exception ) +Reference< XPropertySetInfo > ODatabaseForm::getPropertySetInfo() { return createPropertySetInfo( getInfoHelper() ); } -void SAL_CALL ODatabaseForm::addProperty( const OUString& _rName, ::sal_Int16 _nAttributes, const Any& _rInitialValue ) throw (PropertyExistException, IllegalTypeException, IllegalArgumentException, RuntimeException, std::exception) +void SAL_CALL ODatabaseForm::addProperty( const OUString& _rName, ::sal_Int16 _nAttributes, const Any& _rInitialValue ) { m_aPropertyBagHelper.addProperty( _rName, _nAttributes, _rInitialValue ); } -void SAL_CALL ODatabaseForm::removeProperty( const OUString& _rName ) throw (UnknownPropertyException, NotRemoveableException, RuntimeException, std::exception) +void SAL_CALL ODatabaseForm::removeProperty( const OUString& _rName ) { m_aPropertyBagHelper.removeProperty( _rName ); } -Sequence< PropertyValue > SAL_CALL ODatabaseForm::getPropertyValues() throw (RuntimeException, std::exception) +Sequence< PropertyValue > SAL_CALL ODatabaseForm::getPropertyValues() { return m_aPropertyBagHelper.getPropertyValues(); } -void SAL_CALL ODatabaseForm::setPropertyValues( const Sequence< PropertyValue >& _rProps ) throw (UnknownPropertyException, PropertyVetoException, IllegalArgumentException, WrappedTargetException, RuntimeException, std::exception) +void SAL_CALL ODatabaseForm::setPropertyValues( const Sequence< PropertyValue >& _rProps ) { m_aPropertyBagHelper.setPropertyValues( _rProps ); } -Any SAL_CALL ODatabaseForm::getWarnings( ) throw (SQLException, RuntimeException, std::exception) +Any SAL_CALL ODatabaseForm::getWarnings( ) { return m_aWarnings.getWarnings(); } -void SAL_CALL ODatabaseForm::clearWarnings( ) throw (SQLException, RuntimeException, std::exception) +void SAL_CALL ODatabaseForm::clearWarnings( ) { m_aWarnings.clearWarnings(); } -Reference< XCloneable > SAL_CALL ODatabaseForm::createClone( ) throw (RuntimeException, std::exception) +Reference< XCloneable > SAL_CALL ODatabaseForm::createClone( ) { ODatabaseForm* pClone = new ODatabaseForm( *this ); osl_atomic_increment( &pClone->m_refCount ); @@ -1461,7 +1461,6 @@ void ODatabaseForm::fire( sal_Int32* pnHandles, const Any* pNewValues, const Any Any SAL_CALL ODatabaseForm::getFastPropertyValue( sal_Int32 nHandle ) - throw(UnknownPropertyException, WrappedTargetException, RuntimeException, std::exception) { if ((nHandle == PROPERTY_ID_ISMODIFIED) && (m_nResetsPending > 0)) return css::uno::Any(false); @@ -1553,7 +1552,6 @@ void ODatabaseForm::getFastPropertyValue( Any& rValue, sal_Int32 nHandle ) const sal_Bool ODatabaseForm::convertFastPropertyValue( Any& rConvertedValue, Any& rOldValue, sal_Int32 nHandle, const Any& rValue ) - throw (IllegalArgumentException, RuntimeException, std::exception) { bool bModified(false); switch (nHandle) @@ -1635,7 +1633,7 @@ sal_Bool ODatabaseForm::convertFastPropertyValue( Any& rConvertedValue, Any& rOl return bModified; } -void ODatabaseForm::setFastPropertyValue_NoBroadcast( sal_Int32 nHandle, const Any& rValue ) throw( Exception, std::exception ) +void ODatabaseForm::setFastPropertyValue_NoBroadcast( sal_Int32 nHandle, const Any& rValue ) { switch (nHandle) { @@ -1890,7 +1888,7 @@ Any ODatabaseForm::getPropertyDefaultByHandle( sal_Int32 nHandle ) const // css::form::XReset -void SAL_CALL ODatabaseForm::reset() throw( RuntimeException, std::exception ) +void SAL_CALL ODatabaseForm::reset() { ::osl::ResettableMutexGuard aGuard(m_aMutex); @@ -2049,13 +2047,13 @@ void ODatabaseForm::reset_impl(bool _bAproveByListeners) } -void SAL_CALL ODatabaseForm::addResetListener(const Reference<XResetListener>& _rListener) throw( RuntimeException, std::exception ) +void SAL_CALL ODatabaseForm::addResetListener(const Reference<XResetListener>& _rListener) { m_aResetListeners.addTypedListener( _rListener ); } -void SAL_CALL ODatabaseForm::removeResetListener(const Reference<XResetListener>& _rListener) throw( RuntimeException, std::exception ) +void SAL_CALL ODatabaseForm::removeResetListener(const Reference<XResetListener>& _rListener) { m_aResetListeners.removeTypedListener( _rListener ); } @@ -2064,7 +2062,7 @@ void SAL_CALL ODatabaseForm::removeResetListener(const Reference<XResetListener> // css::form::XSubmit void SAL_CALL ODatabaseForm::submit( const Reference<XControl>& Control, - const css::awt::MouseEvent& MouseEvt ) throw( RuntimeException, std::exception ) + const css::awt::MouseEvent& MouseEvt ) { { ::osl::MutexGuard aGuard(m_aMutex); @@ -2263,13 +2261,13 @@ void ODatabaseForm::submit_impl(const Reference<XControl>& Control, const css::a // XSubmit -void SAL_CALL ODatabaseForm::addSubmitListener(const Reference<XSubmitListener>& _rListener) throw( RuntimeException, std::exception ) +void SAL_CALL ODatabaseForm::addSubmitListener(const Reference<XSubmitListener>& _rListener) { m_aSubmitListeners.addInterface(_rListener); } -void SAL_CALL ODatabaseForm::removeSubmitListener(const Reference<XSubmitListener>& _rListener) throw( RuntimeException, std::exception ) +void SAL_CALL ODatabaseForm::removeSubmitListener(const Reference<XSubmitListener>& _rListener) { m_aSubmitListeners.removeInterface(_rListener); } @@ -2277,13 +2275,13 @@ void SAL_CALL ODatabaseForm::removeSubmitListener(const Reference<XSubmitListene // css::sdbc::XSQLErrorBroadcaster -void SAL_CALL ODatabaseForm::addSQLErrorListener(const Reference<XSQLErrorListener>& _rListener) throw( RuntimeException, std::exception ) +void SAL_CALL ODatabaseForm::addSQLErrorListener(const Reference<XSQLErrorListener>& _rListener) { m_aErrorListeners.addInterface(_rListener); } -void SAL_CALL ODatabaseForm::removeSQLErrorListener(const Reference<XSQLErrorListener>& _rListener) throw( RuntimeException, std::exception ) +void SAL_CALL ODatabaseForm::removeSQLErrorListener(const Reference<XSQLErrorListener>& _rListener) { m_aErrorListeners.removeInterface(_rListener); } @@ -2298,7 +2296,7 @@ void ODatabaseForm::invlidateParameters() // OChangeListener -void ODatabaseForm::_propertyChanged(const PropertyChangeEvent& evt) throw( RuntimeException ) +void ODatabaseForm::_propertyChanged(const PropertyChangeEvent& evt) { if (evt.PropertyName == PROPERTY_ACTIVE_CONNECTION && !m_bForwardingConnection) { @@ -2317,7 +2315,7 @@ void ODatabaseForm::_propertyChanged(const PropertyChangeEvent& evt) throw( Runt // smartXChild -void SAL_CALL ODatabaseForm::setParent(const css::uno::Reference<css::uno::XInterface>& Parent) throw ( css::lang::NoSupportException, css::uno::RuntimeException, std::exception) +void SAL_CALL ODatabaseForm::setParent(const css::uno::Reference<css::uno::XInterface>& Parent) { // SYNCHRONIZED -----> ::osl::ResettableMutexGuard aGuard(m_aMutex); @@ -2378,7 +2376,7 @@ void SAL_CALL ODatabaseForm::setParent(const css::uno::Reference<css::uno::XInte // smartXTabControllerModel -sal_Bool SAL_CALL ODatabaseForm::getGroupControl() throw(css::uno::RuntimeException, std::exception) +sal_Bool SAL_CALL ODatabaseForm::getGroupControl() { ::osl::ResettableMutexGuard aGuard(m_aMutex); @@ -2397,7 +2395,7 @@ sal_Bool SAL_CALL ODatabaseForm::getGroupControl() throw(css::uno::RuntimeExcept } -void SAL_CALL ODatabaseForm::setControlModels(const Sequence<Reference<XControlModel> >& rControls) throw( RuntimeException, std::exception ) +void SAL_CALL ODatabaseForm::setControlModels(const Sequence<Reference<XControlModel> >& rControls) { ::osl::ResettableMutexGuard aGuard(m_aMutex); @@ -2434,14 +2432,14 @@ void SAL_CALL ODatabaseForm::setControlModels(const Sequence<Reference<XControlM } -Sequence<Reference<XControlModel> > SAL_CALL ODatabaseForm::getControlModels() throw( RuntimeException, std::exception ) +Sequence<Reference<XControlModel> > SAL_CALL ODatabaseForm::getControlModels() { ::osl::MutexGuard aGuard(m_aMutex); return m_pGroupManager->getControlModels(); } -void SAL_CALL ODatabaseForm::setGroup( const Sequence<Reference<XControlModel> >& _rGroup, const OUString& Name ) throw( RuntimeException, std::exception ) +void SAL_CALL ODatabaseForm::setGroup( const Sequence<Reference<XControlModel> >& _rGroup, const OUString& Name ) { ::osl::MutexGuard aGuard(m_aMutex); @@ -2470,14 +2468,14 @@ void SAL_CALL ODatabaseForm::setGroup( const Sequence<Reference<XControlModel> > } -sal_Int32 SAL_CALL ODatabaseForm::getGroupCount() throw( RuntimeException, std::exception ) +sal_Int32 SAL_CALL ODatabaseForm::getGroupCount() { ::osl::MutexGuard aGuard(m_aMutex); return m_pGroupManager->getGroupCount(); } -void SAL_CALL ODatabaseForm::getGroup( sal_Int32 nGroup, Sequence<Reference<XControlModel> >& _rGroup, OUString& _rName ) throw( RuntimeException, std::exception ) +void SAL_CALL ODatabaseForm::getGroup( sal_Int32 nGroup, Sequence<Reference<XControlModel> >& _rGroup, OUString& _rName ) { ::osl::MutexGuard aGuard(m_aMutex); _rGroup.realloc(0); @@ -2489,7 +2487,7 @@ void SAL_CALL ODatabaseForm::getGroup( sal_Int32 nGroup, Sequence<Reference<XCon } -void SAL_CALL ODatabaseForm::getGroupByName(const OUString& Name, Sequence< Reference<XControlModel> >& _rGroup) throw( RuntimeException, std::exception ) +void SAL_CALL ODatabaseForm::getGroupByName(const OUString& Name, Sequence< Reference<XControlModel> >& _rGroup) { ::osl::MutexGuard aGuard(m_aMutex); _rGroup.realloc(0); @@ -2499,7 +2497,7 @@ void SAL_CALL ODatabaseForm::getGroupByName(const OUString& Name, Sequence< Refe // css::lang::XEventListener -void SAL_CALL ODatabaseForm::disposing(const EventObject& Source) throw( RuntimeException, std::exception ) +void SAL_CALL ODatabaseForm::disposing(const EventObject& Source) { // does the call come from the connection which we are sharing with our parent? if ( isSharingConnection() ) @@ -2540,7 +2538,7 @@ void ODatabaseForm::impl_createLoadTimer() // css::form::XLoadListener -void SAL_CALL ODatabaseForm::loaded(const EventObject& /*aEvent*/) throw( RuntimeException, std::exception ) +void SAL_CALL ODatabaseForm::loaded(const EventObject& /*aEvent*/) { { ::osl::MutexGuard aGuard( m_aMutex ); @@ -2554,7 +2552,7 @@ void SAL_CALL ODatabaseForm::loaded(const EventObject& /*aEvent*/) throw( Runtim } -void SAL_CALL ODatabaseForm::unloading(const EventObject& /*aEvent*/) throw( RuntimeException, std::exception ) +void SAL_CALL ODatabaseForm::unloading(const EventObject& /*aEvent*/) { { // now stop the rowset listening if we are a subform @@ -2572,13 +2570,13 @@ void SAL_CALL ODatabaseForm::unloading(const EventObject& /*aEvent*/) throw( Run } -void SAL_CALL ODatabaseForm::unloaded(const EventObject& /*aEvent*/) throw( RuntimeException, std::exception ) +void SAL_CALL ODatabaseForm::unloaded(const EventObject& /*aEvent*/) { // nothing to do } -void SAL_CALL ODatabaseForm::reloading(const EventObject& /*aEvent*/) throw( RuntimeException, std::exception ) +void SAL_CALL ODatabaseForm::reloading(const EventObject& /*aEvent*/) { // now stop the rowset listening if we are a subform ::osl::MutexGuard aGuard(m_aMutex); @@ -2591,7 +2589,7 @@ void SAL_CALL ODatabaseForm::reloading(const EventObject& /*aEvent*/) throw( Run } -void SAL_CALL ODatabaseForm::reloaded(const EventObject& /*aEvent*/) throw( RuntimeException, std::exception ) +void SAL_CALL ODatabaseForm::reloaded(const EventObject& /*aEvent*/) { reload_impl(true); { @@ -2611,7 +2609,7 @@ IMPL_LINK_NOARG(ODatabaseForm, OnTimeout, Timer *, void) // css::form::XLoadable -void SAL_CALL ODatabaseForm::load() throw( RuntimeException, std::exception ) +void SAL_CALL ODatabaseForm::load() { load_impl(false); } @@ -2799,7 +2797,7 @@ bool ODatabaseForm::implEnsureConnection() } -void ODatabaseForm::load_impl(bool bCausedByParentForm, bool bMoveToFirst, const Reference< XInteractionHandler >& _rxCompletionHandler ) throw( RuntimeException, std::exception ) +void ODatabaseForm::load_impl(bool bCausedByParentForm, bool bMoveToFirst, const Reference< XInteractionHandler >& _rxCompletionHandler ) { ::osl::ResettableMutexGuard aGuard(m_aMutex); @@ -2848,7 +2846,7 @@ void ODatabaseForm::load_impl(bool bCausedByParentForm, bool bMoveToFirst, const } -void SAL_CALL ODatabaseForm::unload() throw( RuntimeException, std::exception ) +void SAL_CALL ODatabaseForm::unload() { ::osl::ResettableMutexGuard aGuard(m_aMutex); if (!isLoaded()) @@ -2895,13 +2893,13 @@ void SAL_CALL ODatabaseForm::unload() throw( RuntimeException, std::exception ) } -void SAL_CALL ODatabaseForm::reload() throw( RuntimeException, std::exception ) +void SAL_CALL ODatabaseForm::reload() { reload_impl(true); } -void ODatabaseForm::reload_impl(bool bMoveToFirst, const Reference< XInteractionHandler >& _rxCompletionHandler ) throw( RuntimeException, std::exception ) +void ODatabaseForm::reload_impl(bool bMoveToFirst, const Reference< XInteractionHandler >& _rxCompletionHandler ) { ::osl::ResettableMutexGuard aGuard(m_aMutex); if (!isLoaded()) @@ -2956,26 +2954,26 @@ void ODatabaseForm::reload_impl(bool bMoveToFirst, const Reference< XInteraction } -sal_Bool SAL_CALL ODatabaseForm::isLoaded() throw( RuntimeException, std::exception ) +sal_Bool SAL_CALL ODatabaseForm::isLoaded() { return m_bLoaded; } -void SAL_CALL ODatabaseForm::addLoadListener(const Reference<XLoadListener>& aListener) throw( RuntimeException, std::exception ) +void SAL_CALL ODatabaseForm::addLoadListener(const Reference<XLoadListener>& aListener) { m_aLoadListeners.addInterface(aListener); } -void SAL_CALL ODatabaseForm::removeLoadListener(const Reference<XLoadListener>& aListener) throw( RuntimeException, std::exception ) +void SAL_CALL ODatabaseForm::removeLoadListener(const Reference<XLoadListener>& aListener) { m_aLoadListeners.removeInterface(aListener); } // css::sdbc::XCloseable -void SAL_CALL ODatabaseForm::close() throw( SQLException, RuntimeException, std::exception ) +void SAL_CALL ODatabaseForm::close() { // unload will close the aggregate unload(); @@ -2984,7 +2982,7 @@ void SAL_CALL ODatabaseForm::close() throw( SQLException, RuntimeException, std: // css::sdbc::XRowSetListener -void SAL_CALL ODatabaseForm::cursorMoved(const EventObject& /*event*/) throw( RuntimeException, std::exception ) +void SAL_CALL ODatabaseForm::cursorMoved(const EventObject& /*event*/) { // reload the subform with the new parameters of the parent // do this handling delayed to provide of execute too many SQL Statements @@ -3002,13 +3000,13 @@ void SAL_CALL ODatabaseForm::cursorMoved(const EventObject& /*event*/) throw( Ru } -void SAL_CALL ODatabaseForm::rowChanged(const EventObject& /*event*/) throw( RuntimeException, std::exception ) +void SAL_CALL ODatabaseForm::rowChanged(const EventObject& /*event*/) { // ignore it } -void SAL_CALL ODatabaseForm::rowSetChanged(const EventObject& /*event*/) throw( RuntimeException, std::exception ) +void SAL_CALL ODatabaseForm::rowSetChanged(const EventObject& /*event*/) { // not interested in : // if our parent is an ODatabaseForm, too, then after this rowSetChanged we'll get a "reloaded" @@ -3058,7 +3056,7 @@ bool ODatabaseForm::impl_approveRowChange_throw( const EventObject& _rEvent, con } -sal_Bool SAL_CALL ODatabaseForm::approveCursorMove(const EventObject& event) throw( RuntimeException, std::exception ) +sal_Bool SAL_CALL ODatabaseForm::approveCursorMove(const EventObject& event) { // is our aggregate calling? if (event.Source == css::uno::Reference<css::uno::XInterface>(static_cast<XWeak*>(this))) @@ -3107,7 +3105,7 @@ sal_Bool SAL_CALL ODatabaseForm::approveCursorMove(const EventObject& event) thr } -sal_Bool SAL_CALL ODatabaseForm::approveRowChange(const RowChangeEvent& event) throw( RuntimeException, std::exception ) +sal_Bool SAL_CALL ODatabaseForm::approveRowChange(const RowChangeEvent& event) { // is our aggregate calling? if (event.Source == css::uno::Reference<css::uno::XInterface>(static_cast<XWeak*>(this))) @@ -3147,7 +3145,7 @@ sal_Bool SAL_CALL ODatabaseForm::approveRowChange(const RowChangeEvent& event) t } -sal_Bool SAL_CALL ODatabaseForm::approveRowSetChange(const EventObject& event) throw( RuntimeException, std::exception ) +sal_Bool SAL_CALL ODatabaseForm::approveRowSetChange(const EventObject& event) { if (event.Source == css::uno::Reference<css::uno::XInterface>(static_cast<XWeak*>(this))) // ignore our aggregate as we handle this approve ourself { @@ -3176,7 +3174,7 @@ sal_Bool SAL_CALL ODatabaseForm::approveRowSetChange(const EventObject& event) t // css::sdb::XRowSetApproveBroadcaster -void SAL_CALL ODatabaseForm::addRowSetApproveListener(const Reference<XRowSetApproveListener>& _rListener) throw( RuntimeException, std::exception ) +void SAL_CALL ODatabaseForm::addRowSetApproveListener(const Reference<XRowSetApproveListener>& _rListener) { ::osl::ResettableMutexGuard aGuard(m_aMutex); m_aRowSetApproveListeners.addInterface(_rListener); @@ -3194,7 +3192,7 @@ void SAL_CALL ODatabaseForm::addRowSetApproveListener(const Reference<XRowSetApp } -void SAL_CALL ODatabaseForm::removeRowSetApproveListener(const Reference<XRowSetApproveListener>& _rListener) throw( RuntimeException, std::exception ) +void SAL_CALL ODatabaseForm::removeRowSetApproveListener(const Reference<XRowSetApproveListener>& _rListener) { ::osl::ResettableMutexGuard aGuard(m_aMutex); // do we have to remove the multiplex ? @@ -3213,24 +3211,24 @@ void SAL_CALL ODatabaseForm::removeRowSetApproveListener(const Reference<XRowSet // com::sun:star::form::XDatabaseParameterBroadcaster -void SAL_CALL ODatabaseForm::addDatabaseParameterListener(const Reference<XDatabaseParameterListener>& _rListener) throw( RuntimeException, std::exception ) +void SAL_CALL ODatabaseForm::addDatabaseParameterListener(const Reference<XDatabaseParameterListener>& _rListener) { m_aParameterManager.addParameterListener( _rListener ); } -void SAL_CALL ODatabaseForm::removeDatabaseParameterListener(const Reference<XDatabaseParameterListener>& _rListener) throw( RuntimeException, std::exception ) +void SAL_CALL ODatabaseForm::removeDatabaseParameterListener(const Reference<XDatabaseParameterListener>& _rListener) { m_aParameterManager.removeParameterListener( _rListener ); } -void SAL_CALL ODatabaseForm::addParameterListener(const Reference<XDatabaseParameterListener>& _rListener) throw( RuntimeException, std::exception ) +void SAL_CALL ODatabaseForm::addParameterListener(const Reference<XDatabaseParameterListener>& _rListener) { ODatabaseForm::addDatabaseParameterListener( _rListener ); } -void SAL_CALL ODatabaseForm::removeParameterListener(const Reference<XDatabaseParameterListener>& _rListener) throw( RuntimeException, std::exception ) +void SAL_CALL ODatabaseForm::removeParameterListener(const Reference<XDatabaseParameterListener>& _rListener) { ODatabaseForm::removeDatabaseParameterListener( _rListener ); } @@ -3238,7 +3236,7 @@ void SAL_CALL ODatabaseForm::removeParameterListener(const Reference<XDatabasePa // css::sdb::XCompletedExecution -void SAL_CALL ODatabaseForm::executeWithCompletion( const Reference< XInteractionHandler >& _rxHandler ) throw(SQLException, RuntimeException, std::exception) +void SAL_CALL ODatabaseForm::executeWithCompletion( const Reference< XInteractionHandler >& _rxHandler ) { ::osl::ClearableMutexGuard aGuard(m_aMutex); // the difference between execute and load is, that we position on the first row in case of load @@ -3262,7 +3260,7 @@ void SAL_CALL ODatabaseForm::executeWithCompletion( const Reference< XInteractio // css::sdbc::XRowSet -void SAL_CALL ODatabaseForm::execute() throw( SQLException, RuntimeException, std::exception ) +void SAL_CALL ODatabaseForm::execute() { ::osl::ResettableMutexGuard aGuard(m_aMutex); // if somebody calls an execute and we're not loaded we reroute this call to our load method. @@ -3286,14 +3284,14 @@ void SAL_CALL ODatabaseForm::execute() throw( SQLException, RuntimeException, st } -void SAL_CALL ODatabaseForm::addRowSetListener(const Reference<XRowSetListener>& _rListener) throw( RuntimeException, std::exception ) +void SAL_CALL ODatabaseForm::addRowSetListener(const Reference<XRowSetListener>& _rListener) { if (m_xAggregateAsRowSet.is()) m_xAggregateAsRowSet->addRowSetListener(_rListener); } -void SAL_CALL ODatabaseForm::removeRowSetListener(const Reference<XRowSetListener>& _rListener) throw( RuntimeException, std::exception ) +void SAL_CALL ODatabaseForm::removeRowSetListener(const Reference<XRowSetListener>& _rListener) { if (m_xAggregateAsRowSet.is()) m_xAggregateAsRowSet->removeRowSetListener(_rListener); @@ -3302,109 +3300,109 @@ void SAL_CALL ODatabaseForm::removeRowSetListener(const Reference<XRowSetListene // css::sdbc::XResultSet -sal_Bool SAL_CALL ODatabaseForm::next() throw( SQLException, RuntimeException, std::exception ) +sal_Bool SAL_CALL ODatabaseForm::next() { return m_xAggregateAsRowSet->next(); } -sal_Bool SAL_CALL ODatabaseForm::isBeforeFirst() throw( SQLException, RuntimeException, std::exception ) +sal_Bool SAL_CALL ODatabaseForm::isBeforeFirst() { return m_xAggregateAsRowSet->isBeforeFirst(); } -sal_Bool SAL_CALL ODatabaseForm::isAfterLast() throw( SQLException, RuntimeException, std::exception ) +sal_Bool SAL_CALL ODatabaseForm::isAfterLast() { return m_xAggregateAsRowSet->isAfterLast(); } -sal_Bool SAL_CALL ODatabaseForm::isFirst() throw( SQLException, RuntimeException, std::exception ) +sal_Bool SAL_CALL ODatabaseForm::isFirst() { return m_xAggregateAsRowSet->isFirst(); } -sal_Bool SAL_CALL ODatabaseForm::isLast() throw( SQLException, RuntimeException, std::exception ) +sal_Bool SAL_CALL ODatabaseForm::isLast() { return m_xAggregateAsRowSet->isLast(); } -void SAL_CALL ODatabaseForm::beforeFirst() throw( SQLException, RuntimeException, std::exception ) +void SAL_CALL ODatabaseForm::beforeFirst() { m_xAggregateAsRowSet->beforeFirst(); } -void SAL_CALL ODatabaseForm::afterLast() throw( SQLException, RuntimeException, std::exception ) +void SAL_CALL ODatabaseForm::afterLast() { m_xAggregateAsRowSet->afterLast(); } -sal_Bool SAL_CALL ODatabaseForm::first() throw( SQLException, RuntimeException, std::exception ) +sal_Bool SAL_CALL ODatabaseForm::first() { return m_xAggregateAsRowSet->first(); } -sal_Bool SAL_CALL ODatabaseForm::last() throw( SQLException, RuntimeException, std::exception ) +sal_Bool SAL_CALL ODatabaseForm::last() { return m_xAggregateAsRowSet->last(); } -sal_Int32 SAL_CALL ODatabaseForm::getRow() throw( SQLException, RuntimeException, std::exception ) +sal_Int32 SAL_CALL ODatabaseForm::getRow() { return m_xAggregateAsRowSet->getRow(); } -sal_Bool SAL_CALL ODatabaseForm::absolute(sal_Int32 row) throw( SQLException, RuntimeException, std::exception ) +sal_Bool SAL_CALL ODatabaseForm::absolute(sal_Int32 row) { return m_xAggregateAsRowSet->absolute(row); } -sal_Bool SAL_CALL ODatabaseForm::relative(sal_Int32 rows) throw( SQLException, RuntimeException, std::exception ) +sal_Bool SAL_CALL ODatabaseForm::relative(sal_Int32 rows) { return m_xAggregateAsRowSet->relative(rows); } -sal_Bool SAL_CALL ODatabaseForm::previous() throw( SQLException, RuntimeException, std::exception ) +sal_Bool SAL_CALL ODatabaseForm::previous() { return m_xAggregateAsRowSet->previous(); } -void SAL_CALL ODatabaseForm::refreshRow() throw( SQLException, RuntimeException, std::exception ) +void SAL_CALL ODatabaseForm::refreshRow() { m_xAggregateAsRowSet->refreshRow(); } -sal_Bool SAL_CALL ODatabaseForm::rowUpdated() throw( SQLException, RuntimeException, std::exception ) +sal_Bool SAL_CALL ODatabaseForm::rowUpdated() { return m_xAggregateAsRowSet->rowUpdated(); } -sal_Bool SAL_CALL ODatabaseForm::rowInserted() throw( SQLException, RuntimeException, std::exception ) +sal_Bool SAL_CALL ODatabaseForm::rowInserted() { return m_xAggregateAsRowSet->rowInserted(); } -sal_Bool SAL_CALL ODatabaseForm::rowDeleted() throw( SQLException, RuntimeException, std::exception ) +sal_Bool SAL_CALL ODatabaseForm::rowDeleted() { return m_xAggregateAsRowSet->rowDeleted(); } -css::uno::Reference<css::uno::XInterface> SAL_CALL ODatabaseForm::getStatement() throw( SQLException, RuntimeException, std::exception ) +css::uno::Reference<css::uno::XInterface> SAL_CALL ODatabaseForm::getStatement() { return m_xAggregateAsRowSet->getStatement(); } @@ -3412,7 +3410,7 @@ css::uno::Reference<css::uno::XInterface> SAL_CALL ODatabaseForm::getStatement() // css::sdbc::XResultSetUpdate // exceptions during insert update and delete will be forwarded to the errorlistener -void SAL_CALL ODatabaseForm::insertRow() throw( SQLException, RuntimeException, std::exception ) +void SAL_CALL ODatabaseForm::insertRow() { try { @@ -3432,7 +3430,7 @@ void SAL_CALL ODatabaseForm::insertRow() throw( SQLException, RuntimeException, } -void SAL_CALL ODatabaseForm::updateRow() throw( SQLException, RuntimeException, std::exception ) +void SAL_CALL ODatabaseForm::updateRow() { try { @@ -3452,7 +3450,7 @@ void SAL_CALL ODatabaseForm::updateRow() throw( SQLException, RuntimeException, } -void SAL_CALL ODatabaseForm::deleteRow() throw( SQLException, RuntimeException, std::exception ) +void SAL_CALL ODatabaseForm::deleteRow() { try { @@ -3472,7 +3470,7 @@ void SAL_CALL ODatabaseForm::deleteRow() throw( SQLException, RuntimeException, } -void SAL_CALL ODatabaseForm::cancelRowUpdates() throw( SQLException, RuntimeException, std::exception ) +void SAL_CALL ODatabaseForm::cancelRowUpdates() { try { @@ -3492,7 +3490,7 @@ void SAL_CALL ODatabaseForm::cancelRowUpdates() throw( SQLException, RuntimeExce } -void SAL_CALL ODatabaseForm::moveToInsertRow() throw( SQLException, RuntimeException, std::exception ) +void SAL_CALL ODatabaseForm::moveToInsertRow() { Reference<XResultSetUpdate> xUpdate; if (query_aggregation( m_xAggregate, xUpdate)) @@ -3527,7 +3525,7 @@ void SAL_CALL ODatabaseForm::moveToInsertRow() throw( SQLException, RuntimeExcep } -void SAL_CALL ODatabaseForm::moveToCurrentRow() throw( SQLException, RuntimeException, std::exception ) +void SAL_CALL ODatabaseForm::moveToCurrentRow() { Reference<XResultSetUpdate> xUpdate; if (query_aggregation( m_xAggregate, xUpdate)) @@ -3536,7 +3534,7 @@ void SAL_CALL ODatabaseForm::moveToCurrentRow() throw( SQLException, RuntimeExce // css::sdbcx::XDeleteRows -Sequence<sal_Int32> SAL_CALL ODatabaseForm::deleteRows(const Sequence<Any>& rows) throw( SQLException, RuntimeException, std::exception ) +Sequence<sal_Int32> SAL_CALL ODatabaseForm::deleteRows(const Sequence<Any>& rows) { try { @@ -3559,145 +3557,145 @@ Sequence<sal_Int32> SAL_CALL ODatabaseForm::deleteRows(const Sequence<Any>& rows // css::sdbc::XParameters -void SAL_CALL ODatabaseForm::setNull(sal_Int32 parameterIndex, sal_Int32 sqlType) throw( SQLException, RuntimeException, std::exception ) +void SAL_CALL ODatabaseForm::setNull(sal_Int32 parameterIndex, sal_Int32 sqlType) { m_aParameterManager.setNull(parameterIndex, sqlType); } -void SAL_CALL ODatabaseForm::setObjectNull(sal_Int32 parameterIndex, sal_Int32 sqlType, const OUString& typeName) throw( SQLException, RuntimeException, std::exception ) +void SAL_CALL ODatabaseForm::setObjectNull(sal_Int32 parameterIndex, sal_Int32 sqlType, const OUString& typeName) { m_aParameterManager.setObjectNull(parameterIndex, sqlType, typeName); } -void SAL_CALL ODatabaseForm::setBoolean(sal_Int32 parameterIndex, sal_Bool x) throw( SQLException, RuntimeException, std::exception ) +void SAL_CALL ODatabaseForm::setBoolean(sal_Int32 parameterIndex, sal_Bool x) { m_aParameterManager.setBoolean(parameterIndex, x); } -void SAL_CALL ODatabaseForm::setByte(sal_Int32 parameterIndex, sal_Int8 x) throw( SQLException, RuntimeException, std::exception ) +void SAL_CALL ODatabaseForm::setByte(sal_Int32 parameterIndex, sal_Int8 x) { m_aParameterManager.setByte(parameterIndex, x); } -void SAL_CALL ODatabaseForm::setShort(sal_Int32 parameterIndex, sal_Int16 x) throw( SQLException, RuntimeException, std::exception ) +void SAL_CALL ODatabaseForm::setShort(sal_Int32 parameterIndex, sal_Int16 x) { m_aParameterManager.setShort(parameterIndex, x); } -void SAL_CALL ODatabaseForm::setInt(sal_Int32 parameterIndex, sal_Int32 x) throw( SQLException, RuntimeException, std::exception ) +void SAL_CALL ODatabaseForm::setInt(sal_Int32 parameterIndex, sal_Int32 x) { m_aParameterManager.setInt(parameterIndex, x); } -void SAL_CALL ODatabaseForm::setLong(sal_Int32 parameterIndex, sal_Int64 x) throw( SQLException, RuntimeException, std::exception ) +void SAL_CALL ODatabaseForm::setLong(sal_Int32 parameterIndex, sal_Int64 x) { m_aParameterManager.setLong(parameterIndex, x); } -void SAL_CALL ODatabaseForm::setFloat(sal_Int32 parameterIndex, float x) throw( SQLException, RuntimeException, std::exception ) +void SAL_CALL ODatabaseForm::setFloat(sal_Int32 parameterIndex, float x) { m_aParameterManager.setFloat(parameterIndex, x); } -void SAL_CALL ODatabaseForm::setDouble(sal_Int32 parameterIndex, double x) throw( SQLException, RuntimeException, std::exception ) +void SAL_CALL ODatabaseForm::setDouble(sal_Int32 parameterIndex, double x) { m_aParameterManager.setDouble(parameterIndex, x); } -void SAL_CALL ODatabaseForm::setString(sal_Int32 parameterIndex, const OUString& x) throw( SQLException, RuntimeException, std::exception ) +void SAL_CALL ODatabaseForm::setString(sal_Int32 parameterIndex, const OUString& x) { m_aParameterManager.setString(parameterIndex, x); } -void SAL_CALL ODatabaseForm::setBytes(sal_Int32 parameterIndex, const Sequence< sal_Int8 >& x) throw( SQLException, RuntimeException, std::exception ) +void SAL_CALL ODatabaseForm::setBytes(sal_Int32 parameterIndex, const Sequence< sal_Int8 >& x) { m_aParameterManager.setBytes(parameterIndex, x); } -void SAL_CALL ODatabaseForm::setDate(sal_Int32 parameterIndex, const css::util::Date& x) throw( SQLException, RuntimeException, std::exception ) +void SAL_CALL ODatabaseForm::setDate(sal_Int32 parameterIndex, const css::util::Date& x) { m_aParameterManager.setDate(parameterIndex, x); } -void SAL_CALL ODatabaseForm::setTime(sal_Int32 parameterIndex, const css::util::Time& x) throw( SQLException, RuntimeException, std::exception ) +void SAL_CALL ODatabaseForm::setTime(sal_Int32 parameterIndex, const css::util::Time& x) { m_aParameterManager.setTime(parameterIndex, x); } -void SAL_CALL ODatabaseForm::setTimestamp(sal_Int32 parameterIndex, const css::util::DateTime& x) throw( SQLException, RuntimeException, std::exception ) +void SAL_CALL ODatabaseForm::setTimestamp(sal_Int32 parameterIndex, const css::util::DateTime& x) { m_aParameterManager.setTimestamp(parameterIndex, x); } -void SAL_CALL ODatabaseForm::setBinaryStream(sal_Int32 parameterIndex, const Reference<XInputStream>& x, sal_Int32 length) throw( SQLException, RuntimeException, std::exception ) +void SAL_CALL ODatabaseForm::setBinaryStream(sal_Int32 parameterIndex, const Reference<XInputStream>& x, sal_Int32 length) { m_aParameterManager.setBinaryStream(parameterIndex, x, length); } -void SAL_CALL ODatabaseForm::setCharacterStream(sal_Int32 parameterIndex, const Reference<XInputStream>& x, sal_Int32 length) throw( SQLException, RuntimeException, std::exception ) +void SAL_CALL ODatabaseForm::setCharacterStream(sal_Int32 parameterIndex, const Reference<XInputStream>& x, sal_Int32 length) { m_aParameterManager.setCharacterStream(parameterIndex, x, length); } -void SAL_CALL ODatabaseForm::setObjectWithInfo(sal_Int32 parameterIndex, const Any& x, sal_Int32 targetSqlType, sal_Int32 scale) throw( SQLException, RuntimeException, std::exception ) +void SAL_CALL ODatabaseForm::setObjectWithInfo(sal_Int32 parameterIndex, const Any& x, sal_Int32 targetSqlType, sal_Int32 scale) { m_aParameterManager.setObjectWithInfo(parameterIndex, x, targetSqlType, scale); } -void SAL_CALL ODatabaseForm::setObject(sal_Int32 parameterIndex, const Any& x) throw( SQLException, RuntimeException, std::exception ) +void SAL_CALL ODatabaseForm::setObject(sal_Int32 parameterIndex, const Any& x) { m_aParameterManager.setObject(parameterIndex, x); } -void SAL_CALL ODatabaseForm::setRef(sal_Int32 parameterIndex, const Reference<XRef>& x) throw( SQLException, RuntimeException, std::exception ) +void SAL_CALL ODatabaseForm::setRef(sal_Int32 parameterIndex, const Reference<XRef>& x) { m_aParameterManager.setRef(parameterIndex, x); } -void SAL_CALL ODatabaseForm::setBlob(sal_Int32 parameterIndex, const Reference<XBlob>& x) throw( SQLException, RuntimeException, std::exception ) +void SAL_CALL ODatabaseForm::setBlob(sal_Int32 parameterIndex, const Reference<XBlob>& x) { m_aParameterManager.setBlob(parameterIndex, x); } -void SAL_CALL ODatabaseForm::setClob(sal_Int32 parameterIndex, const Reference<XClob>& x) throw( SQLException, RuntimeException, std::exception ) +void SAL_CALL ODatabaseForm::setClob(sal_Int32 parameterIndex, const Reference<XClob>& x) { m_aParameterManager.setClob(parameterIndex, x); } -void SAL_CALL ODatabaseForm::setArray(sal_Int32 parameterIndex, const Reference<XArray>& x) throw( SQLException, RuntimeException, std::exception ) +void SAL_CALL ODatabaseForm::setArray(sal_Int32 parameterIndex, const Reference<XArray>& x) { m_aParameterManager.setArray(parameterIndex, x); } -void SAL_CALL ODatabaseForm::clearParameters() throw( SQLException, RuntimeException, std::exception ) +void SAL_CALL ODatabaseForm::clearParameters() { m_aParameterManager.clearParameters(); } -void SAL_CALL ODatabaseForm::propertyChange( const PropertyChangeEvent& evt ) throw (RuntimeException, std::exception) +void SAL_CALL ODatabaseForm::propertyChange( const PropertyChangeEvent& evt ) { if ( evt.Source == m_xParent ) { @@ -3715,13 +3713,13 @@ void SAL_CALL ODatabaseForm::propertyChange( const PropertyChangeEvent& evt ) th // css::lang::XServiceInfo -OUString SAL_CALL ODatabaseForm::getImplementationName() throw( RuntimeException, std::exception ) +OUString SAL_CALL ODatabaseForm::getImplementationName() { return OUString( "com.sun.star.comp.forms.ODatabaseForm" ); } -Sequence< OUString > SAL_CALL ODatabaseForm::getSupportedServiceNames() throw( RuntimeException, std::exception ) +Sequence< OUString > SAL_CALL ODatabaseForm::getSupportedServiceNames() { // the services of our aggregate Sequence< OUString > aServices; @@ -3739,7 +3737,7 @@ Sequence< OUString > SAL_CALL ODatabaseForm::getSupportedServiceNames() throw( R ); } -sal_Bool SAL_CALL ODatabaseForm::supportsService(const OUString& ServiceName) throw( RuntimeException, std::exception ) +sal_Bool SAL_CALL ODatabaseForm::supportsService(const OUString& ServiceName) { return cppu::supportsService(this, ServiceName); } @@ -3748,12 +3746,12 @@ sal_Bool SAL_CALL ODatabaseForm::supportsService(const OUString& ServiceName) th const sal_uInt16 CYCLE = 0x0001; const sal_uInt16 DONTAPPLYFILTER = 0x0002; -OUString ODatabaseForm::getServiceName() throw( RuntimeException, std::exception ) +OUString ODatabaseForm::getServiceName() { return OUString(FRM_COMPONENT_FORM); // old (non-sun) name for compatibility ! } -void SAL_CALL ODatabaseForm::write(const Reference<XObjectOutputStream>& _rxOutStream) throw( IOException, RuntimeException, std::exception ) +void SAL_CALL ODatabaseForm::write(const Reference<XObjectOutputStream>& _rxOutStream) { DBG_ASSERT(m_xAggregateSet.is(), "ODatabaseForm::write : only to be called if the aggregate exists !"); @@ -3868,7 +3866,7 @@ void SAL_CALL ODatabaseForm::write(const Reference<XObjectOutputStream>& _rxOutS } -void SAL_CALL ODatabaseForm::read(const Reference<XObjectInputStream>& _rxInStream) throw( IOException, RuntimeException, std::exception ) +void SAL_CALL ODatabaseForm::read(const Reference<XObjectInputStream>& _rxInStream) { DBG_ASSERT(m_xAggregateSet.is(), "ODatabaseForm::read : only to be called if the aggregate exists !"); @@ -3991,7 +3989,7 @@ void ODatabaseForm::implRemoved(const css::uno::Reference<css::uno::XInterface>& } } -void SAL_CALL ODatabaseForm::errorOccured(const SQLErrorEvent& _rEvent) throw( RuntimeException, std::exception ) +void SAL_CALL ODatabaseForm::errorOccured(const SQLErrorEvent& _rEvent) { // give it to my own error listener onError(_rEvent); @@ -4000,7 +3998,7 @@ void SAL_CALL ODatabaseForm::errorOccured(const SQLErrorEvent& _rEvent) throw( R } // css::container::XNamed -OUString SAL_CALL ODatabaseForm::getName() throw( RuntimeException, std::exception ) +OUString SAL_CALL ODatabaseForm::getName() { OUString sReturn; try @@ -4018,7 +4016,7 @@ OUString SAL_CALL ODatabaseForm::getName() throw( RuntimeException, std::excepti return sReturn; } -void SAL_CALL ODatabaseForm::setName(const OUString& aName) throw( RuntimeException, std::exception ) +void SAL_CALL ODatabaseForm::setName(const OUString& aName) { setFastPropertyValue(PROPERTY_ID_NAME, makeAny(aName)); } |