diff options
Diffstat (limited to 'sfx2/source/appl/appinit.cxx')
-rw-r--r-- | sfx2/source/appl/appinit.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sfx2/source/appl/appinit.cxx b/sfx2/source/appl/appinit.cxx index dfbed1e1760b..2fa68ad8cd9a 100644 --- a/sfx2/source/appl/appinit.cxx +++ b/sfx2/source/appl/appinit.cxx @@ -17,6 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include <config_features.h> #include <sfx2/app.hxx> #include <com/sun/star/frame/XTerminateListener.hpp> @@ -224,14 +225,14 @@ bool SfxApplication::Initialize_Impl() pAppData_Impl->m_pToolsErrorHdl = new SfxErrorHandler( RID_ERRHDL, ERRCODE_AREA_TOOLS, ERRCODE_AREA_LIB1); -#ifndef DISABLE_SCRIPTING +#if HAVE_FEATURE_SCRIPTING pAppData_Impl->pBasicResMgr = ResMgr::CreateResMgr("sb"); #endif pAppData_Impl->pSvtResMgr = ResMgr::CreateResMgr("svt"); pAppData_Impl->m_pSoErrorHdl = new SfxErrorHandler( RID_SO_ERROR_HANDLER, ERRCODE_AREA_SO, ERRCODE_AREA_SO_END, pAppData_Impl->pSvtResMgr ); -#ifndef DISABLE_SCRIPTING +#if HAVE_FEATURE_SCRIPTING pAppData_Impl->m_pSbxErrorHdl = new SfxErrorHandler( RID_BASIC_START, ERRCODE_AREA_SBX, ERRCODE_AREA_SBX_END, pAppData_Impl->pBasicResMgr ); #endif |