Kaydet (Commit) 59bfe693 authored tarafından Alexander Wilms's avatar Alexander Wilms Kaydeden (comit) Caolán McNamara

Remove visual noise from eventattacher

Conflicts:
	eventattacher/source/eventattacher.cxx

Change-Id: I7169992d453b1b2919cc8076fbd6803a95ee0565
Reviewed-on: https://gerrit.libreoffice.org/8258Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst ed2d5968
...@@ -56,10 +56,10 @@ using namespace osl; ...@@ -56,10 +56,10 @@ using namespace osl;
namespace comp_EventAttacher { namespace comp_EventAttacher {
//*************************************************************************
// class InvocationToAllListenerMapper // class InvocationToAllListenerMapper
// helper class to map XInvocation to XAllListener // helper class to map XInvocation to XAllListener
//*************************************************************************
class InvocationToAllListenerMapper : public WeakImplHelper1< XInvocation > class InvocationToAllListenerMapper : public WeakImplHelper1< XInvocation >
{ {
public: public:
...@@ -117,14 +117,14 @@ InvocationToAllListenerMapper::InvocationToAllListenerMapper ...@@ -117,14 +117,14 @@ InvocationToAllListenerMapper::InvocationToAllListenerMapper
{ {
} }
//*************************************************************************
Reference< XIntrospectionAccess > SAL_CALL InvocationToAllListenerMapper::getIntrospection(void) Reference< XIntrospectionAccess > SAL_CALL InvocationToAllListenerMapper::getIntrospection(void)
throw( RuntimeException, std::exception ) throw( RuntimeException, std::exception )
{ {
return Reference< XIntrospectionAccess >(); return Reference< XIntrospectionAccess >();
} }
//*************************************************************************
Any SAL_CALL InvocationToAllListenerMapper::invoke(const OUString& FunctionName, const Sequence< Any >& Params, Any SAL_CALL InvocationToAllListenerMapper::invoke(const OUString& FunctionName, const Sequence< Any >& Params,
Sequence< sal_Int16 >& , Sequence< Any >& ) Sequence< sal_Int16 >& , Sequence< Any >& )
throw( IllegalArgumentException, CannotConvertException, throw( IllegalArgumentException, CannotConvertException,
...@@ -175,21 +175,21 @@ Any SAL_CALL InvocationToAllListenerMapper::invoke(const OUString& FunctionName, ...@@ -175,21 +175,21 @@ Any SAL_CALL InvocationToAllListenerMapper::invoke(const OUString& FunctionName,
return aRet; return aRet;
} }
//*************************************************************************
void SAL_CALL InvocationToAllListenerMapper::setValue(const OUString& , const Any& ) void SAL_CALL InvocationToAllListenerMapper::setValue(const OUString& , const Any& )
throw( UnknownPropertyException, CannotConvertException, throw( UnknownPropertyException, CannotConvertException,
InvocationTargetException, RuntimeException, std::exception ) InvocationTargetException, RuntimeException, std::exception )
{ {
} }
//*************************************************************************
Any SAL_CALL InvocationToAllListenerMapper::getValue(const OUString& ) Any SAL_CALL InvocationToAllListenerMapper::getValue(const OUString& )
throw( UnknownPropertyException, RuntimeException, std::exception ) throw( UnknownPropertyException, RuntimeException, std::exception )
{ {
return Any(); return Any();
} }
//*************************************************************************
sal_Bool SAL_CALL InvocationToAllListenerMapper::hasMethod(const OUString& Name) sal_Bool SAL_CALL InvocationToAllListenerMapper::hasMethod(const OUString& Name)
throw( RuntimeException, std::exception ) throw( RuntimeException, std::exception )
{ {
...@@ -197,7 +197,7 @@ sal_Bool SAL_CALL InvocationToAllListenerMapper::hasMethod(const OUString& Name) ...@@ -197,7 +197,7 @@ sal_Bool SAL_CALL InvocationToAllListenerMapper::hasMethod(const OUString& Name)
return xMethod.is(); return xMethod.is();
} }
//*************************************************************************
sal_Bool SAL_CALL InvocationToAllListenerMapper::hasProperty(const OUString& Name) sal_Bool SAL_CALL InvocationToAllListenerMapper::hasProperty(const OUString& Name)
throw( RuntimeException, std::exception ) throw( RuntimeException, std::exception )
{ {
...@@ -205,10 +205,10 @@ sal_Bool SAL_CALL InvocationToAllListenerMapper::hasProperty(const OUString& Nam ...@@ -205,10 +205,10 @@ sal_Bool SAL_CALL InvocationToAllListenerMapper::hasProperty(const OUString& Nam
return xField.is(); return xField.is();
} }
//*************************************************************************
// class EventAttacherImpl // class EventAttacherImpl
// represents an implementation of the EventAttacher service // represents an implementation of the EventAttacher service
//*************************************************************************
class EventAttacherImpl : public WeakImplHelper3 < XEventAttacher2, XInitialization, XServiceInfo > class EventAttacherImpl : public WeakImplHelper3 < XEventAttacher2, XInitialization, XServiceInfo >
{ {
public: public:
...@@ -283,18 +283,18 @@ private: ...@@ -283,18 +283,18 @@ private:
}; };
//*************************************************************************
EventAttacherImpl::EventAttacherImpl( const Reference< XComponentContext >& rxContext ) EventAttacherImpl::EventAttacherImpl( const Reference< XComponentContext >& rxContext )
: m_xContext( rxContext ) : m_xContext( rxContext )
{ {
} }
//*************************************************************************
EventAttacherImpl::~EventAttacherImpl() EventAttacherImpl::~EventAttacherImpl()
{ {
} }
//*************************************************************************
Reference< XInterface > SAL_CALL EventAttacherImpl_CreateInstance( const Reference< XMultiServiceFactory >& rSMgr ) throw( Exception ) Reference< XInterface > SAL_CALL EventAttacherImpl_CreateInstance( const Reference< XMultiServiceFactory >& rSMgr ) throw( Exception )
{ {
Reference< XInterface > xRet; Reference< XInterface > xRet;
...@@ -308,7 +308,7 @@ Reference< XInterface > SAL_CALL EventAttacherImpl_CreateInstance( const Referen ...@@ -308,7 +308,7 @@ Reference< XInterface > SAL_CALL EventAttacherImpl_CreateInstance( const Referen
return xRet; return xRet;
} }
//*************************************************************************
OUString SAL_CALL EventAttacherImpl::getImplementationName( ) OUString SAL_CALL EventAttacherImpl::getImplementationName( )
throw(RuntimeException, std::exception) throw(RuntimeException, std::exception)
{ {
...@@ -327,14 +327,13 @@ Sequence<OUString> SAL_CALL EventAttacherImpl::getSupportedServiceNames( ) ...@@ -327,14 +327,13 @@ Sequence<OUString> SAL_CALL EventAttacherImpl::getSupportedServiceNames( )
return getSupportedServiceNames_Static(); return getSupportedServiceNames_Static();
} }
//*************************************************************************
Sequence<OUString> SAL_CALL EventAttacherImpl::getSupportedServiceNames_Static( ) Sequence<OUString> SAL_CALL EventAttacherImpl::getSupportedServiceNames_Static( )
{ {
OUString aStr( SERVICENAME ); OUString aStr( SERVICENAME );
return Sequence< OUString >( &aStr, 1 ); return Sequence< OUString >( &aStr, 1 );
} }
//*************************************************************************
void SAL_CALL EventAttacherImpl::initialize(const Sequence< Any >& Arguments) throw( Exception, RuntimeException, std::exception ) void SAL_CALL EventAttacherImpl::initialize(const Sequence< Any >& Arguments) throw( Exception, RuntimeException, std::exception )
{ {
// get services from the argument list // get services from the argument list
...@@ -383,7 +382,7 @@ void SAL_CALL EventAttacherImpl::initialize(const Sequence< Any >& Arguments) th ...@@ -383,7 +382,7 @@ void SAL_CALL EventAttacherImpl::initialize(const Sequence< Any >& Arguments) th
} }
} }
//*************************************************************************
//*** Private helper methods *** //*** Private helper methods ***
Reference< XIntrospection > EventAttacherImpl::getIntrospection() throw( Exception ) Reference< XIntrospection > EventAttacherImpl::getIntrospection() throw( Exception )
{ {
...@@ -395,7 +394,7 @@ Reference< XIntrospection > EventAttacherImpl::getIntrospection() throw( Excepti ...@@ -395,7 +394,7 @@ Reference< XIntrospection > EventAttacherImpl::getIntrospection() throw( Excepti
return m_xIntrospection; return m_xIntrospection;
} }
//*************************************************************************
//*** Private helper methods *** //*** Private helper methods ***
Reference< XIdlReflection > EventAttacherImpl::getReflection() throw( Exception ) Reference< XIdlReflection > EventAttacherImpl::getReflection() throw( Exception )
{ {
...@@ -407,7 +406,7 @@ Reference< XIdlReflection > EventAttacherImpl::getReflection() throw( Exception ...@@ -407,7 +406,7 @@ Reference< XIdlReflection > EventAttacherImpl::getReflection() throw( Exception
return m_xReflection; return m_xReflection;
} }
//*************************************************************************
//*** Private helper methods *** //*** Private helper methods ***
Reference< XInvocationAdapterFactory2 > EventAttacherImpl::getInvocationAdapterService() throw( Exception ) Reference< XInvocationAdapterFactory2 > EventAttacherImpl::getInvocationAdapterService() throw( Exception )
{ {
...@@ -420,7 +419,7 @@ Reference< XInvocationAdapterFactory2 > EventAttacherImpl::getInvocationAdapterS ...@@ -420,7 +419,7 @@ Reference< XInvocationAdapterFactory2 > EventAttacherImpl::getInvocationAdapterS
} }
//*************************************************************************
//*** Private helper methods *** //*** Private helper methods ***
Reference< XTypeConverter > EventAttacherImpl::getConverter() throw( Exception ) Reference< XTypeConverter > EventAttacherImpl::getConverter() throw( Exception )
{ {
...@@ -461,7 +460,7 @@ private: ...@@ -461,7 +460,7 @@ private:
Reference< XAllListener > m_AllListener; Reference< XAllListener > m_AllListener;
}; };
//*************************************************************************
FilterAllListenerImpl::FilterAllListenerImpl( EventAttacherImpl * pEA_, const OUString& EventMethod_, FilterAllListenerImpl::FilterAllListenerImpl( EventAttacherImpl * pEA_, const OUString& EventMethod_,
const Reference< XAllListener >& AllListener_ ) const Reference< XAllListener >& AllListener_ )
: m_pEA( pEA_ ) : m_pEA( pEA_ )
...@@ -471,7 +470,7 @@ FilterAllListenerImpl::FilterAllListenerImpl( EventAttacherImpl * pEA_, const OU ...@@ -471,7 +470,7 @@ FilterAllListenerImpl::FilterAllListenerImpl( EventAttacherImpl * pEA_, const OU
{ {
} }
//*************************************************************************
void SAL_CALL FilterAllListenerImpl::firing(const AllEventObject& Event) void SAL_CALL FilterAllListenerImpl::firing(const AllEventObject& Event)
throw( RuntimeException, std::exception ) throw( RuntimeException, std::exception )
{ {
...@@ -479,7 +478,7 @@ void SAL_CALL FilterAllListenerImpl::firing(const AllEventObject& Event) ...@@ -479,7 +478,7 @@ void SAL_CALL FilterAllListenerImpl::firing(const AllEventObject& Event)
m_AllListener->firing( Event ); m_AllListener->firing( Event );
} }
//*************************************************************************
// Convert to the standard event return // Convert to the standard event return
void FilterAllListenerImpl::convertToEventReturn( Any & rRet, const Type & rRetType ) void FilterAllListenerImpl::convertToEventReturn( Any & rRet, const Type & rRetType )
throw( CannotConvertException ) throw( CannotConvertException )
...@@ -524,7 +523,7 @@ void FilterAllListenerImpl::convertToEventReturn( Any & rRet, const Type & rRetT ...@@ -524,7 +523,7 @@ void FilterAllListenerImpl::convertToEventReturn( Any & rRet, const Type & rRetT
} }
} }
//*************************************************************************
Any SAL_CALL FilterAllListenerImpl::approveFiring( const AllEventObject& Event ) Any SAL_CALL FilterAllListenerImpl::approveFiring( const AllEventObject& Event )
throw( InvocationTargetException, RuntimeException, std::exception ) throw( InvocationTargetException, RuntimeException, std::exception )
{ {
...@@ -555,7 +554,7 @@ Any SAL_CALL FilterAllListenerImpl::approveFiring( const AllEventObject& Event ) ...@@ -555,7 +554,7 @@ Any SAL_CALL FilterAllListenerImpl::approveFiring( const AllEventObject& Event )
return aRet; return aRet;
} }
//*************************************************************************
void FilterAllListenerImpl::disposing(const EventObject& ) void FilterAllListenerImpl::disposing(const EventObject& )
throw( RuntimeException, std::exception ) throw( RuntimeException, std::exception )
{ {
...@@ -563,7 +562,7 @@ void FilterAllListenerImpl::disposing(const EventObject& ) ...@@ -563,7 +562,7 @@ void FilterAllListenerImpl::disposing(const EventObject& )
} }
//*************************************************************************
Reference< XEventListener > EventAttacherImpl::attachListener Reference< XEventListener > EventAttacherImpl::attachListener
( (
const Reference< XInterface >& xObject, const Reference< XInterface >& xObject,
......
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