summaryrefslogtreecommitdiff
path: root/sw/inc/init.hxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2011-10-06 09:28:20 +0200
committerStephan Bergmann <sbergman@redhat.com>2011-10-06 09:28:20 +0200
commit06fdd1585d59b2580e8e35bba8a3295bbda28c6e (patch)
tree1c08083e2721054b94841a1f69fb84d2454aa515 /sw/inc/init.hxx
parent8529da08517b41bd9317714e3216bb6d487b24ee (diff)
Ensure msword lib has not yet been unloaded when aReaderWriter pReaders are destroyed.
...as some may use code exported from msword lib. The newly introduced sw::Filters class can still be improved, bundling what is currently exported through various channels from fltini.cxx. Also, the code is still not thread safe.
Diffstat (limited to 'sw/inc/init.hxx')
-rw-r--r--sw/inc/init.hxx24
1 files changed, 22 insertions, 2 deletions
diff --git a/sw/inc/init.hxx b/sw/inc/init.hxx
index 42f540615c9c..daad12c42c67 100644
--- a/sw/inc/init.hxx
+++ b/sw/inc/init.hxx
@@ -28,13 +28,33 @@
#ifndef _INIT_HXX
#define _INIT_HXX
+#include "sal/config.h"
+
+#include "boost/noncopyable.hpp"
+#include "osl/module.h"
+#include "osl/module.hxx"
+
class ViewShell;
void _InitCore(); // bastyp/init.cxx
void _FinitCore();
-void _InitFilter(); // basflt/fltini.cxx
-void _FinitFilter();
+namespace sw {
+
+// basflt/fltini.cxx
+class Filters: private boost::noncopyable {
+public:
+ Filters();
+
+ ~Filters();
+
+ oslGenericFunction GetMswordLibSymbol( const char *pSymbol );
+
+private:
+ osl::Module msword_;
+};
+
+}
// layout/newfrm.cxx
void _FrmInit();