Kaydet (Commit) 79df6cf5 authored tarafından Noel Grandin's avatar Noel Grandin

forms: remove SAL_THROW macro

Change-Id: I532f29e240cf29c5e65c919c4bcaccd86c510ce9
üst 62258d9c
...@@ -381,7 +381,7 @@ namespace frm ...@@ -381,7 +381,7 @@ namespace frm
} }
void OClickableImageBaseControl::implSubmit( const MouseEvent& _rEvent, const Reference< XInteractionHandler >& _rxHandler ) SAL_THROW((VetoException, WrappedTargetException, RuntimeException)) void OClickableImageBaseControl::implSubmit( const MouseEvent& _rEvent, const Reference< XInteractionHandler >& _rxHandler )
{ {
try try
{ {
......
...@@ -242,7 +242,7 @@ namespace frm ...@@ -242,7 +242,7 @@ namespace frm
void implSubmit( void implSubmit(
const ::com::sun::star::awt::MouseEvent& _rEvent, const ::com::sun::star::awt::MouseEvent& _rEvent,
const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionHandler >& aHandler const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionHandler >& aHandler
) SAL_THROW((com::sun::star::util::VetoException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException)); );
}; };
class OImageProducerThread_Impl: public OComponentEventThread class OImageProducerThread_Impl: public OComponentEventThread
......
...@@ -285,7 +285,7 @@ namespace frm ...@@ -285,7 +285,7 @@ namespace frm
bool OEntryListHelper::convertNewListSourceProperty( Any& _rConvertedValue, bool OEntryListHelper::convertNewListSourceProperty( Any& _rConvertedValue,
Any& _rOldValue, const Any& _rValue ) SAL_THROW( ( IllegalArgumentException ) ) Any& _rOldValue, const Any& _rValue )
{ {
if ( hasExternalListSource() ) if ( hasExternalListSource() )
throw IllegalArgumentException( ); throw IllegalArgumentException( );
......
...@@ -95,8 +95,7 @@ namespace frm ...@@ -95,8 +95,7 @@ namespace frm
::com::sun::star::uno::Any& _rConvertedValue, ::com::sun::star::uno::Any& _rConvertedValue,
::com::sun::star::uno::Any& _rOldValue, ::com::sun::star::uno::Any& _rOldValue,
const ::com::sun::star::uno::Any& _rValue const ::com::sun::star::uno::Any& _rValue
) );
SAL_THROW( ( ::com::sun::star::lang::IllegalArgumentException ) );
/** helper for implementing setFastPropertyValueNoBroadcast /** helper for implementing setFastPropertyValueNoBroadcast
......
...@@ -126,7 +126,7 @@ namespace frm ...@@ -126,7 +126,7 @@ namespace frm
} }
} }
Reference< XDispatch > ControlFeatureInterception::queryDispatch( const URL& _rURL, const OUString& _rTargetFrameName, ::sal_Int32 _nSearchFlags ) SAL_THROW((RuntimeException)) Reference< XDispatch > ControlFeatureInterception::queryDispatch( const URL& _rURL, const OUString& _rTargetFrameName, ::sal_Int32 _nSearchFlags )
{ {
Reference< XDispatch > xDispatcher; Reference< XDispatch > xDispatcher;
if ( m_xFirstDispatchInterceptor.is() ) if ( m_xFirstDispatchInterceptor.is() )
...@@ -135,13 +135,13 @@ namespace frm ...@@ -135,13 +135,13 @@ namespace frm
} }
Reference< XDispatch > ControlFeatureInterception::queryDispatch( const URL& _rURL ) SAL_THROW((RuntimeException)) Reference< XDispatch > ControlFeatureInterception::queryDispatch( const URL& _rURL )
{ {
return queryDispatch( _rURL, OUString(), 0 ); return queryDispatch( _rURL, OUString(), 0 );
} }
Reference< XDispatch > ControlFeatureInterception::queryDispatch( const sal_Char* _pAsciiURL ) SAL_THROW((RuntimeException)) Reference< XDispatch > ControlFeatureInterception::queryDispatch( const sal_Char* _pAsciiURL )
{ {
return queryDispatch( m_pUrlTransformer->getStrictURLFromAscii( _pAsciiURL ) ); return queryDispatch( m_pUrlTransformer->getStrictURLFromAscii( _pAsciiURL ) );
} }
......
...@@ -263,7 +263,7 @@ protected: ...@@ -263,7 +263,7 @@ protected:
@throws ::com::sun::star::lang::IndexOutOfBoundsException @throws ::com::sun::star::lang::IndexOutOfBoundsException
if the given index does not denote a valid position in our children array if the given index does not denote a valid position in our children array
*/ */
void implCheckIndex( const sal_Int32 _nIndex ) SAL_THROW( ( ::com::sun::star::lang::IndexOutOfBoundsException ) ); void implCheckIndex( const sal_Int32 _nIndex );
private: private:
// hack for Vba Events // hack for Vba Events
......
...@@ -71,18 +71,18 @@ namespace frm ...@@ -71,18 +71,18 @@ namespace frm
/** queries the interceptor chain for the given dispatch /** queries the interceptor chain for the given dispatch
*/ */
::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatch > ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatch >
queryDispatch( const ::com::sun::star::util::URL& _rURL, const OUString& _rTargetFrameName, ::sal_Int32 _nSearchFlags ) SAL_THROW((::com::sun::star::uno::RuntimeException)); queryDispatch( const ::com::sun::star::util::URL& _rURL, const OUString& _rTargetFrameName, ::sal_Int32 _nSearchFlags );
/** queries the interceptor chain for the given dispatch, with a blank target frame and no frame search flags /** queries the interceptor chain for the given dispatch, with a blank target frame and no frame search flags
*/ */
::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatch > ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatch >
queryDispatch( const ::com::sun::star::util::URL& _rURL ) SAL_THROW((::com::sun::star::uno::RuntimeException)); queryDispatch( const ::com::sun::star::util::URL& _rURL );
/** queries the interceptor chain for the URL given as ASCII string, /** queries the interceptor chain for the URL given as ASCII string,
with a blank target frame and no frame search flags with a blank target frame and no frame search flags
*/ */
::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatch > ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatch >
queryDispatch( const sal_Char* _pAsciiURL ) SAL_THROW((::com::sun::star::uno::RuntimeException)); queryDispatch( const sal_Char* _pAsciiURL );
}; };
......
...@@ -54,7 +54,7 @@ namespace frm ...@@ -54,7 +54,7 @@ namespace frm
virtual bool implTypedNotify( virtual bool implTypedNotify(
const ::com::sun::star::uno::Reference< ListenerClass >& _rxListener, const ::com::sun::star::uno::Reference< ListenerClass >& _rxListener,
const EventClass& _rEvent const EventClass& _rEvent
) SAL_THROW( ( ::com::sun::star::uno::Exception ) ) = 0; ) = 0;
public: public:
inline bool notify() inline bool notify()
...@@ -112,7 +112,7 @@ namespace frm ...@@ -112,7 +112,7 @@ namespace frm
virtual bool implTypedNotify( virtual bool implTypedNotify(
const ::com::sun::star::uno::Reference< ::com::sun::star::form::XResetListener >& _rxListener, const ::com::sun::star::uno::Reference< ::com::sun::star::form::XResetListener >& _rxListener,
const ::com::sun::star::lang::EventObject& _rEvent const ::com::sun::star::lang::EventObject& _rEvent
) SAL_THROW( ( ::com::sun::star::uno::Exception ) ) SAL_OVERRIDE; ) SAL_OVERRIDE;
}; };
......
...@@ -1018,7 +1018,7 @@ void OInterfaceContainer::implReplaceByIndex( const sal_Int32 _nIndex, const Any ...@@ -1018,7 +1018,7 @@ void OInterfaceContainer::implReplaceByIndex( const sal_Int32 _nIndex, const Any
} }
void OInterfaceContainer::implCheckIndex( const sal_Int32 _nIndex ) SAL_THROW( ( ::com::sun::star::lang::IndexOutOfBoundsException ) ) void OInterfaceContainer::implCheckIndex( const sal_Int32 _nIndex )
{ {
if (_nIndex < 0 || _nIndex >= (sal_Int32)m_aItems.size()) if (_nIndex < 0 || _nIndex >= (sal_Int32)m_aItems.size())
throw IndexOutOfBoundsException(); throw IndexOutOfBoundsException();
......
...@@ -33,7 +33,7 @@ namespace frm ...@@ -33,7 +33,7 @@ namespace frm
bool ResetListeners::implTypedNotify( const Reference< XResetListener >& _rxListener, bool ResetListeners::implTypedNotify( const Reference< XResetListener >& _rxListener,
const EventObject& _rEvent ) SAL_THROW( ( Exception ) ) const EventObject& _rEvent )
{ {
switch ( m_eCurrentNotificationType ) switch ( m_eCurrentNotificationType )
{ {
......
...@@ -55,7 +55,7 @@ namespace frm ...@@ -55,7 +55,7 @@ namespace frm
); );
/// notifies a new attribute state /// notifies a new attribute state
void notifyAttributeState( const AttributeState& _rState ) SAL_THROW (()); void notifyAttributeState( const AttributeState& _rState );
protected: protected:
virtual ~OAttributeDispatcher( ); virtual ~OAttributeDispatcher( );
...@@ -81,7 +81,7 @@ namespace frm ...@@ -81,7 +81,7 @@ namespace frm
void notifyState( void notifyState(
const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XStatusListener >& _rxControl, const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XStatusListener >& _rxControl,
const AttributeState& _rState const AttributeState& _rState
) SAL_THROW (()); );
}; };
......
...@@ -119,7 +119,7 @@ namespace frm ...@@ -119,7 +119,7 @@ namespace frm
} }
void ORichTextFeatureDispatcher::doNotify( const Reference< XStatusListener >& _rxListener, const FeatureStateEvent& _rEvent ) const SAL_THROW(()) void ORichTextFeatureDispatcher::doNotify( const Reference< XStatusListener >& _rxListener, const FeatureStateEvent& _rEvent ) const
{ {
OSL_PRECOND( _rxListener.is(), "ORichTextFeatureDispatcher::doNotify: invalid listener!" ); OSL_PRECOND( _rxListener.is(), "ORichTextFeatureDispatcher::doNotify: invalid listener!" );
if ( _rxListener.is() ) if ( _rxListener.is() )
......
...@@ -77,7 +77,7 @@ namespace frm ...@@ -77,7 +77,7 @@ namespace frm
void doNotify( void doNotify(
const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XStatusListener >& _rxListener, const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XStatusListener >& _rxListener,
const ::com::sun::star::frame::FeatureStateEvent& _rEvent const ::com::sun::star::frame::FeatureStateEvent& _rEvent
) const SAL_THROW(()); ) const;
protected: protected:
// XDispatch // XDispatch
......
...@@ -98,7 +98,7 @@ namespace xforms ...@@ -98,7 +98,7 @@ namespace xforms
} }
ODataTypeRepository::Repository::iterator ODataTypeRepository::implLocate( const OUString& _rName, bool _bAllowMiss ) SAL_THROW( ( NoSuchElementException ) ) ODataTypeRepository::Repository::iterator ODataTypeRepository::implLocate( const OUString& _rName, bool _bAllowMiss )
{ {
Repository::iterator aTypePos = m_aRepository.find( _rName ); Repository::iterator aTypePos = m_aRepository.find( _rName );
if ( aTypePos == m_aRepository.end() && !_bAllowMiss ) if ( aTypePos == m_aRepository.end() && !_bAllowMiss )
......
...@@ -74,7 +74,7 @@ namespace xforms ...@@ -74,7 +74,7 @@ namespace xforms
private: private:
/** locates the type with the given name in our repository, or throws an exception if there is no such type /** locates the type with the given name in our repository, or throws an exception if there is no such type
*/ */
Repository::iterator implLocate( const OUString& _rName, bool _bAllowMiss = false ) SAL_THROW( ( ::com::sun::star::container::NoSuchElementException ) ); Repository::iterator implLocate( const OUString& _rName, bool _bAllowMiss = false );
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment