Kaydet (Commit) 5c02bb0f authored tarafından Tor Lillqvist's avatar Tor Lillqvist Kaydeden (comit) Tor Lillqvist

DISABLE_DYNLOADING fixes and minor cleanup

Change-Id: I08ce3523f259b1ace7c2a1a58b091b43a44a7d92
üst 8226b906
...@@ -468,17 +468,22 @@ void SfxApplication::Invalidate( sal_uInt16 nId ) ...@@ -468,17 +468,22 @@ void SfxApplication::Invalidate( sal_uInt16 nId )
Invalidate_Impl( pFrame->GetBindings(), nId ); Invalidate_Impl( pFrame->GetBindings(), nId );
} }
#define DOSTRING( x ) #x
#define STRING( x ) DOSTRING( x )
#ifndef DISABLE_SCRIPTING #ifndef DISABLE_SCRIPTING
#ifndef DISABLE_DYNLOADING
typedef long (SAL_CALL *basicide_handle_basic_error)(void*); typedef long (SAL_CALL *basicide_handle_basic_error)(void*);
typedef rtl_uString* (SAL_CALL *basicide_choose_macro)(void*, sal_Bool, rtl_uString*);
typedef void* (SAL_CALL *basicide_macro_organizer)(sal_Int16); typedef void* (SAL_CALL *basicide_macro_organizer)(sal_Int16);
extern "C" { static void SAL_CALL thisModule() {} } extern "C" { static void SAL_CALL thisModule() {} }
#else
extern "C" long basicide_handle_basic_error(void*);
extern "C" void *basicide_macro_organizer(sal_Int16);
#endif
#endif #endif
IMPL_LINK( SfxApplication, GlobalBasicErrorHdl_Impl, StarBASIC*, pStarBasic ) IMPL_LINK( SfxApplication, GlobalBasicErrorHdl_Impl, StarBASIC*, pStarBasic )
...@@ -487,6 +492,8 @@ IMPL_LINK( SfxApplication, GlobalBasicErrorHdl_Impl, StarBASIC*, pStarBasic ) ...@@ -487,6 +492,8 @@ IMPL_LINK( SfxApplication, GlobalBasicErrorHdl_Impl, StarBASIC*, pStarBasic )
(void) pStarBasic; (void) pStarBasic;
return 0; return 0;
#else #else
#ifndef DISABLE_DYNLOADING
// get basctl dllname // get basctl dllname
static ::rtl::OUString aLibName( SVLIBRARY( "basctl" ) ); static ::rtl::OUString aLibName( SVLIBRARY( "basctl" ) );
...@@ -501,7 +508,14 @@ IMPL_LINK( SfxApplication, GlobalBasicErrorHdl_Impl, StarBASIC*, pStarBasic ) ...@@ -501,7 +508,14 @@ IMPL_LINK( SfxApplication, GlobalBasicErrorHdl_Impl, StarBASIC*, pStarBasic )
// call basicide_handle_basic_error in basctl // call basicide_handle_basic_error in basctl
long nRet = pSymbol ? pSymbol( pStarBasic ) : 0; long nRet = pSymbol ? pSymbol( pStarBasic ) : 0;
#else
long nRet = basicide_handle_basic_error( pStarBasic );
#endif
return nRet; return nRet;
#endif #endif
} }
...@@ -586,6 +600,8 @@ void SfxApplication::MacroOrganizer( sal_Int16 nTabId ) ...@@ -586,6 +600,8 @@ void SfxApplication::MacroOrganizer( sal_Int16 nTabId )
#ifdef DISABLE_SCRIPTING #ifdef DISABLE_SCRIPTING
(void) nTabId; (void) nTabId;
#else #else
#ifndef DISABLE_DYNLOADING
// get basctl dllname // get basctl dllname
static ::rtl::OUString aLibName( SVLIBRARY( "basctl" ) ); static ::rtl::OUString aLibName( SVLIBRARY( "basctl" ) );
...@@ -597,8 +613,15 @@ void SfxApplication::MacroOrganizer( sal_Int16 nTabId ) ...@@ -597,8 +613,15 @@ void SfxApplication::MacroOrganizer( sal_Int16 nTabId )
::rtl::OUString aSymbol( "basicide_macro_organizer" ); ::rtl::OUString aSymbol( "basicide_macro_organizer" );
basicide_macro_organizer pSymbol = (basicide_macro_organizer) osl_getFunctionSymbol( handleMod, aSymbol.pData ); basicide_macro_organizer pSymbol = (basicide_macro_organizer) osl_getFunctionSymbol( handleMod, aSymbol.pData );
// call basicide_choose_macro in basctl // call basicide_macro_organizer in basctl
pSymbol( nTabId ); pSymbol( nTabId );
#else
basicide_macro_organizer( nTabId );
#endif
#endif #endif
} }
......
...@@ -836,14 +836,11 @@ void SfxApplication::MiscState_Impl(SfxItemSet &rSet) ...@@ -836,14 +836,11 @@ void SfxApplication::MiscState_Impl(SfxItemSet &rSet)
#ifndef DISABLE_SCRIPTING #ifndef DISABLE_SCRIPTING
#ifndef DISABLE_DYNLOADING
typedef rtl_uString* (SAL_CALL *basicide_choose_macro)(XModel*, sal_Bool, rtl_uString*); typedef rtl_uString* (SAL_CALL *basicide_choose_macro)(XModel*, sal_Bool, rtl_uString*);
typedef void (SAL_CALL *basicide_macro_organizer)( sal_Int16 ); typedef void (SAL_CALL *basicide_macro_organizer)( sal_Int16 );
#define DOSTRING( x ) #x
#define STRING( x ) DOSTRING( x )
#ifndef DISABLE_DYNLOADING
extern "C" { static void SAL_CALL thisModule() {} } extern "C" { static void SAL_CALL thisModule() {} }
#else #else
......
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