Kaydet (Commit) 40264372 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

tdf#124168: We do need the BasicDLL thing also in the iOS app

For instance, simply inserting a table of contents needs stuff from
it.

But do keep use of the StarBASIC::* API inside #if
HAVE_FEATURE_SCRIPTING.

Change-Id: I348ce79899f468e104af336501706f88a6afa287
üst 3681e8d8
......@@ -100,9 +100,7 @@ using namespace ::com::sun::star;
static SfxApplication* g_pSfxApplication = nullptr;
#if HAVE_FEATURE_SCRIPTING
static BasicDLL* pBasic = nullptr;
#endif
#if HAVE_FEATURE_DESKTOP
static SfxHelp* pSfxHelp = nullptr;
......@@ -199,10 +197,12 @@ SfxApplication::SfxApplication()
pSfxHelp = new SfxHelp;
#endif
#if HAVE_FEATURE_SCRIPTING
pBasic = new BasicDLL;
#if HAVE_FEATURE_SCRIPTING
StarBASIC::SetGlobalErrorHdl( LINK( this, SfxApplication, GlobalBasicErrorHdl_Impl ) );
#endif
SAL_INFO( "sfx.appl", "} initialize DDE" );
}
......@@ -227,9 +227,7 @@ SfxApplication::~SfxApplication()
if ( !pImpl->bDowning )
Deinitialize();
#if HAVE_FEATURE_SCRIPTING
delete pBasic;
#endif
g_pSfxApplication = nullptr;
}
......
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