INTEGRATION: CWS scriptingf4 (1.9.4); FILE MERGED

2004/05/11 10:08:56 toconnor 1.9.4.1: #i28888# - basic provider not executing script for Start Application event
This commit is contained in:
Rüdiger Timm
2004-05-19 07:26:50 +00:00
parent 34e1c6badd
commit db6cbe5177

View File

@@ -2,9 +2,9 @@
*
* $RCSfile: basprov.cxx,v $
*
* $Revision: 1.9 $
* $Revision: 1.10 $
*
* last change: $Author: svesik $ $Date: 2004-04-19 23:13:45 $
* last change: $Author: rt $ $Date: 2004-05-19 08:26:50 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -173,6 +173,9 @@ namespace basprov
,m_bIsAppScriptCtx( true )
,m_bIsUserCtx(true)
{
// TODO
if ( !m_pAppBasicManager )
m_pAppBasicManager = SFX_APP()->GetBasicManager();
}
// -----------------------------------------------------------------------------
@@ -283,10 +286,6 @@ namespace basprov
*/
}
// TODO
if ( !m_pAppBasicManager )
m_pAppBasicManager = SFX_APP()->GetBasicManager();
if ( !m_xLibContainerApp.is() )
m_xLibContainerApp = Reference< script::XLibraryContainer >( SFX_APP()->GetBasicContainer(), UNO_QUERY );
}
@@ -380,7 +379,9 @@ namespace basprov
{
SbMethod* pMethod = static_cast< SbMethod* >( pMethods->Find( aMethod, SbxCLASS_METHOD ) );
if ( pMethod )
{
xScript = static_cast< provider::XScript* >( new BasicScriptImpl( pMethod ) );
}
}
}
}