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
}
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
{
......
......@@ -242,7 +242,7 @@ namespace frm
void implSubmit(
const ::com::sun::star::awt::MouseEvent& _rEvent,
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
......
......@@ -285,7 +285,7 @@ namespace frm
bool OEntryListHelper::convertNewListSourceProperty( Any& _rConvertedValue,
Any& _rOldValue, const Any& _rValue ) SAL_THROW( ( IllegalArgumentException ) )
Any& _rOldValue, const Any& _rValue )
{
if ( hasExternalListSource() )
throw IllegalArgumentException( );
......
......@@ -95,8 +95,7 @@ namespace frm
::com::sun::star::uno::Any& _rConvertedValue,
::com::sun::star::uno::Any& _rOldValue,
const ::com::sun::star::uno::Any& _rValue
)
SAL_THROW( ( ::com::sun::star::lang::IllegalArgumentException ) );
);
/** helper for implementing setFastPropertyValueNoBroadcast
......
......@@ -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;
if ( m_xFirstDispatchInterceptor.is() )
......@@ -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 );
}
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 ) );
}
......
......@@ -263,7 +263,7 @@ protected:
@throws ::com::sun::star::lang::IndexOutOfBoundsException
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:
// hack for Vba Events
......
......@@ -71,18 +71,18 @@ namespace frm
/** queries the interceptor chain for the given dispatch
*/
::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
*/
::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,
with a blank target frame and no frame search flags
*/
::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
virtual bool implTypedNotify(
const ::com::sun::star::uno::Reference< ListenerClass >& _rxListener,
const EventClass& _rEvent
) SAL_THROW( ( ::com::sun::star::uno::Exception ) ) = 0;
) = 0;
public:
inline bool notify()
......@@ -112,7 +112,7 @@ namespace frm
virtual bool implTypedNotify(
const ::com::sun::star::uno::Reference< ::com::sun::star::form::XResetListener >& _rxListener,
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
}
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())
throw IndexOutOfBoundsException();
......
......@@ -33,7 +33,7 @@ namespace frm
bool ResetListeners::implTypedNotify( const Reference< XResetListener >& _rxListener,
const EventObject& _rEvent ) SAL_THROW( ( Exception ) )
const EventObject& _rEvent )
{
switch ( m_eCurrentNotificationType )
{
......
......@@ -55,7 +55,7 @@ namespace frm
);
/// notifies a new attribute state
void notifyAttributeState( const AttributeState& _rState ) SAL_THROW (());
void notifyAttributeState( const AttributeState& _rState );
protected:
virtual ~OAttributeDispatcher( );
......@@ -81,7 +81,7 @@ namespace frm
void notifyState(
const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XStatusListener >& _rxControl,
const AttributeState& _rState
) SAL_THROW (());
);
};
......
......@@ -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!" );
if ( _rxListener.is() )
......
......@@ -77,7 +77,7 @@ namespace frm
void doNotify(
const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XStatusListener >& _rxListener,
const ::com::sun::star::frame::FeatureStateEvent& _rEvent
) const SAL_THROW(());
) const;
protected:
// XDispatch
......
......@@ -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 );
if ( aTypePos == m_aRepository.end() && !_bAllowMiss )
......
......@@ -74,7 +74,7 @@ namespace xforms
private:
/** 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