diff options
author | Kurt Zenker <kz@openoffice.org> | 2005-01-13 16:43:11 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2005-01-13 16:43:11 +0000 |
commit | 565aefdc1102d72099d1d1a237229e57b2b51440 (patch) | |
tree | 5d65f8d2b29a7208a34576fd8c217f50fa513426 /scripting/source/basprov/basprov.cxx | |
parent | 65a5b54fc553a3516632780b3e703372c2903e93 (diff) |
INTEGRATION: CWS tbe15 (1.13.12); FILE MERGED
2004/12/03 16:23:56 tbe 1.13.12.1: #i38139# Tools/Macro/Run Macro freezes office when Basic macro is already running
Diffstat (limited to 'scripting/source/basprov/basprov.cxx')
-rw-r--r-- | scripting/source/basprov/basprov.cxx | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/scripting/source/basprov/basprov.cxx b/scripting/source/basprov/basprov.cxx index a558bc49515e..93ab933645c8 100644 --- a/scripting/source/basprov/basprov.cxx +++ b/scripting/source/basprov/basprov.cxx @@ -2,9 +2,9 @@ * * $RCSfile: basprov.cxx,v $ * - * $Revision: 1.13 $ + * $Revision: 1.14 $ * - * last change: $Author: rt $ $Date: 2004-10-22 14:02:27 $ + * last change: $Author: kz $ $Date: 2005-01-13 17:43:11 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -93,6 +93,12 @@ #ifndef _OSL_FILE_HXX_ #include <osl/file.hxx> #endif +#ifndef _VOS_MUTEX_HXX_ +#include <vos/mutex.hxx> +#endif +#ifndef _SV_SVAPP_HXX +#include <vcl/svapp.hxx> +#endif #ifndef _SBXCLASS_HXX #include <svtools/sbx.hxx> #endif @@ -320,7 +326,7 @@ namespace basprov { // TODO - ::osl::MutexGuard aGuard( StarBASIC::GetGlobalMutex() ); + ::vos::OGuard aGuard( Application::GetSolarMutex() ); if ( aArguments.getLength() == 1 && aArguments[0].getValueType() == ::getCppuType( (const ::rtl::OUString* ) NULL )) { @@ -393,7 +399,7 @@ namespace basprov { // TODO - ::osl::MutexGuard aGuard( StarBASIC::GetGlobalMutex() ); + ::vos::OGuard aGuard( Application::GetSolarMutex() ); Reference< provider::XScript > xScript; Reference< lang::XMultiComponentFactory > xMcFac ( m_xContext->getServiceManager() ); @@ -501,7 +507,7 @@ namespace basprov { // TODO - ::osl::MutexGuard aGuard( StarBASIC::GetGlobalMutex() ); + ::vos::OGuard aGuard( Application::GetSolarMutex() ); return ::rtl::OUString::createFromAscii( "Basic" ); } @@ -510,7 +516,7 @@ namespace basprov Sequence< Reference< browse::XBrowseNode > > BasicProviderImpl::getChildNodes( ) throw (RuntimeException) { - ::osl::MutexGuard aGuard( StarBASIC::GetGlobalMutex() ); + ::vos::OGuard aGuard( Application::GetSolarMutex() ); Reference< script::XLibraryContainer > xLibContainer; BasicManager* pBasicManager = NULL; @@ -568,7 +574,7 @@ namespace basprov sal_Bool BasicProviderImpl::hasChildNodes( ) throw (RuntimeException) { - ::osl::MutexGuard aGuard( StarBASIC::GetGlobalMutex() ); + ::vos::OGuard aGuard( Application::GetSolarMutex() ); sal_Bool bReturn = sal_False; Reference< script::XLibraryContainer > xLibContainer; @@ -590,7 +596,7 @@ namespace basprov sal_Int16 BasicProviderImpl::getType( ) throw (RuntimeException) { - ::osl::MutexGuard aGuard( StarBASIC::GetGlobalMutex() ); + ::vos::OGuard aGuard( Application::GetSolarMutex() ); return browse::BrowseNodeTypes::CONTAINER; } |