Kaydet (Commit) db6cbe51 authored tarafından Rüdiger Timm's avatar Rüdiger Timm

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
üst 34e1c6ba
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: basprov.cxx,v $ * $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 * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -173,6 +173,9 @@ namespace basprov ...@@ -173,6 +173,9 @@ namespace basprov
,m_bIsAppScriptCtx( true ) ,m_bIsAppScriptCtx( true )
,m_bIsUserCtx(true) ,m_bIsUserCtx(true)
{ {
// TODO
if ( !m_pAppBasicManager )
m_pAppBasicManager = SFX_APP()->GetBasicManager();
} }
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
...@@ -283,10 +286,6 @@ namespace basprov ...@@ -283,10 +286,6 @@ namespace basprov
*/ */
} }
// TODO
if ( !m_pAppBasicManager )
m_pAppBasicManager = SFX_APP()->GetBasicManager();
if ( !m_xLibContainerApp.is() ) if ( !m_xLibContainerApp.is() )
m_xLibContainerApp = Reference< script::XLibraryContainer >( SFX_APP()->GetBasicContainer(), UNO_QUERY ); m_xLibContainerApp = Reference< script::XLibraryContainer >( SFX_APP()->GetBasicContainer(), UNO_QUERY );
} }
...@@ -380,12 +379,14 @@ namespace basprov ...@@ -380,12 +379,14 @@ namespace basprov
{ {
SbMethod* pMethod = static_cast< SbMethod* >( pMethods->Find( aMethod, SbxCLASS_METHOD ) ); SbMethod* pMethod = static_cast< SbMethod* >( pMethods->Find( aMethod, SbxCLASS_METHOD ) );
if ( pMethod ) if ( pMethod )
{
xScript = static_cast< provider::XScript* >( new BasicScriptImpl( pMethod ) ); xScript = static_cast< provider::XScript* >( new BasicScriptImpl( pMethod ) );
} }
} }
} }
} }
} }
}
if ( !xScript.is() ) if ( !xScript.is() )
{ {
......
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