diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2010-10-13 02:47:36 -0500 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2010-10-25 19:55:33 -0500 |
commit | f4f4a8ed4f56035cc9f536d00f62a552af974cf0 (patch) | |
tree | e247bfb2431e1413704de1286952e8e5d6eb1bfd /fpicker/source | |
parent | 3a81649a55a49705d907a6ee72c92e26d2d4f2ee (diff) |
use SolarMutexGuard to guard the SolarMutex
Diffstat (limited to 'fpicker/source')
-rw-r--r-- | fpicker/source/aqua/ControlHelper.cxx | 12 | ||||
-rw-r--r-- | fpicker/source/aqua/FilterHelper.cxx | 6 | ||||
-rw-r--r-- | fpicker/source/aqua/SalAquaFilePicker.cxx | 40 | ||||
-rw-r--r-- | fpicker/source/aqua/SalAquaFolderPicker.cxx | 12 | ||||
-rw-r--r-- | fpicker/source/aqua/SalAquaPicker.cxx | 12 | ||||
-rw-r--r-- | fpicker/source/aqua/resourceprovider.cxx | 2 | ||||
-rw-r--r-- | fpicker/source/office/OfficeFilePicker.cxx | 46 | ||||
-rw-r--r-- | fpicker/source/office/commonpicker.cxx | 22 | ||||
-rw-r--r-- | fpicker/source/unx/kde4/KDE4FilePicker.cxx | 4 | ||||
-rw-r--r-- | fpicker/source/win32/filepicker/asyncrequests.cxx | 2 | ||||
-rw-r--r-- | fpicker/source/win32/misc/resourceprovider.cxx | 2 |
11 files changed, 80 insertions, 80 deletions
diff --git a/fpicker/source/aqua/ControlHelper.cxx b/fpicker/source/aqua/ControlHelper.cxx index 27600be2326a..20add6db18e9 100644 --- a/fpicker/source/aqua/ControlHelper.cxx +++ b/fpicker/source/aqua/ControlHelper.cxx @@ -169,7 +169,7 @@ void ControlHelper::enableControl( const sal_Int16 nControlId, const sal_Bool bE { DBG_PRINT_ENTRY(CLASS_NAME, __func__, "controlId", nControlId, "enable", bEnable); - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; if (nControlId == ExtendedFilePickerElementIds::CHECKBOX_PREVIEW) { OSL_TRACE(" preview checkbox cannot be changed"); @@ -197,7 +197,7 @@ OUString ControlHelper::getLabel( sal_Int16 nControlId ) { DBG_PRINT_ENTRY(CLASS_NAME, __func__, "controlId", nControlId); - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; NSControl* pControl = getControl( nControlId ); @@ -226,7 +226,7 @@ void ControlHelper::setLabel( sal_Int16 nControlId, const NSString* aLabel ) { DBG_PRINT_ENTRY(CLASS_NAME, __func__, "controlId", nControlId, "label", aLabel); - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; NSAutoreleasePool *pool = [NSAutoreleasePool new]; @@ -258,7 +258,7 @@ void ControlHelper::setValue( sal_Int16 nControlId, sal_Int16 nControlAction, co { DBG_PRINT_ENTRY(CLASS_NAME, __func__, "controlId", nControlId, "controlAction", nControlAction); - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; if (nControlId == ExtendedFilePickerElementIds::CHECKBOX_PREVIEW) { OSL_TRACE(" value for preview is unchangeable"); @@ -291,7 +291,7 @@ uno::Any ControlHelper::getValue( sal_Int16 nControlId, sal_Int16 nControlAction { DBG_PRINT_ENTRY(CLASS_NAME, __func__, "controlId", nControlId, "controlAction", nControlAction); - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; uno::Any aRetval; NSControl* pControl = getControl( nControlId ); @@ -805,7 +805,7 @@ void ControlHelper::layoutControls() { DBG_PRINT_ENTRY(CLASS_NAME, __func__); - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; if (nil == m_pUserPane) { OSL_TRACE("no user pane to layout"); diff --git a/fpicker/source/aqua/FilterHelper.cxx b/fpicker/source/aqua/FilterHelper.cxx index 726ddf6088ca..0cd614b950ec 100644 --- a/fpicker/source/aqua/FilterHelper.cxx +++ b/fpicker/source/aqua/FilterHelper.cxx @@ -270,7 +270,7 @@ void FilterHelper::SetCurFilter( const rtl::OUString& rFilter ) { DBG_PRINT_ENTRY(CLASS_NAME, __func__, "filter", rFilter); - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; if(m_aCurrentFilter.equals(rFilter) == false) { @@ -317,7 +317,7 @@ void FilterHelper::appendFilter(const ::rtl::OUString& aTitle, const ::rtl::OUSt throw( ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException ) { DBG_PRINT_ENTRY(CLASS_NAME, __func__, "title", aTitle, "filter", aFilterString); - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; if( FilterNameExists( aTitle ) ) { throw com::sun::star::lang::IllegalArgumentException(); @@ -359,7 +359,7 @@ throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno:: DBG_PRINT_ENTRY(CLASS_NAME, __func__, "title", OUStringToOString(sGroupTitle, RTL_TEXTENCODING_UTF8).getStr()); - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; //add a separator if this is not the first group to be added sal_Bool bPrependSeparator = m_pFilterList != NULL; diff --git a/fpicker/source/aqua/SalAquaFilePicker.cxx b/fpicker/source/aqua/SalAquaFilePicker.cxx index 61e03b5ee532..ae63488256b1 100644 --- a/fpicker/source/aqua/SalAquaFilePicker.cxx +++ b/fpicker/source/aqua/SalAquaFilePicker.cxx @@ -143,7 +143,7 @@ void SAL_CALL SalAquaFilePicker::addFilePickerListener( const uno::Reference<XFi { DBG_PRINT_ENTRY(CLASS_NAME, __func__); - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; m_xListener = xListener; DBG_PRINT_EXIT(CLASS_NAME, __func__); @@ -154,7 +154,7 @@ void SAL_CALL SalAquaFilePicker::removeFilePickerListener( const uno::Reference< { DBG_PRINT_ENTRY(CLASS_NAME, __func__); - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; m_xListener.clear(); DBG_PRINT_EXIT(CLASS_NAME, __func__); @@ -168,7 +168,7 @@ void SAL_CALL SalAquaFilePicker::setTitle( const rtl::OUString& aTitle ) throw( { DBG_PRINT_ENTRY(CLASS_NAME, __func__, "title", aTitle); - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; implsetTitle(aTitle); DBG_PRINT_EXIT(CLASS_NAME, __func__); @@ -178,7 +178,7 @@ sal_Int16 SAL_CALL SalAquaFilePicker::execute() throw( uno::RuntimeException ) { DBG_PRINT_ENTRY(CLASS_NAME, __func__); - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; sal_Int16 retVal = 0; @@ -263,7 +263,7 @@ void SAL_CALL SalAquaFilePicker::setMultiSelectionMode( sal_Bool bMode ) throw( { DBG_PRINT_ENTRY(CLASS_NAME, __func__, "multiSelectable?", bMode); - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; if (m_nDialogType == NAVIGATIONSERVICES_OPEN) { [(NSOpenPanel*)m_pDialog setAllowsMultipleSelection:YES]; @@ -278,7 +278,7 @@ throw( uno::RuntimeException ) { DBG_PRINT_ENTRY(CLASS_NAME, __func__, "name", aName); - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; m_sSaveFileName = aName; @@ -290,7 +290,7 @@ throw( lang::IllegalArgumentException, uno::RuntimeException ) { DBG_PRINT_ENTRY(CLASS_NAME, __func__, "directory", rDirectory); - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; implsetDisplayDirectory(rDirectory); @@ -311,7 +311,7 @@ uno::Sequence<rtl::OUString> SAL_CALL SalAquaFilePicker::getFiles() throw( uno:: { DBG_PRINT_ENTRY(CLASS_NAME, __func__); - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; // OSL_TRACE("starting work"); /* @@ -372,7 +372,7 @@ throw( lang::IllegalArgumentException, uno::RuntimeException ) { DBG_PRINT_ENTRY(CLASS_NAME, __func__); - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; ensureFilterHelper(); m_pFilterHelper->appendFilter( aTitle, aFilter ); @@ -388,7 +388,7 @@ throw( lang::IllegalArgumentException, uno::RuntimeException ) OSL_TRACE( "Setting current filter to %s", OUStringToOString( aTitle, RTL_TEXTENCODING_UTF8 ).getStr() ); - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; ensureFilterHelper(); m_pFilterHelper->setCurrentFilter(aTitle); @@ -402,7 +402,7 @@ throw( lang::IllegalArgumentException, uno::RuntimeException ) rtl::OUString SAL_CALL SalAquaFilePicker::getCurrentFilter() throw( uno::RuntimeException ) { DBG_PRINT_ENTRY(CLASS_NAME, __func__); - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; ensureFilterHelper(); @@ -419,7 +419,7 @@ void SAL_CALL SalAquaFilePicker::appendFilterGroup( const rtl::OUString& sGroupT throw( lang::IllegalArgumentException, uno::RuntimeException ) { DBG_PRINT_ENTRY(CLASS_NAME, __func__); - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; ensureFilterHelper(); m_pFilterHelper->appendFilterGroup(sGroupTitle, aFilters); @@ -437,7 +437,7 @@ throw( uno::RuntimeException ) { DBG_PRINT_ENTRY(CLASS_NAME, __func__); - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; m_pControlHelper->setValue(nControlId, nControlAction, rValue); @@ -474,7 +474,7 @@ throw( uno::RuntimeException ) { DBG_PRINT_ENTRY(CLASS_NAME, __func__); - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; NSString* sLabel = [NSString stringWithOUString:aLabel]; m_pControlHelper->setLabel( nControlId, sLabel ) ; @@ -501,7 +501,7 @@ throw( uno::Exception, uno::RuntimeException ) { DBG_PRINT_ENTRY(CLASS_NAME, __func__, "arguments size", aArguments.getLength()); - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; // parameter checking uno::Any aAny; @@ -587,7 +587,7 @@ void SAL_CALL SalAquaFilePicker::cancel() throw( uno::RuntimeException ) { DBG_PRINT_ENTRY(CLASS_NAME, __func__); - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; if (m_pDialog != nil) { [m_pDialog cancel:nil]; @@ -605,7 +605,7 @@ void SAL_CALL SalAquaFilePicker::disposing( const lang::EventObject& aEvent ) th { DBG_PRINT_ENTRY(CLASS_NAME, __func__); - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; uno::Reference<XFilePickerListener> xFilePickerListener( aEvent.Source, ::com::sun::star::uno::UNO_QUERY ); @@ -723,7 +723,7 @@ case ExtendedFilePickerElementIds::LISTBOX_##elem##_LABEL: \ void SalAquaFilePicker::ensureFilterHelper() { DBG_PRINT_ENTRY(CLASS_NAME, __func__); - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; if (NULL == m_pFilterHelper) { m_pFilterHelper = new FilterHelper; @@ -762,7 +762,7 @@ void SalAquaFilePicker::updateSaveFileNameExtension() { // we need to set this here again because initial setting does //[m_pDialog setExtensionHidden:YES]; - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; if (m_pControlHelper->isAutoExtensionEnabled() == false) { OSL_TRACE("allowing other file types"); @@ -794,7 +794,7 @@ void SalAquaFilePicker::filterControlChanged() { return; } - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; updateSaveFileNameExtension(); diff --git a/fpicker/source/aqua/SalAquaFolderPicker.cxx b/fpicker/source/aqua/SalAquaFolderPicker.cxx index 0b07744b5459..17fb370603b2 100644 --- a/fpicker/source/aqua/SalAquaFolderPicker.cxx +++ b/fpicker/source/aqua/SalAquaFolderPicker.cxx @@ -107,7 +107,7 @@ void SAL_CALL SalAquaFolderPicker::setTitle( const rtl::OUString& aTitle ) throw { DBG_PRINT_ENTRY(CLASS_NAME, __func__, "title", aTitle); - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; implsetTitle(aTitle); @@ -118,7 +118,7 @@ sal_Int16 SAL_CALL SalAquaFolderPicker::execute() throw( uno::RuntimeException ) { DBG_PRINT_ENTRY(CLASS_NAME, __func__); - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; sal_Int16 retVal = 0; @@ -154,7 +154,7 @@ void SAL_CALL SalAquaFolderPicker::setDisplayDirectory( const rtl::OUString& aDi { DBG_PRINT_ENTRY(CLASS_NAME, __func__, "directory", aDirectory); - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; implsetDisplayDirectory(aDirectory); @@ -165,7 +165,7 @@ rtl::OUString SAL_CALL SalAquaFolderPicker::getDisplayDirectory() throw( uno::Ru { DBG_PRINT_ENTRY(CLASS_NAME, __func__); - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; OUString aDirectory = implgetDisplayDirectory(); @@ -178,7 +178,7 @@ rtl::OUString SAL_CALL SalAquaFolderPicker::getDirectory() throw( uno::RuntimeEx { DBG_PRINT_ENTRY(CLASS_NAME, __func__); - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; NSArray *files = nil; if (m_nDialogType == NAVIGATIONSERVICES_DIRECTORY) { @@ -269,7 +269,7 @@ void SAL_CALL SalAquaFolderPicker::cancel() throw( uno::RuntimeException ) { DBG_PRINT_ENTRY(CLASS_NAME, __func__); - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; [m_pDialog cancel:nil]; diff --git a/fpicker/source/aqua/SalAquaPicker.cxx b/fpicker/source/aqua/SalAquaPicker.cxx index 263075a6b94d..5ebd975be240 100644 --- a/fpicker/source/aqua/SalAquaPicker.cxx +++ b/fpicker/source/aqua/SalAquaPicker.cxx @@ -76,7 +76,7 @@ SalAquaPicker::~SalAquaPicker() { DBG_PRINT_ENTRY(CLASS_NAME, __func__); - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; NSAutoreleasePool *pool = [NSAutoreleasePool new]; @@ -95,7 +95,7 @@ void SAL_CALL SalAquaPicker::implInitialize() { DBG_PRINT_ENTRY(CLASS_NAME, __func__); - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; if (m_pDialog != nil) { return; @@ -159,7 +159,7 @@ int SalAquaPicker::run() { DBG_PRINT_ENTRY(CLASS_NAME, __func__); - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; NSAutoreleasePool *pool = [NSAutoreleasePool new]; @@ -219,7 +219,7 @@ int SalAquaPicker::runandwaitforresult() { DBG_PRINT_ENTRY(CLASS_NAME, __func__); - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; int status = this->run(); @@ -232,7 +232,7 @@ void SAL_CALL SalAquaPicker::implsetDisplayDirectory( const rtl::OUString& aDire { DBG_PRINT_ENTRY(CLASS_NAME, __func__, "directory", aDirectory); - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; if (aDirectory != m_sDisplayDirectory) { m_sDisplayDirectory = aDirectory; @@ -253,7 +253,7 @@ void SAL_CALL SalAquaPicker::implsetTitle( const rtl::OUString& aTitle ) throw( { DBG_PRINT_ENTRY(CLASS_NAME, __func__, "title", aTitle); - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; if (m_pDialog != nil) { [m_pDialog setTitle:[NSString stringWithOUString:aTitle]]; diff --git a/fpicker/source/aqua/resourceprovider.cxx b/fpicker/source/aqua/resourceprovider.cxx index b0b5b03ae996..d957892f629e 100644 --- a/fpicker/source/aqua/resourceprovider.cxx +++ b/fpicker/source/aqua/resourceprovider.cxx @@ -171,7 +171,7 @@ public: String aResString; OUString aResOUString; - const ::vos::OGuard aGuard( Application::GetSolarMutex() ); + const SolarMutexGuard aGuard; try { diff --git a/fpicker/source/office/OfficeFilePicker.cxx b/fpicker/source/office/OfficeFilePicker.cxx index dbca70488218..7b7259275ede 100644 --- a/fpicker/source/office/OfficeFilePicker.cxx +++ b/fpicker/source/office/OfficeFilePicker.cxx @@ -560,7 +560,7 @@ void SAL_CALL SvtFilePicker::setMultiSelectionMode( sal_Bool bMode ) throw( Runt { checkAlive(); - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; m_bMultiSelection = bMode; } @@ -568,7 +568,7 @@ void SAL_CALL SvtFilePicker::setDefaultName( const rtl::OUString& aName ) throw( { checkAlive(); - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; m_aDefaultName = aName; } @@ -577,7 +577,7 @@ void SAL_CALL SvtFilePicker::setDisplayDirectory( const rtl::OUString& aDirector { checkAlive(); - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; m_aDisplayDirectory = aDirectory; } @@ -585,7 +585,7 @@ rtl::OUString SAL_CALL SvtFilePicker::getDisplayDirectory() throw( RuntimeExcept { checkAlive(); - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; if ( getDialog() ) { rtl::OUString aPath = getDialog()->GetPath(); @@ -613,7 +613,7 @@ Sequence< rtl::OUString > SAL_CALL SvtFilePicker::getFiles() throw( RuntimeExcep { checkAlive(); - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; if ( ! getDialog() ) { Sequence< rtl::OUString > aEmpty; @@ -659,7 +659,7 @@ void SAL_CALL SvtFilePicker::setValue( sal_Int16 nElementID, { checkAlive(); - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; if ( getDialog() ) { ::svt::OControlAccess aAccess( getDialog(), getDialog()->GetView() ); @@ -703,7 +703,7 @@ Any SAL_CALL SvtFilePicker::getValue( sal_Int16 nElementID, sal_Int16 nControlAc { checkAlive(); - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; Any aAny; // execute() called? @@ -739,7 +739,7 @@ void SAL_CALL SvtFilePicker::setLabel( sal_Int16 nLabelID, const rtl::OUString& { checkAlive(); - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; if ( getDialog() ) { ::svt::OControlAccess aAccess( getDialog(), getDialog()->GetView() ); @@ -779,7 +779,7 @@ rtl::OUString SAL_CALL SvtFilePicker::getLabel( sal_Int16 nLabelID ) { checkAlive(); - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; rtl::OUString aLabel; if ( getDialog() ) @@ -812,7 +812,7 @@ void SAL_CALL SvtFilePicker::enableControl( sal_Int16 nElementID, sal_Bool bEnab { checkAlive(); - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; if ( getDialog() ) { ::svt::OControlAccess aAccess( getDialog(), getDialog()->GetView() ); @@ -854,7 +854,7 @@ void SAL_CALL SvtFilePicker::addFilePickerListener( const Reference< XFilePicker { checkAlive(); - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; m_xListener = xListener; } @@ -863,7 +863,7 @@ void SAL_CALL SvtFilePicker::removeFilePickerListener( const Reference< XFilePic { checkAlive(); - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; m_xListener.clear(); } @@ -876,7 +876,7 @@ Sequence< sal_Int16 > SAL_CALL SvtFilePicker::getSupportedImageFormats() { checkAlive(); - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; Sequence< sal_Int16 > aFormats( 1 ); aFormats[0] = FilePreviewImageFormats::BITMAP; @@ -889,7 +889,7 @@ sal_Int32 SAL_CALL SvtFilePicker::getTargetColorDepth() throw ( RuntimeException { checkAlive(); - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; sal_Int32 nDepth = 0; if ( getDialog() ) @@ -903,7 +903,7 @@ sal_Int32 SAL_CALL SvtFilePicker::getAvailableWidth() throw ( RuntimeException ) { checkAlive(); - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; sal_Int32 nWidth = 0; if ( getDialog() ) @@ -917,7 +917,7 @@ sal_Int32 SAL_CALL SvtFilePicker::getAvailableHeight() throw ( RuntimeException { checkAlive(); - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; sal_Int32 nHeigth = 0; if ( getDialog() ) @@ -932,7 +932,7 @@ void SAL_CALL SvtFilePicker::setImage( sal_Int16 aImageFormat, const Any& rImage { checkAlive(); - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; if ( getDialog() ) getDialog()->setImage( aImageFormat, rImage ); } @@ -943,7 +943,7 @@ sal_Bool SAL_CALL SvtFilePicker::setShowState( sal_Bool bShowState ) { checkAlive(); - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; sal_Bool bRet = sal_False; if ( getDialog() ) @@ -957,7 +957,7 @@ sal_Bool SAL_CALL SvtFilePicker::getShowState() throw ( RuntimeException ) { checkAlive(); - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; sal_Bool bRet = sal_False; if ( getDialog() ) @@ -976,7 +976,7 @@ void SAL_CALL SvtFilePicker::appendFilterGroup( const ::rtl::OUString& sGroupTit { checkAlive(); - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; // check the names if ( FilterNameExists( aFilters ) ) @@ -1004,7 +1004,7 @@ void SAL_CALL SvtFilePicker::appendFilter( const rtl::OUString& aTitle, { checkAlive(); - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; // check the name if ( FilterNameExists( aTitle ) ) // TODO: a more precise exception message @@ -1023,7 +1023,7 @@ void SAL_CALL SvtFilePicker::setCurrentFilter( const rtl::OUString& aTitle ) { checkAlive(); - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; if ( ! FilterNameExists( aTitle ) ) throw IllegalArgumentException(); @@ -1039,7 +1039,7 @@ rtl::OUString SAL_CALL SvtFilePicker::getCurrentFilter() { checkAlive(); - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; rtl::OUString aFilter = getDialog() ? rtl::OUString( getDialog()->GetCurFilter() ) : rtl::OUString( m_aCurrentFilter ); return aFilter; diff --git a/fpicker/source/office/commonpicker.cxx b/fpicker/source/office/commonpicker.cxx index 77a9653495bf..43d97bcd12d5 100644 --- a/fpicker/source/office/commonpicker.cxx +++ b/fpicker/source/office/commonpicker.cxx @@ -121,7 +121,7 @@ namespace svt //--------------------------------------------------------------------- void SAL_CALL OCommonPicker::disposing() { - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; stopWindowListening(); @@ -152,7 +152,7 @@ namespace svt //--------------------------------------------------------------------- void SAL_CALL OCommonPicker::disposing( const EventObject& _rSource ) throw (RuntimeException) { - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; sal_Bool bDialogDying = _rSource.Source == m_xWindow; sal_Bool bParentDying = _rSource.Source == m_xDialogParent; @@ -210,7 +210,7 @@ namespace svt //--------------------------------------------------------------------- sal_Bool OCommonPicker::createPicker() { - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; if ( !m_pDlg ) { @@ -263,7 +263,7 @@ namespace svt { checkAlive(); - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; if ( createPicker() ) { ::svt::OControlAccess aAccess( m_pDlg, m_pDlg->GetView() ); @@ -276,7 +276,7 @@ namespace svt { checkAlive(); - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; if ( createPicker() ) { ::svt::OControlAccess aAccess( m_pDlg, m_pDlg->GetView() ); @@ -293,7 +293,7 @@ namespace svt { checkAlive(); - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; if ( createPicker() ) { ::svt::OControlAccess aAccess( m_pDlg, m_pDlg->GetView() ); @@ -308,7 +308,7 @@ namespace svt { checkAlive(); - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; if ( createPicker() ) { ::svt::OControlAccess aAccess( m_pDlg, m_pDlg->GetView() ); @@ -323,7 +323,7 @@ namespace svt { checkAlive(); - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; if ( createPicker() ) { ::svt::OControlAccess aAccess( m_pDlg, m_pDlg->GetView() ); @@ -338,7 +338,7 @@ namespace svt { checkAlive(); - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; if ( createPicker() ) { ::svt::OControlAccess aAccess( m_pDlg, m_pDlg->GetView() ); @@ -353,14 +353,14 @@ namespace svt //--------------------------------------------------------------------- void SAL_CALL OCommonPicker::setTitle( const rtl::OUString& _rTitle ) throw( RuntimeException ) { - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; m_aTitle = _rTitle; } //--------------------------------------------------------------------- sal_Int16 OCommonPicker::execute() throw (RuntimeException) { - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; prepareDialog(); diff --git a/fpicker/source/unx/kde4/KDE4FilePicker.cxx b/fpicker/source/unx/kde4/KDE4FilePicker.cxx index 9c14d4a634e7..7a3cf65df5ae 100644 --- a/fpicker/source/unx/kde4/KDE4FilePicker.cxx +++ b/fpicker/source/unx/kde4/KDE4FilePicker.cxx @@ -154,14 +154,14 @@ KDE4FilePicker::~KDE4FilePicker() void SAL_CALL KDE4FilePicker::addFilePickerListener( const uno::Reference<XFilePickerListener>& xListener ) throw( uno::RuntimeException ) { - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; m_xListener = xListener; } void SAL_CALL KDE4FilePicker::removeFilePickerListener( const uno::Reference<XFilePickerListener>& ) throw( uno::RuntimeException ) { - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; m_xListener.clear(); } diff --git a/fpicker/source/win32/filepicker/asyncrequests.cxx b/fpicker/source/win32/filepicker/asyncrequests.cxx index 698144864aab..9b177db586f0 100644 --- a/fpicker/source/win32/filepicker/asyncrequests.cxx +++ b/fpicker/source/win32/filepicker/asyncrequests.cxx @@ -67,7 +67,7 @@ void Request::wait(::sal_Int32 nMilliSeconds) void Request::waitProcessMessages() { - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; while (!m_aJoiner.check()) Application::Yield(); } diff --git a/fpicker/source/win32/misc/resourceprovider.cxx b/fpicker/source/win32/misc/resourceprovider.cxx index 2b6ee2e6525b..3146431d9456 100644 --- a/fpicker/source/win32/misc/resourceprovider.cxx +++ b/fpicker/source/win32/misc/resourceprovider.cxx @@ -121,7 +121,7 @@ public: CResourceProvider_Impl( ) { - const ::vos::OGuard aGuard( Application::GetSolarMutex() ); + const SolarMutexGuard aGuard; com::sun::star::lang::Locale aLoc( Application::GetSettings().GetUILocale() ); m_ResMgr = new SimpleResMgr( CREATEVERSIONRESMGR_NAME( fps_office ), aLoc ); |