summaryrefslogtreecommitdiff
path: root/sfx2/source/appl/appinit.cxx
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2013-01-07 00:34:00 +0200
committerTor Lillqvist <tml@iki.fi>2013-01-07 00:50:05 +0200
commit80acb4482d392ff40c56211c1048514fbda23aa5 (patch)
tree29491dbf3ffa8806b48b1a89af0669224845f596 /sfx2/source/appl/appinit.cxx
parente48d47469508dee55ae6abcb3988222b5612e1e9 (diff)
Add some DISABLE_SCRIPTING ifndefs
Change-Id: I2bb4f00ece212fe3c4741deea0bcad50e1fd60e1
Diffstat (limited to 'sfx2/source/appl/appinit.cxx')
-rw-r--r--sfx2/source/appl/appinit.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/sfx2/source/appl/appinit.cxx b/sfx2/source/appl/appinit.cxx
index 1e0864f0f694..935d00ab4ff8 100644
--- a/sfx2/source/appl/appinit.cxx
+++ b/sfx2/source/appl/appinit.cxx
@@ -240,14 +240,17 @@ bool SfxApplication::Initialize_Impl()
pAppData_Impl->m_pToolsErrorHdl = new SfxErrorHandler(
RID_ERRHDL, ERRCODE_AREA_TOOLS, ERRCODE_AREA_LIB1);
+#ifndef DISABLE_SCRIPTING
pAppData_Impl->pBasicResMgr = CreateResManager("sb");
+#endif
pAppData_Impl->pSvtResMgr = CreateResManager("svt");
pAppData_Impl->m_pSoErrorHdl = new SfxErrorHandler(
RID_SO_ERROR_HANDLER, ERRCODE_AREA_SO, ERRCODE_AREA_SO_END, pAppData_Impl->pSvtResMgr );
+#ifndef DISABLE_SCRIPTING
pAppData_Impl->m_pSbxErrorHdl = new SfxErrorHandler(
RID_BASIC_START, ERRCODE_AREA_SBX, ERRCODE_AREA_SBX_END, pAppData_Impl->pBasicResMgr );
-
+#endif
//ensure instantiation of listener that manages the internal recently-used
//list
SfxPickList::ensure();