diff options
author | Povilas Kanapickas <povilas.kanapickas@gmail.com> | 2010-10-18 19:37:48 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@novell.com> | 2010-10-18 19:38:00 +0100 |
commit | bc8fcf207ffeee1dd6fb4a361b0ad5c5def21beb (patch) | |
tree | 43f54910146344613e641bd0b54cee3069292624 /scripting/source/vbaevents/eventhelper.cxx | |
parent | 34f1c06830ae530bea4f11aca91e2836a53fd764 (diff) |
remove non-compiled code
Diffstat (limited to 'scripting/source/vbaevents/eventhelper.cxx')
-rw-r--r-- | scripting/source/vbaevents/eventhelper.cxx | 77 |
1 files changed, 1 insertions, 76 deletions
diff --git a/scripting/source/vbaevents/eventhelper.cxx b/scripting/source/vbaevents/eventhelper.cxx index d6512f5b0661..ebe286a7d815 100644 --- a/scripting/source/vbaevents/eventhelper.cxx +++ b/scripting/source/vbaevents/eventhelper.cxx @@ -119,78 +119,6 @@ using namespace ::ooo::vba; const static rtl::OUString DELIM = rtl::OUString::createFromAscii( "::" ); const static sal_Int32 DELIMLEN = DELIM.getLength(); -#if 0 -void dumpListeners( const Reference< beans::XIntrospection >& xIntrospection, const Reference<XInterface>& xIfc) -{ - Reference< beans::XIntrospectionAccess > xIntrospectionAccess; - if ( xIntrospection.is() ) - { - xIntrospectionAccess = xIntrospection->inspect( - makeAny( xIfc ) ); - Sequence< Type > aControlListeners = - xIntrospectionAccess->getSupportedListeners(); - sal_Int32 nLength = aControlListeners.getLength(); - - for ( sal_Int32 i = 0; i< nLength; ++i ) - { - Type& listType = aControlListeners[ i ]; - rtl::OUString sFullTypeName = listType.getTypeName(); - rtl::OUString sTypeName = listType.getTypeName(); - sal_Int32 lastDotIndex = -1; - if ( ( lastDotIndex = sFullTypeName.lastIndexOf( '.' ) ) > -1 ) - { - sTypeName = sFullTypeName.copy( lastDotIndex + 1 ); - } - Sequence< ::rtl::OUString > sMeths = comphelper::getEventMethodsForType( listType ); - sal_Int32 sMethLen = sMeths.getLength(); - for ( sal_Int32 j=0 ; j < sMethLen; ++j ) - { - OSL_TRACE("**Listener [%d] Type[%s] Method[%s]",j, - rtl::OUStringToOString( sTypeName, - RTL_TEXTENCODING_UTF8 ).getStr(), - rtl::OUStringToOString( sMeths[ j ], - RTL_TEXTENCODING_UTF8 ).getStr() ); - } - } - - } -} - -void dumpEvent( const ScriptEvent& evt ) -{ - OSL_TRACE("dumpEvent: Source %s", - rtl::OUStringToOString( comphelper::anyToString( makeAny(evt.Source)), - RTL_TEXTENCODING_UTF8 ).getStr() ); - - OSL_TRACE("dumpEvent: ScriptType %s", - rtl::OUStringToOString( evt.ScriptType, - RTL_TEXTENCODING_UTF8 ).getStr() ); - - OSL_TRACE("dumpEvent: ScriptCode %s", - rtl::OUStringToOString( evt.ScriptCode, - RTL_TEXTENCODING_UTF8 ).getStr() ); - - OSL_TRACE("dumpEvent: ListenerType %s", - rtl::OUStringToOString( evt.ListenerType.getTypeName(), - RTL_TEXTENCODING_UTF8 ).getStr() ); - - OSL_TRACE("dumpEvent: Listener methodname %s", - rtl::OUStringToOString( evt.MethodName, - RTL_TEXTENCODING_UTF8 ).getStr() ); - - OSL_TRACE("dumpEvent: arguments;"); - sal_Int32 nLen = evt.Arguments.getLength(); - for ( sal_Int32 index=0; index < nLen; ++index ) - { - OSL_TRACE("\t [%d] %s", index, - rtl::OUStringToOString( comphelper::anyToString( evt.Arguments[ index ] ), - RTL_TEXTENCODING_UTF8 ).getStr() ); - - } -} - -#endif - bool isKeyEventOk( awt::KeyEvent& evt, const Sequence< Any >& params ) { if ( !( params.getLength() > 0 ) || @@ -514,10 +442,7 @@ ScriptEventHelper::getEventListeners() Reference< beans::XIntrospection > xIntrospection( xMFac->createInstanceWithContext( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.beans.Introspection" ) ), m_xCtx ), UNO_QUERY ); -#if 0 - dumpListeners( xIntrospection, m_xControl ); - dumpListeners( xIntrospection, m_xControl->getModel() ); -#endif + Reference< beans::XIntrospectionAccess > xIntrospectionAccess; if ( xIntrospection.is() ) { |