diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2003-04-04 18:19:51 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2003-04-04 18:19:51 +0000 |
commit | e4fd7133fe532c4cc19bc30d00cefdb75a96c62f (patch) | |
tree | 9d440962c4b8a15b206fb87867456d03e34e0edb /sc/source/ui/unoobj/unodoc.cxx | |
parent | e3c969e38f62e520069ffdd7f1e6c7810af99303 (diff) |
INTEGRATION: CWS mav3 (1.1.6.1.40); FILE MERGED
2003/03/28 12:05:03 mav 1.1.6.1.40.1: #i2822# use solar mutex
Diffstat (limited to 'sc/source/ui/unoobj/unodoc.cxx')
-rw-r--r-- | sc/source/ui/unoobj/unodoc.cxx | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/sc/source/ui/unoobj/unodoc.cxx b/sc/source/ui/unoobj/unodoc.cxx index 7dcc47c01..eccfaad12 100644 --- a/sc/source/ui/unoobj/unodoc.cxx +++ b/sc/source/ui/unoobj/unodoc.cxx @@ -2,9 +2,9 @@ * * $RCSfile: unodoc.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: hr $ $Date: 2003-03-26 18:06:45 $ + * last change: $Author: hr $ $Date: 2003-04-04 19:19:51 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -70,6 +70,13 @@ #include "scmod.hxx" +#ifndef _VOS_MUTEX_HXX_ +#include <vos/mutex.hxx> +#endif +#ifndef _SV_SVAPP_HXX +#include <vcl/svapp.hxx> +#endif + using namespace ::com::sun::star; ::rtl::OUString SAL_CALL ScDocument_getImplementationName() throw() @@ -88,6 +95,8 @@ uno::Sequence< rtl::OUString > SAL_CALL ScDocument_getSupportedServiceNames() th uno::Reference< uno::XInterface > SAL_CALL ScDocument_createInstance( const uno::Reference< lang::XMultiServiceFactory > & rSMgr ) throw( uno::Exception ) { + ::vos::OGuard aGuard( Application::GetSolarMutex() ); + // to create the service the SW_MOD should be already initialized DBG_ASSERT( SC_MOD(), "No StarCalc module!" ); |