summaryrefslogtreecommitdiff
path: root/framework/source/uiconfiguration
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-03-17 18:00:10 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-03-17 18:00:10 +0100
commit07b32bc2bf0cd329258b4924839e5b900b7e6196 (patch)
tree72158346b5677065a032010c44f878ae2f6696df /framework/source/uiconfiguration
parenta98d7543ad599092081970c48c0c650c142cf762 (diff)
Consolidate framework::{Resetable,}Guard
Change-Id: I97290c2504992f4a92e6aeb71e02a2542dd35faa
Diffstat (limited to 'framework/source/uiconfiguration')
-rw-r--r--framework/source/uiconfiguration/globalsettings.cxx10
-rw-r--r--framework/source/uiconfiguration/imagemanager.cxx4
-rw-r--r--framework/source/uiconfiguration/imagemanagerimpl.cxx44
-rw-r--r--framework/source/uiconfiguration/moduleimagemanager.cxx1
-rw-r--r--framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx44
-rw-r--r--framework/source/uiconfiguration/uiconfigurationmanager.cxx38
6 files changed, 70 insertions, 71 deletions
diff --git a/framework/source/uiconfiguration/globalsettings.cxx b/framework/source/uiconfiguration/globalsettings.cxx
index 4b52cbba2fa6..437234c983f2 100644
--- a/framework/source/uiconfiguration/globalsettings.cxx
+++ b/framework/source/uiconfiguration/globalsettings.cxx
@@ -18,7 +18,7 @@
*/
#include "uiconfiguration/globalsettings.hxx"
-#include <threadhelp/resetableguard.hxx>
+#include <threadhelp/guard.hxx>
#include "services.h"
#include <com/sun/star/beans/PropertyValue.hpp>
@@ -119,7 +119,7 @@ void SAL_CALL GlobalSettings_Access::dispose()
throw ( css::uno::RuntimeException, std::exception )
{
// SAFE
- ResetableGuard aLock( m_aLock );
+ Guard aLock( m_aLock );
m_xConfigAccess.clear();
m_bDisposed = sal_True;
@@ -140,14 +140,14 @@ void SAL_CALL GlobalSettings_Access::disposing( const css::lang::EventObject& )
throw (css::uno::RuntimeException, std::exception)
{
// SAFE
- ResetableGuard aLock( m_aLock );
+ Guard aLock( m_aLock );
m_xConfigAccess.clear();
}
// settings access
sal_Bool GlobalSettings_Access::HasStatesInfo( GlobalSettings::UIElementType eElementType )
{
- ResetableGuard aLock( m_aLock );
+ Guard aLock( m_aLock );
if ( eElementType == GlobalSettings::UIELEMENT_TYPE_DOCKWINDOW )
return sal_False;
else if ( eElementType == GlobalSettings::UIELEMENT_TYPE_STATUSBAR )
@@ -185,7 +185,7 @@ sal_Bool GlobalSettings_Access::HasStatesInfo( GlobalSettings::UIElementType eEl
sal_Bool GlobalSettings_Access::GetStateInfo( GlobalSettings::UIElementType eElementType, GlobalSettings::StateInfo eStateInfo, ::com::sun::star::uno::Any& aValue )
{
- ResetableGuard aLock( m_aLock );
+ Guard aLock( m_aLock );
if ( eElementType == GlobalSettings::UIELEMENT_TYPE_DOCKWINDOW )
return sal_False;
else if ( eElementType == GlobalSettings::UIELEMENT_TYPE_STATUSBAR )
diff --git a/framework/source/uiconfiguration/imagemanager.cxx b/framework/source/uiconfiguration/imagemanager.cxx
index b42a0b5319f1..5fc2d3020a29 100644
--- a/framework/source/uiconfiguration/imagemanager.cxx
+++ b/framework/source/uiconfiguration/imagemanager.cxx
@@ -19,7 +19,7 @@
#include <uiconfiguration/imagemanager.hxx>
-#include <threadhelp/resetableguard.hxx>
+#include <threadhelp/guard.hxx>
#include <xml/imagesconfiguration.hxx>
#include <uiconfiguration/graphicnameaccess.hxx>
#include "imagemanagerimpl.hxx"
@@ -91,7 +91,7 @@ void SAL_CALL ImageManager::removeEventListener( const uno::Reference< XEventLis
void ImageManager::setStorage( const uno::Reference< XStorage >& Storage )
throw (::com::sun::star::uno::RuntimeException)
{
- ResetableGuard aLock( m_pImpl->m_aLock );
+ Guard aLock( m_pImpl->m_aLock );
m_pImpl->m_xUserConfigStorage = Storage;
m_pImpl->implts_initialize();
diff --git a/framework/source/uiconfiguration/imagemanagerimpl.cxx b/framework/source/uiconfiguration/imagemanagerimpl.cxx
index 076c6291c014..5c6d2a612c79 100644
--- a/framework/source/uiconfiguration/imagemanagerimpl.cxx
+++ b/framework/source/uiconfiguration/imagemanagerimpl.cxx
@@ -19,7 +19,7 @@
#include <imagemanagerimpl.hxx>
-#include <threadhelp/resetableguard.hxx>
+#include <threadhelp/guard.hxx>
#include <xml/imagesconfiguration.hxx>
#include <uiconfiguration/graphicnameaccess.hxx>
#include <services.h>
@@ -421,7 +421,7 @@ static sal_Int16 implts_convertImageTypeToIndex( sal_Int16 nImageType )
ImageList* ImageManagerImpl::implts_getUserImageList( ImageType nImageType )
{
- ResetableGuard aGuard( m_aLock );
+ Guard aGuard( m_aLock );
if ( !m_pUserImageList[nImageType] )
implts_loadUserImages( nImageType, m_xUserImageStorage, m_xUserBitmapsStorage );
@@ -468,7 +468,7 @@ sal_Bool ImageManagerImpl::implts_loadUserImages(
const uno::Reference< XStorage >& xUserImageStorage,
const uno::Reference< XStorage >& xUserBitmapsStorage )
{
- ResetableGuard aGuard( m_aLock );
+ Guard aGuard( m_aLock );
if ( xUserImageStorage.is() && xUserBitmapsStorage.is() )
{
@@ -548,7 +548,7 @@ sal_Bool ImageManagerImpl::implts_storeUserImages(
const uno::Reference< XStorage >& xUserImageStorage,
const uno::Reference< XStorage >& xUserBitmapsStorage )
{
- ResetableGuard aGuard( m_aLock );
+ Guard aGuard( m_aLock );
if ( m_bModified )
{
@@ -650,7 +650,7 @@ sal_Bool ImageManagerImpl::implts_storeUserImages(
const rtl::Reference< GlobalImageList >& ImageManagerImpl::implts_getGlobalImageList()
{
- ResetableGuard aGuard( m_aLock );
+ Guard aGuard( m_aLock );
if ( !m_pGlobalImageList.is() )
m_pGlobalImageList = getGlobalImageList( m_xContext );
@@ -659,7 +659,7 @@ const rtl::Reference< GlobalImageList >& ImageManagerImpl::implts_getGlobalImage
CmdImageList* ImageManagerImpl::implts_getDefaultImageList()
{
- ResetableGuard aGuard( m_aLock );
+ Guard aGuard( m_aLock );
if ( !m_pDefaultImageList )
m_pDefaultImageList = new CmdImageList( m_xContext, m_aModuleIdentifier );
@@ -701,7 +701,7 @@ void ImageManagerImpl::dispose()
m_aListenerContainer.disposeAndClear( aEvent );
{
- ResetableGuard aGuard( m_aLock );
+ Guard aGuard( m_aLock );
m_xUserConfigStorage.clear();
m_xUserImageStorage.clear();
m_xUserRootCommit.clear();
@@ -723,7 +723,7 @@ void ImageManagerImpl::dispose()
void ImageManagerImpl::addEventListener( const uno::Reference< XEventListener >& xListener ) throw (::com::sun::star::uno::RuntimeException)
{
{
- ResetableGuard aGuard( m_aLock );
+ Guard aGuard( m_aLock );
/* SAFE AREA ----------------------------------------------------------------------------------------------- */
if ( m_bDisposed )
@@ -742,7 +742,7 @@ void ImageManagerImpl::removeEventListener( const uno::Reference< XEventListener
// XInitialization
void ImageManagerImpl::initialize( const Sequence< Any >& aArguments )
{
- ResetableGuard aLock( m_aLock );
+ Guard aLock( m_aLock );
if ( !m_bInitialized )
{
@@ -787,7 +787,7 @@ void ImageManagerImpl::initialize( const Sequence< Any >& aArguments )
void ImageManagerImpl::reset()
throw (::com::sun::star::uno::RuntimeException)
{
- ResetableGuard aLock( m_aLock );
+ Guard aLock( m_aLock );
/* SAFE AREA ----------------------------------------------------------------------------------------------- */
if ( m_bDisposed )
@@ -817,7 +817,7 @@ throw (::com::sun::star::uno::RuntimeException)
Sequence< OUString > ImageManagerImpl::getAllImageNames( ::sal_Int16 nImageType )
throw (::com::sun::star::uno::RuntimeException)
{
- ResetableGuard aLock( m_aLock );
+ Guard aLock( m_aLock );
/* SAFE AREA ----------------------------------------------------------------------------------------------- */
if ( m_bDisposed )
@@ -862,7 +862,7 @@ throw (::com::sun::star::uno::RuntimeException)
::sal_Bool ImageManagerImpl::hasImage( ::sal_Int16 nImageType, const OUString& aCommandURL )
throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException)
{
- ResetableGuard aLock( m_aLock );
+ Guard aLock( m_aLock );
/* SAFE AREA ----------------------------------------------------------------------------------------------- */
if ( m_bDisposed )
@@ -895,7 +895,7 @@ Sequence< uno::Reference< XGraphic > > ImageManagerImpl::getImages(
const Sequence< OUString >& aCommandURLSequence )
throw ( ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException )
{
- ResetableGuard aLock( m_aLock );
+ Guard aLock( m_aLock );
/* SAFE AREA ----------------------------------------------------------------------------------------------- */
if ( m_bDisposed )
@@ -950,7 +950,7 @@ throw ( ::com::sun::star::lang::IllegalArgumentException,
CmdToXGraphicNameAccess* pReplacedImages( 0 );
{
- ResetableGuard aLock( m_aLock );
+ Guard aLock( m_aLock );
/* SAFE AREA ----------------------------------------------------------------------------------------------- */
if ( m_bDisposed )
@@ -1033,7 +1033,7 @@ throw ( ::com::sun::star::lang::IllegalArgumentException,
CmdToXGraphicNameAccess* pReplacedImages( 0 );
{
- ResetableGuard aLock( m_aLock );
+ Guard aLock( m_aLock );
/* SAFE AREA ----------------------------------------------------------------------------------------------- */
if ( m_bDisposed )
@@ -1143,7 +1143,7 @@ void ImageManagerImpl::reload()
throw ( ::com::sun::star::uno::Exception,
::com::sun::star::uno::RuntimeException )
{
- ResetableGuard aGuard( m_aLock );
+ Guard aGuard( m_aLock );
if ( m_bDisposed )
throw DisposedException();
@@ -1295,7 +1295,7 @@ void ImageManagerImpl::store()
::com::sun::star::uno::RuntimeException,
std::exception)
{
- ResetableGuard aGuard( m_aLock );
+ Guard aGuard( m_aLock );
if ( m_bDisposed )
throw DisposedException();
@@ -1330,7 +1330,7 @@ void ImageManagerImpl::storeToStorage( const uno::Reference< XStorage >& Storage
::com::sun::star::uno::RuntimeException,
std::exception)
{
- ResetableGuard aGuard( m_aLock );
+ Guard aGuard( m_aLock );
if ( m_bDisposed )
throw DisposedException();
@@ -1361,13 +1361,13 @@ void ImageManagerImpl::storeToStorage( const uno::Reference< XStorage >& Storage
sal_Bool ImageManagerImpl::isModified()
throw (::com::sun::star::uno::RuntimeException)
{
- ResetableGuard aGuard( m_aLock );
+ Guard aGuard( m_aLock );
return m_bModified;
}
sal_Bool ImageManagerImpl::isReadOnly() throw (::com::sun::star::uno::RuntimeException)
{
- ResetableGuard aGuard( m_aLock );
+ Guard aGuard( m_aLock );
return m_bReadOnly;
}
// XUIConfiguration
@@ -1375,7 +1375,7 @@ void ImageManagerImpl::addConfigurationListener( const uno::Reference< ::com::su
throw (::com::sun::star::uno::RuntimeException)
{
{
- ResetableGuard aGuard( m_aLock );
+ Guard aGuard( m_aLock );
/* SAFE AREA ----------------------------------------------------------------------------------------------- */
if ( m_bDisposed )
@@ -1426,7 +1426,7 @@ void ImageManagerImpl::implts_notifyContainerListener( const ConfigurationEvent&
}
void ImageManagerImpl::clear()
{
- ResetableGuard aGuard( m_aLock );
+ Guard aGuard( m_aLock );
for ( sal_Int32 n = 0; n < ImageType_COUNT; n++ )
{
diff --git a/framework/source/uiconfiguration/moduleimagemanager.cxx b/framework/source/uiconfiguration/moduleimagemanager.cxx
index 8405d23b5fc2..1387d06eee6b 100644
--- a/framework/source/uiconfiguration/moduleimagemanager.cxx
+++ b/framework/source/uiconfiguration/moduleimagemanager.cxx
@@ -19,7 +19,6 @@
#include <uiconfiguration/moduleimagemanager.hxx>
-#include <threadhelp/resetableguard.hxx>
#include <xml/imagesconfiguration.hxx>
#include <uiconfiguration/graphicnameaccess.hxx>
#include <services.h>
diff --git a/framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx b/framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx
index 02c15be672cb..a724e1d0f668 100644
--- a/framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx
+++ b/framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx
@@ -20,7 +20,7 @@
#include <accelerators/presethandler.hxx>
#include <uiconfiguration/moduleimagemanager.hxx>
#include <threadhelp/threadhelpbase.hxx>
-#include <threadhelp/resetableguard.hxx>
+#include <threadhelp/guard.hxx>
#include <stdtypes.h>
#include <uielement/constitemcontainer.hxx>
#include <uielement/rootitemcontainer.hxx>
@@ -869,7 +869,7 @@ ModuleUIConfigurationManager::ModuleUIConfigurationManager(
m_aUIElements[LAYER_DEFAULT].resize( ::com::sun::star::ui::UIElementType::COUNT );
m_aUIElements[LAYER_USERDEFINED].resize( ::com::sun::star::ui::UIElementType::COUNT );
- ResetableGuard aLock( m_aLock );
+ Guard aLock( m_aLock );
if( aArguments.getLength() == 2 && (aArguments[0] >>= m_aModuleShortName) && (aArguments[1] >>= m_aModuleIdentifier))
{
@@ -939,7 +939,7 @@ void SAL_CALL ModuleUIConfigurationManager::dispose() throw (::com::sun::star::u
m_aListenerContainer.disposeAndClear( aEvent );
/* SAFE AREA ----------------------------------------------------------------------------------------------- */
- ResetableGuard aGuard( m_aLock );
+ Guard aGuard( m_aLock );
Reference< XComponent > xModuleImageManager( m_xModuleImageManager );
m_xModuleImageManager.clear();
Reference< XComponent > xCompMAM( m_xModuleAcceleratorManager, UNO_QUERY );
@@ -970,7 +970,7 @@ void SAL_CALL ModuleUIConfigurationManager::dispose() throw (::com::sun::star::u
void SAL_CALL ModuleUIConfigurationManager::addEventListener( const Reference< XEventListener >& xListener ) throw (::com::sun::star::uno::RuntimeException, std::exception)
{
{
- ResetableGuard aGuard( m_aLock );
+ Guard aGuard( m_aLock );
/* SAFE AREA ----------------------------------------------------------------------------------------------- */
if ( m_bDisposed )
@@ -990,7 +990,7 @@ void SAL_CALL ModuleUIConfigurationManager::removeEventListener( const Reference
void SAL_CALL ModuleUIConfigurationManager::addConfigurationListener( const Reference< ::com::sun::star::ui::XUIConfigurationListener >& xListener ) throw (::com::sun::star::uno::RuntimeException, std::exception)
{
{
- ResetableGuard aGuard( m_aLock );
+ Guard aGuard( m_aLock );
/* SAFE AREA ----------------------------------------------------------------------------------------------- */
if ( m_bDisposed )
@@ -1010,7 +1010,7 @@ void SAL_CALL ModuleUIConfigurationManager::removeConfigurationListener( const R
// XUIConfigurationManager
void SAL_CALL ModuleUIConfigurationManager::reset() throw (::com::sun::star::uno::RuntimeException, std::exception)
{
- ResetableGuard aGuard( m_aLock );
+ Guard aGuard( m_aLock );
/* SAFE AREA ----------------------------------------------------------------------------------------------- */
if ( m_bDisposed )
@@ -1101,7 +1101,7 @@ throw ( IllegalArgumentException, RuntimeException, std::exception )
if (( ElementType < 0 ) || ( ElementType >= ::com::sun::star::ui::UIElementType::COUNT ))
throw IllegalArgumentException();
- ResetableGuard aGuard( m_aLock );
+ Guard aGuard( m_aLock );
if ( m_bDisposed )
throw DisposedException();
@@ -1137,7 +1137,7 @@ throw ( IllegalArgumentException, RuntimeException, std::exception )
Reference< XIndexContainer > SAL_CALL ModuleUIConfigurationManager::createSettings() throw (::com::sun::star::uno::RuntimeException, std::exception)
{
- ResetableGuard aGuard( m_aLock );
+ Guard aGuard( m_aLock );
if ( m_bDisposed )
throw DisposedException();
@@ -1156,7 +1156,7 @@ throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::
throw IllegalArgumentException();
else
{
- ResetableGuard aGuard( m_aLock );
+ Guard aGuard( m_aLock );
if ( m_bDisposed )
throw DisposedException();
@@ -1179,7 +1179,7 @@ throw (::com::sun::star::container::NoSuchElementException, ::com::sun::star::la
throw IllegalArgumentException();
else
{
- ResetableGuard aGuard( m_aLock );
+ Guard aGuard( m_aLock );
if ( m_bDisposed )
throw DisposedException();
@@ -1210,7 +1210,7 @@ throw (::com::sun::star::container::NoSuchElementException, ::com::sun::star::la
throw IllegalAccessException();
else
{
- ResetableGuard aGuard( m_aLock );
+ Guard aGuard( m_aLock );
if ( m_bDisposed )
throw DisposedException();
@@ -1317,7 +1317,7 @@ throw ( NoSuchElementException, IllegalArgumentException, IllegalAccessException
throw IllegalAccessException();
else
{
- ResetableGuard aGuard( m_aLock );
+ Guard aGuard( m_aLock );
if ( m_bDisposed )
throw DisposedException();
@@ -1395,7 +1395,7 @@ throw ( ElementExistException, IllegalArgumentException, IllegalAccessException,
throw IllegalAccessException();
else
{
- ResetableGuard aGuard( m_aLock );
+ Guard aGuard( m_aLock );
if ( m_bDisposed )
throw DisposedException();
@@ -1447,7 +1447,7 @@ throw ( ElementExistException, IllegalArgumentException, IllegalAccessException,
Reference< XInterface > SAL_CALL ModuleUIConfigurationManager::getImageManager() throw (::com::sun::star::uno::RuntimeException, std::exception)
{
- ResetableGuard aGuard( m_aLock );
+ Guard aGuard( m_aLock );
if ( m_bDisposed )
throw DisposedException();
@@ -1478,7 +1478,7 @@ Reference< XInterface > SAL_CALL ModuleUIConfigurationManager::getImageManager()
Reference< ui::XAcceleratorConfiguration > SAL_CALL ModuleUIConfigurationManager::getShortCutManager() throw (::com::sun::star::uno::RuntimeException, std::exception)
{
- ResetableGuard aGuard( m_aLock );
+ Guard aGuard( m_aLock );
if ( m_bDisposed )
throw DisposedException();
@@ -1513,7 +1513,7 @@ throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::
throw IllegalArgumentException();
else
{
- ResetableGuard aGuard( m_aLock );
+ Guard aGuard( m_aLock );
if ( m_bDisposed )
throw DisposedException();
@@ -1536,7 +1536,7 @@ throw (::com::sun::star::container::NoSuchElementException, ::com::sun::star::la
throw IllegalArgumentException();
else
{
- ResetableGuard aGuard( m_aLock );
+ Guard aGuard( m_aLock );
if ( m_bDisposed )
throw DisposedException();
@@ -1562,7 +1562,7 @@ throw (::com::sun::star::container::NoSuchElementException, ::com::sun::star::la
// XUIConfigurationPersistence
void SAL_CALL ModuleUIConfigurationManager::reload() throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException, std::exception)
{
- ResetableGuard aGuard( m_aLock );
+ Guard aGuard( m_aLock );
if ( m_bDisposed )
throw DisposedException();
@@ -1603,7 +1603,7 @@ void SAL_CALL ModuleUIConfigurationManager::reload() throw (::com::sun::star::un
void SAL_CALL ModuleUIConfigurationManager::store() throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException, std::exception)
{
- ResetableGuard aGuard( m_aLock );
+ Guard aGuard( m_aLock );
if ( m_bDisposed )
throw DisposedException();
@@ -1636,7 +1636,7 @@ void SAL_CALL ModuleUIConfigurationManager::store() throw (::com::sun::star::uno
void SAL_CALL ModuleUIConfigurationManager::storeToStorage( const Reference< XStorage >& Storage ) throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException, std::exception)
{
- ResetableGuard aGuard( m_aLock );
+ Guard aGuard( m_aLock );
if ( m_bDisposed )
throw DisposedException();
@@ -1669,14 +1669,14 @@ void SAL_CALL ModuleUIConfigurationManager::storeToStorage( const Reference< XSt
sal_Bool SAL_CALL ModuleUIConfigurationManager::isModified() throw (::com::sun::star::uno::RuntimeException, std::exception)
{
- ResetableGuard aGuard( m_aLock );
+ Guard aGuard( m_aLock );
return m_bModified;
}
sal_Bool SAL_CALL ModuleUIConfigurationManager::isReadOnly() throw (::com::sun::star::uno::RuntimeException, std::exception)
{
- ResetableGuard aGuard( m_aLock );
+ Guard aGuard( m_aLock );
return m_bReadOnly;
}
diff --git a/framework/source/uiconfiguration/uiconfigurationmanager.cxx b/framework/source/uiconfiguration/uiconfigurationmanager.cxx
index 33a0845e4a0a..f531615d711d 100644
--- a/framework/source/uiconfiguration/uiconfigurationmanager.cxx
+++ b/framework/source/uiconfiguration/uiconfigurationmanager.cxx
@@ -17,7 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#include <threadhelp/resetableguard.hxx>
+#include <threadhelp/guard.hxx>
#include <threadhelp/threadhelpbase.hxx>
#include <uiconfiguration/imagemanager.hxx>
#include <uielement/rootitemcontainer.hxx>
@@ -717,7 +717,7 @@ void SAL_CALL UIConfigurationManager::dispose() throw (::com::sun::star::uno::Ru
m_aListenerContainer.disposeAndClear( aEvent );
{
- ResetableGuard aGuard( m_aLock );
+ Guard aGuard( m_aLock );
try
{
if ( m_xImageManager.is() )
@@ -739,7 +739,7 @@ void SAL_CALL UIConfigurationManager::dispose() throw (::com::sun::star::uno::Ru
void SAL_CALL UIConfigurationManager::addEventListener( const Reference< XEventListener >& xListener ) throw (::com::sun::star::uno::RuntimeException, std::exception)
{
{
- ResetableGuard aGuard( m_aLock );
+ Guard aGuard( m_aLock );
/* SAFE AREA ----------------------------------------------------------------------------------------------- */
if ( m_bDisposed )
@@ -759,7 +759,7 @@ void SAL_CALL UIConfigurationManager::removeEventListener( const Reference< XEve
void SAL_CALL UIConfigurationManager::addConfigurationListener( const Reference< ::com::sun::star::ui::XUIConfigurationListener >& xListener ) throw (::com::sun::star::uno::RuntimeException, std::exception)
{
{
- ResetableGuard aGuard( m_aLock );
+ Guard aGuard( m_aLock );
/* SAFE AREA ----------------------------------------------------------------------------------------------- */
if ( m_bDisposed )
@@ -778,7 +778,7 @@ void SAL_CALL UIConfigurationManager::removeConfigurationListener( const Referen
void SAL_CALL UIConfigurationManager::reset() throw (::com::sun::star::uno::RuntimeException, std::exception)
{
- ResetableGuard aGuard( m_aLock );
+ Guard aGuard( m_aLock );
/* SAFE AREA ----------------------------------------------------------------------------------------------- */
if ( m_bDisposed )
@@ -867,7 +867,7 @@ throw ( IllegalArgumentException, RuntimeException, std::exception )
if (( ElementType < 0 ) || ( ElementType >= ::com::sun::star::ui::UIElementType::COUNT ))
throw IllegalArgumentException();
- ResetableGuard aGuard( m_aLock );
+ Guard aGuard( m_aLock );
if ( m_bDisposed )
throw DisposedException();
@@ -903,7 +903,7 @@ throw ( IllegalArgumentException, RuntimeException, std::exception )
Reference< XIndexContainer > SAL_CALL UIConfigurationManager::createSettings() throw (::com::sun::star::uno::RuntimeException, std::exception)
{
- ResetableGuard aGuard( m_aLock );
+ Guard aGuard( m_aLock );
if ( m_bDisposed )
throw DisposedException();
@@ -940,7 +940,7 @@ throw (::com::sun::star::container::NoSuchElementException, ::com::sun::star::la
throw IllegalArgumentException();
else
{
- ResetableGuard aGuard( m_aLock );
+ Guard aGuard( m_aLock );
if ( m_bDisposed )
throw DisposedException();
@@ -971,7 +971,7 @@ throw (::com::sun::star::container::NoSuchElementException, ::com::sun::star::la
throw IllegalAccessException();
else
{
- ResetableGuard aGuard( m_aLock );
+ Guard aGuard( m_aLock );
if ( m_bDisposed )
throw DisposedException();
@@ -1029,7 +1029,7 @@ throw ( NoSuchElementException, IllegalArgumentException, IllegalAccessException
throw IllegalAccessException();
else
{
- ResetableGuard aGuard( m_aLock );
+ Guard aGuard( m_aLock );
if ( m_bDisposed )
throw DisposedException();
@@ -1086,7 +1086,7 @@ throw ( ElementExistException, IllegalArgumentException, IllegalAccessException,
throw IllegalAccessException();
else
{
- ResetableGuard aGuard( m_aLock );
+ Guard aGuard( m_aLock );
if ( m_bDisposed )
throw DisposedException();
@@ -1176,7 +1176,7 @@ Reference< XInterface > SAL_CALL UIConfigurationManager::getImageManager() throw
Reference< XAcceleratorConfiguration > SAL_CALL UIConfigurationManager::getShortCutManager() throw (::com::sun::star::uno::RuntimeException, std::exception)
{
// SAFE ->
- ResetableGuard aGuard( m_aLock );
+ Guard aGuard( m_aLock );
if (!m_xAccConfig.is()) try
{
@@ -1200,7 +1200,7 @@ Reference< XInterface > SAL_CALL UIConfigurationManager::getEventsManager() thro
// XUIConfigurationStorage
void SAL_CALL UIConfigurationManager::setStorage( const Reference< XStorage >& Storage ) throw (::com::sun::star::uno::RuntimeException, std::exception)
{
- ResetableGuard aGuard( m_aLock );
+ Guard aGuard( m_aLock );
if ( m_bDisposed )
throw DisposedException();
@@ -1260,7 +1260,7 @@ void SAL_CALL UIConfigurationManager::setStorage( const Reference< XStorage >& S
sal_Bool SAL_CALL UIConfigurationManager::hasStorage() throw (::com::sun::star::uno::RuntimeException, std::exception)
{
- ResetableGuard aGuard( m_aLock );
+ Guard aGuard( m_aLock );
if ( m_bDisposed )
throw DisposedException();
@@ -1271,7 +1271,7 @@ sal_Bool SAL_CALL UIConfigurationManager::hasStorage() throw (::com::sun::star::
// XUIConfigurationPersistence
void SAL_CALL UIConfigurationManager::reload() throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException, std::exception)
{
- ResetableGuard aGuard( m_aLock );
+ Guard aGuard( m_aLock );
if ( m_bDisposed )
throw DisposedException();
@@ -1310,7 +1310,7 @@ void SAL_CALL UIConfigurationManager::reload() throw (::com::sun::star::uno::Exc
void SAL_CALL UIConfigurationManager::store() throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException, std::exception)
{
- ResetableGuard aGuard( m_aLock );
+ Guard aGuard( m_aLock );
if ( m_bDisposed )
throw DisposedException();
@@ -1343,7 +1343,7 @@ void SAL_CALL UIConfigurationManager::store() throw (::com::sun::star::uno::Exce
void SAL_CALL UIConfigurationManager::storeToStorage( const Reference< XStorage >& Storage ) throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException, std::exception)
{
- ResetableGuard aGuard( m_aLock );
+ Guard aGuard( m_aLock );
if ( m_bDisposed )
throw DisposedException();
@@ -1376,14 +1376,14 @@ void SAL_CALL UIConfigurationManager::storeToStorage( const Reference< XStorage
sal_Bool SAL_CALL UIConfigurationManager::isModified() throw (::com::sun::star::uno::RuntimeException, std::exception)
{
- ResetableGuard aGuard( m_aLock );
+ Guard aGuard( m_aLock );
return m_bModified;
}
sal_Bool SAL_CALL UIConfigurationManager::isReadOnly() throw (::com::sun::star::uno::RuntimeException, std::exception)
{
- ResetableGuard aGuard( m_aLock );
+ Guard aGuard( m_aLock );
return m_bReadOnly;
}