summaryrefslogtreecommitdiff
path: root/sd/source
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2018-02-10 17:27:42 +0100
committerAndras Timar <andras.timar@collabora.com>2018-03-25 18:30:03 +0200
commit27b208c5f945b06d308fede54523f77dbea5445b (patch)
tree1819603106c66c27d6257387f01a4309bca735bc /sd/source
parentb871f33f85422640ec9a248c80935f18e4eadb57 (diff)
lok: allow libraries to pre-init themselves.
Populate static module references before entering a jail containing no code. Implement for scfilt, scui, swui, sdui. Change-Id: I8fec2aa78e67053a7945926c818122bd4290103c Reviewed-on: https://gerrit.libreoffice.org/49545 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com> (cherry picked from commit f215096c24429fe69e7e5ab37898d0f0beeff0ab)
Diffstat (limited to 'sd/source')
-rw-r--r--sd/source/ui/app/sddll.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/sd/source/ui/app/sddll.cxx b/sd/source/ui/app/sddll.cxx
index b48b928dd31b..9239951476d1 100644
--- a/sd/source/ui/app/sddll.cxx
+++ b/sd/source/ui/app/sddll.cxx
@@ -96,6 +96,7 @@
#include <vcl/FilterConfigItem.hxx>
#include <comphelper/processfactory.hxx>
#include <o3tl/make_unique.hxx>
+#include <sdabstdlg.hxx>
using namespace ::com::sun::star;
@@ -289,4 +290,10 @@ void SdDLL::Init()
#endif
}
+extern "C" SAL_DLLPUBLIC_EXPORT
+void lok_preload_hook()
+{
+ SdAbstractDialogFactory::Create();
+}
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */