From d84c68f93a27c863ccb95ed69b581fb1cbfc8326 Mon Sep 17 00:00:00 2001 From: Kurt Zenker Date: Thu, 13 Jan 2005 16:42:17 +0000 Subject: [PATCH] INTEGRATION: CWS tbe15 (1.6.12); FILE MERGED 2004/12/03 16:22:18 tbe 1.6.12.1: #i38139# Tools/Macro/Run Macro freezes office when Basic macro is already running --- scripting/source/basprov/baslibnode.cxx | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/scripting/source/basprov/baslibnode.cxx b/scripting/source/basprov/baslibnode.cxx index 2de3bd68eca8..a9565a097322 100644 --- a/scripting/source/basprov/baslibnode.cxx +++ b/scripting/source/basprov/baslibnode.cxx @@ -2,9 +2,9 @@ * * $RCSfile: baslibnode.cxx,v $ * - * $Revision: 1.6 $ + * $Revision: 1.7 $ * - * last change: $Author: rt $ $Date: 2004-10-22 14:00:52 $ + * last change: $Author: kz $ $Date: 2005-01-13 17:42:17 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -71,6 +71,12 @@ #include #endif +#ifndef _VOS_MUTEX_HXX_ +#include +#endif +#ifndef _SV_SVAPP_HXX +#include +#endif #ifndef _BASMGR_HXX #include #endif @@ -123,7 +129,7 @@ namespace basprov ::rtl::OUString BasicLibraryNodeImpl::getName( ) throw (RuntimeException) { - ::osl::MutexGuard aGuard( StarBASIC::GetGlobalMutex() ); + ::vos::OGuard aGuard( Application::GetSolarMutex() ); return m_sLibName; } @@ -132,7 +138,7 @@ namespace basprov Sequence< Reference< browse::XBrowseNode > > BasicLibraryNodeImpl::getChildNodes( ) throw (RuntimeException) { - ::osl::MutexGuard aGuard( StarBASIC::GetGlobalMutex() ); + ::vos::OGuard aGuard( Application::GetSolarMutex() ); Sequence< Reference< browse::XBrowseNode > > aChildNodes; @@ -166,7 +172,7 @@ namespace basprov sal_Bool BasicLibraryNodeImpl::hasChildNodes( ) throw (RuntimeException) { - ::osl::MutexGuard aGuard( StarBASIC::GetGlobalMutex() ); + ::vos::OGuard aGuard( Application::GetSolarMutex() ); sal_Bool bReturn = sal_False; if ( m_xLibrary.is() ) @@ -179,7 +185,7 @@ namespace basprov sal_Int16 BasicLibraryNodeImpl::getType( ) throw (RuntimeException) { - ::osl::MutexGuard aGuard( StarBASIC::GetGlobalMutex() ); + ::vos::OGuard aGuard( Application::GetSolarMutex() ); return browse::BrowseNodeTypes::CONTAINER; }