initial commit for vba blob ( not including container_control stuff )
This commit is contained in:
@@ -154,9 +154,16 @@ void OInterfaceContainer::impl_addVbEvents_nolck_nothrow( const sal_Int32 i_nIn
|
||||
xProps->getPropertyValue( rtl::OUString::createFromAscii("DefaultControl" ) ) >>= sServiceName;
|
||||
|
||||
Reference< ooo::vba::XVBAToOOEventDescGen > xDescSupplier( m_xServiceFactory->createInstance( rtl::OUString::createFromAscii( "ooo.vba.VBAToOOEventDesc" ) ), UNO_QUERY_THROW );
|
||||
Sequence< ScriptEventDescriptor > vbaEvents = xDescSupplier->getEventDescriptions( m_xServiceFactory->createInstance( sServiceName ), sCodeName );
|
||||
Reference< XInterface > xInterface = m_xServiceFactory->createInstance( sServiceName );
|
||||
Sequence< ScriptEventDescriptor > vbaEvents = xDescSupplier->getEventDescriptions( xInterface, sCodeName );
|
||||
// register the vba script events
|
||||
m_xEventAttacher->registerScriptEvents( i_nIndex, vbaEvents );
|
||||
|
||||
Reference< XComponent > xComponent( xInterface, UNO_QUERY );
|
||||
if ( xComponent.is() )
|
||||
{
|
||||
xComponent->dispose();
|
||||
}
|
||||
}
|
||||
while ( false );
|
||||
}
|
||||
|
Reference in New Issue
Block a user