summaryrefslogtreecommitdiff
path: root/sw/source/ui
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/ui')
-rw-r--r--sw/source/ui/dbui/dbmgr.cxx2
-rw-r--r--sw/source/ui/dbui/dbtree.cxx2
-rw-r--r--sw/source/ui/dbui/mailmergechildwindow.cxx6
-rw-r--r--sw/source/ui/docvw/edtwin.cxx2
-rw-r--r--sw/source/ui/uiview/pview.cxx2
-rw-r--r--sw/source/ui/uiview/uivwimp.cxx4
-rw-r--r--sw/source/ui/uno/SwXDocumentSettings.cxx4
-rw-r--r--sw/source/ui/uno/SwXFilterOptions.cxx2
-rw-r--r--sw/source/ui/uno/dlelstnr.cxx10
-rw-r--r--sw/source/ui/uno/swdetect.cxx2
-rw-r--r--sw/source/ui/uno/unoatxt.cxx70
-rw-r--r--sw/source/ui/uno/unodoc.cxx6
-rw-r--r--sw/source/ui/uno/unomailmerge.cxx30
-rw-r--r--sw/source/ui/uno/unomod.cxx4
-rw-r--r--sw/source/ui/uno/unomodule.cxx6
-rw-r--r--sw/source/ui/uno/unotxdoc.cxx100
-rw-r--r--sw/source/ui/uno/unotxvw.cxx112
17 files changed, 182 insertions, 182 deletions
diff --git a/sw/source/ui/dbui/dbmgr.cxx b/sw/source/ui/dbui/dbmgr.cxx
index 501d32f02865..8bda1ae2be62 100644
--- a/sw/source/ui/dbui/dbmgr.cxx
+++ b/sw/source/ui/dbui/dbmgr.cxx
@@ -2944,7 +2944,7 @@ SwConnectionDisposedListener_Impl::~SwConnectionDisposedListener_Impl()
void SwConnectionDisposedListener_Impl::disposing( const EventObject& rSource )
throw (RuntimeException)
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
uno::Reference<XConnection> xSource(rSource.Source, UNO_QUERY);
for(USHORT nPos = rDBMgr.aDataSourceParams.Count(); nPos; nPos--)
{
diff --git a/sw/source/ui/dbui/dbtree.cxx b/sw/source/ui/dbui/dbtree.cxx
index ffe109109321..f132a1a56099 100644
--- a/sw/source/ui/dbui/dbtree.cxx
+++ b/sw/source/ui/dbui/dbtree.cxx
@@ -124,7 +124,7 @@ void SwDBTreeList_Impl::elementInserted( const ContainerEvent& ) throw (Runtime
void SwDBTreeList_Impl::elementRemoved( const ContainerEvent& rEvent ) throw (RuntimeException)
{
- vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
::rtl::OUString sSource;
rEvent.Accessor >>= sSource;
for(USHORT i = 0; i < aConnections.Count(); i++)
diff --git a/sw/source/ui/dbui/mailmergechildwindow.cxx b/sw/source/ui/dbui/mailmergechildwindow.cxx
index 89c648bca53e..4be463724f36 100644
--- a/sw/source/ui/dbui/mailmergechildwindow.cxx
+++ b/sw/source/ui/dbui/mailmergechildwindow.cxx
@@ -208,7 +208,7 @@ void SwMailDispatcherListener_Impl::stopped(
void SwMailDispatcherListener_Impl::idle(::rtl::Reference<MailDispatcher> /*xMailDispatcher*/)
{
- vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
m_pSendMailDialog->AllMailsSent();
}
@@ -216,7 +216,7 @@ void SwMailDispatcherListener_Impl::mailDelivered(
::rtl::Reference<MailDispatcher> /*xMailDispatcher*/,
uno::Reference< mail::XMailMessage> xMailMessage)
{
- vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
m_pSendMailDialog->DocumentSent( xMailMessage, true, 0 );
DeleteAttachments( xMailMessage );
}
@@ -226,7 +226,7 @@ void SwMailDispatcherListener_Impl::mailDeliveryError(
uno::Reference< mail::XMailMessage> xMailMessage,
const rtl::OUString& sErrorMessage)
{
- vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
m_pSendMailDialog->DocumentSent( xMailMessage, false, &sErrorMessage );
DeleteAttachments( xMailMessage );
}
diff --git a/sw/source/ui/docvw/edtwin.cxx b/sw/source/ui/docvw/edtwin.cxx
index 1a2559c0d419..80f17ce04a9d 100644
--- a/sw/source/ui/docvw/edtwin.cxx
+++ b/sw/source/ui/docvw/edtwin.cxx
@@ -5533,7 +5533,7 @@ void SwEditWin::SetChainMode( BOOL bOn )
uno::Reference< ::com::sun::star::accessibility::XAccessible > SwEditWin::CreateAccessible()
{
- vos::OGuard aGuard(Application::GetSolarMutex()); // this should have
+ SolarMutexGuard aGuard; // this should have
// happend already!!!
SwWrtShell *pSh = rView.GetWrtShellPtr();
OSL_ENSURE( pSh, "no writer shell, no accessible object" );
diff --git a/sw/source/ui/uiview/pview.cxx b/sw/source/ui/uiview/pview.cxx
index 0e33c0ef7ec8..25448da4f9b2 100644
--- a/sw/source/ui/uiview/pview.cxx
+++ b/sw/source/ui/uiview/pview.cxx
@@ -1948,7 +1948,7 @@ BOOL SwPagePreView::HandleWheelCommands( const CommandEvent& rCEvt )
uno::Reference< ::com::sun::star::accessibility::XAccessible >
SwPagePreViewWin::CreateAccessible()
{
- vos::OGuard aGuard(Application::GetSolarMutex()); // this should have
+ SolarMutexGuard aGuard; // this should have
// happend already!!!
OSL_ENSURE( GetViewShell() != NULL, "We need a view shell" );
diff --git a/sw/source/ui/uiview/uivwimp.cxx b/sw/source/ui/uiview/uivwimp.cxx
index e1ccc590542d..8673adb599f5 100644
--- a/sw/source/ui/uiview/uivwimp.cxx
+++ b/sw/source/ui/uiview/uivwimp.cxx
@@ -269,7 +269,7 @@ SwScannerEventListener::~SwScannerEventListener()
void SAL_CALL SwScannerEventListener::disposing( const EventObject& rEventObject) throw(uno::RuntimeException)
{
- vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
#if defined WIN || defined WNT || defined UNX
if( pView )
pView->ScannerEventHdl( rEventObject );
@@ -289,7 +289,7 @@ void SAL_CALL SwClipboardChangeListener::changedContents( const CLIP_NMSPC::Clip
throw ( RuntimeException )
{
- const ::vos::OGuard aGuard( Application::GetSolarMutex() );
+ const SolarMutexGuard aGuard;
if( pView )
{
{
diff --git a/sw/source/ui/uno/SwXDocumentSettings.cxx b/sw/source/ui/uno/SwXDocumentSettings.cxx
index 8952b7774d51..3fdde6934ca2 100644
--- a/sw/source/ui/uno/SwXDocumentSettings.cxx
+++ b/sw/source/ui/uno/SwXDocumentSettings.cxx
@@ -261,7 +261,7 @@ void SwXDocumentSettings::release ()
uno::Sequence< uno::Type > SAL_CALL SwXDocumentSettings::getTypes( )
throw (RuntimeException)
{
- vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
uno::Sequence< uno::Type > aBaseTypes( 5 );
uno::Type* pBaseTypes = aBaseTypes.getArray();
@@ -280,7 +280,7 @@ uno::Sequence< uno::Type > SAL_CALL SwXDocumentSettings::getTypes( )
uno::Sequence< sal_Int8 > SAL_CALL SwXDocumentSettings::getImplementationId( )
throw (RuntimeException)
{
- vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
static Sequence< sal_Int8 > aId( 16 );
static sal_Bool bInit = sal_False;
if(!bInit)
diff --git a/sw/source/ui/uno/SwXFilterOptions.cxx b/sw/source/ui/uno/SwXFilterOptions.cxx
index 15909964b5f7..9b01c9e58f92 100644
--- a/sw/source/ui/uno/SwXFilterOptions.cxx
+++ b/sw/source/ui/uno/SwXFilterOptions.cxx
@@ -184,7 +184,7 @@ uno::Sequence< ::rtl::OUString > SwXFilterOptions::getSupportedServiceNames()
uno::Reference<uno::XInterface> SAL_CALL SwXFilterOptions_createInstance(
const uno::Reference<lang::XMultiServiceFactory>& )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
SwDLL::Init();
return (::cppu::OWeakObject*) new SwXFilterOptions;
}
diff --git a/sw/source/ui/uno/dlelstnr.cxx b/sw/source/ui/uno/dlelstnr.cxx
index 732936a58729..47dcf9d31750 100644
--- a/sw/source/ui/uno/dlelstnr.cxx
+++ b/sw/source/ui/uno/dlelstnr.cxx
@@ -100,7 +100,7 @@ void SwLinguServiceEventListener::processDictionaryListEvent(
const DictionaryListEvent& rDicListEvent)
throw( RuntimeException )
{
- vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
sal_Int16 nEvt = rDicListEvent.nCondensedEvent;
@@ -125,7 +125,7 @@ void SAL_CALL SwLinguServiceEventListener::processLinguServiceEvent(
const LinguServiceEvent& rLngSvcEvent )
throw(RuntimeException)
{
- vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
sal_Bool bIsSpellWrong = 0 != (rLngSvcEvent.nEvent & SPELL_WRONG_WORDS_AGAIN);
sal_Bool bIsSpellAll = 0 != (rLngSvcEvent.nEvent & SPELL_CORRECT_WORDS_AGAIN);
@@ -155,7 +155,7 @@ void SAL_CALL SwLinguServiceEventListener::disposing(
const EventObject& rEventObj )
throw(RuntimeException)
{
- vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
if (xLngSvcMgr.is() && rEventObj.Source == xLngSvcMgr)
xLngSvcMgr = 0;
@@ -167,14 +167,14 @@ void SAL_CALL SwLinguServiceEventListener::queryTermination(
const EventObject& /*rEventObj*/ )
throw(TerminationVetoException, RuntimeException)
{
- //vos::OGuard aGuard(Application::GetSolarMutex());
+ //SolarMutexGuard aGuard;
}
void SAL_CALL SwLinguServiceEventListener::notifyTermination(
const EventObject& rEventObj )
throw(RuntimeException)
{
- vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
if (xDesktop.is() && rEventObj.Source == xDesktop)
{
diff --git a/sw/source/ui/uno/swdetect.cxx b/sw/source/ui/uno/swdetect.cxx
index 6f8c25e6f500..77ffb016ba05 100644
--- a/sw/source/ui/uno/swdetect.cxx
+++ b/sw/source/ui/uno/swdetect.cxx
@@ -171,7 +171,7 @@ SwFilterDetect::~SwFilterDetect()
}
// can't check the type for external filters, so set the "dont" flag accordingly
- ::vos::OGuard aGuard( Application::GetSolarMutex() );
+ SolarMutexGuard aGuard;
//SfxFilterFlags nMust = SFX_FILTER_IMPORT, nDont = SFX_FILTER_NOTINSTALLED;
SfxApplication* pApp = SFX_APP();
diff --git a/sw/source/ui/uno/unoatxt.cxx b/sw/source/ui/uno/unoatxt.cxx
index f379fde54772..14e77d9ed296 100644
--- a/sw/source/ui/uno/unoatxt.cxx
+++ b/sw/source/ui/uno/unoatxt.cxx
@@ -75,7 +75,7 @@ uno::Reference< uno::XInterface > SAL_CALL SwXAutoTextContainer_createInstance(
const uno::Reference< lang::XMultiServiceFactory > & ) throw( uno::Exception )
{
//the module may not be loaded
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
SwDLL::Init();
static uno::Reference< uno::XInterface > xAText = (cppu::OWeakObject*)new SwXAutoTextContainer();;
return xAText;
@@ -112,7 +112,7 @@ sal_Int32 SwXAutoTextContainer::getCount(void) throw( uno::RuntimeException )
uno::Any SwXAutoTextContainer::getByIndex(sal_Int32 nIndex)
throw( lang::IndexOutOfBoundsException, lang::WrappedTargetException, uno::RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
uno::Any aRet;
sal_uInt16 nCount = pGlossaries->GetGroupCnt();
if ( 0 <= nIndex && nIndex < nCount )
@@ -137,7 +137,7 @@ sal_Bool SwXAutoTextContainer::hasElements(void) throw( uno::RuntimeException )
uno::Any SwXAutoTextContainer::getByName(const OUString& GroupName)
throw( container::NoSuchElementException, lang::WrappedTargetException, uno::RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
uno::Reference< text::XAutoTextGroup > xGroup;
if ( pGlossaries && hasByName( GroupName ) ) // group name already known?
@@ -152,7 +152,7 @@ uno::Any SwXAutoTextContainer::getByName(const OUString& GroupName)
uno::Sequence< OUString > SwXAutoTextContainer::getElementNames(void) throw( uno::RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
sal_uInt16 nCount = pGlossaries->GetGroupCnt();
uno::Sequence< OUString > aGroupNames(nCount);
@@ -172,7 +172,7 @@ uno::Sequence< OUString > SwXAutoTextContainer::getElementNames(void) throw( uno
sal_Bool SwXAutoTextContainer::hasByName(const OUString& Name)
throw( uno::RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
String sGroupName( pGlossaries->GetCompleteGroupName( Name ) );
if(sGroupName.Len())
return sal_True;
@@ -183,7 +183,7 @@ uno::Reference< text::XAutoTextGroup > SwXAutoTextContainer::insertNewByName(
const OUString& aGroupName)
throw( lang::IllegalArgumentException, container::ElementExistException, uno::RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
if(hasByName(aGroupName))
throw container::ElementExistException();
//check for non-ASCII characters
@@ -227,7 +227,7 @@ uno::Reference< text::XAutoTextGroup > SwXAutoTextContainer::insertNewByName(
void SwXAutoTextContainer::removeByName(const OUString& aGroupName)
throw( container::NoSuchElementException, uno::RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
//zunaechst den Namen mit Pfad-Extension finden
String sGroupName = pGlossaries->GetCompleteGroupName( aGroupName );
if(!sGroupName.Len())
@@ -291,7 +291,7 @@ SwXAutoTextGroup::~SwXAutoTextGroup()
uno::Sequence< OUString > SwXAutoTextGroup::getTitles(void) throw( uno::RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
sal_uInt16 nCount = 0;
SwTextBlocks* pGlosGroup = pGlossaries ? pGlossaries->GetGroupDoc(m_sGroupName, sal_False) : 0;
if(pGlosGroup && !pGlosGroup->GetError())
@@ -313,7 +313,7 @@ void SwXAutoTextGroup::renameByName(const OUString& aElementName,
throw( lang::IllegalArgumentException, container::ElementExistException, io::IOException,
uno::RuntimeException)
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
// throw exception only if the programmatic name is to be changed into an existing name
if(aNewElementName != aElementName && hasByName(aNewElementName))
throw container::ElementExistException();
@@ -384,7 +384,7 @@ uno::Reference< text::XAutoTextEntry > SwXAutoTextGroup::insertNewByName(const
const OUString& aTitle, const uno::Reference< text::XTextRange > & xTextRange)
throw( container::ElementExistException, uno::RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
if(hasByName(aName))
throw container::ElementExistException();
if(!xTextRange.is())
@@ -465,7 +465,7 @@ uno::Reference< text::XAutoTextEntry > SwXAutoTextGroup::insertNewByName(const
void SwXAutoTextGroup::removeByName(const OUString& aEntryName) throw( container::NoSuchElementException, uno::RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
SwTextBlocks* pGlosGroup = pGlossaries ? pGlossaries->GetGroupDoc(m_sGroupName, sal_False) : 0;
if(pGlosGroup && !pGlosGroup->GetError())
{
@@ -480,13 +480,13 @@ void SwXAutoTextGroup::removeByName(const OUString& aEntryName) throw( container
OUString SwXAutoTextGroup::getName(void) throw( uno::RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
return sName;
}
void SwXAutoTextGroup::setName(const OUString& rName) throw( uno::RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
if( !pGlossaries )
throw uno::RuntimeException();
@@ -532,7 +532,7 @@ void SwXAutoTextGroup::setName(const OUString& rName) throw( uno::RuntimeExcepti
sal_Int32 SwXAutoTextGroup::getCount(void) throw( uno::RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
int nCount = 0;
SwTextBlocks* pGlosGroup = pGlossaries ? pGlossaries->GetGroupDoc(m_sGroupName, sal_False) : 0;
if(pGlosGroup && !pGlosGroup->GetError())
@@ -546,7 +546,7 @@ sal_Int32 SwXAutoTextGroup::getCount(void) throw( uno::RuntimeException )
uno::Any SwXAutoTextGroup::getByIndex(sal_Int32 nIndex)
throw( lang::IndexOutOfBoundsException, lang::WrappedTargetException, uno::RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
uno::Any aRet;
sal_uInt16 nCount = 0;
SwTextBlocks* pGlosGroup = pGlossaries ? pGlossaries->GetGroupDoc(m_sGroupName, sal_False) : 0;
@@ -570,7 +570,7 @@ uno::Type SwXAutoTextGroup::getElementType(void) throw( uno::RuntimeException )
sal_Bool SwXAutoTextGroup::hasElements(void) throw( uno::RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
SwTextBlocks* pGlosGroup = pGlossaries ? pGlossaries->GetGroupDoc(m_sGroupName, sal_False) : 0;
sal_uInt16 nCount = 0;
if(pGlosGroup && !pGlosGroup->GetError())
@@ -585,7 +585,7 @@ sal_Bool SwXAutoTextGroup::hasElements(void) throw( uno::RuntimeException )
uno::Any SwXAutoTextGroup::getByName(const OUString& _rName)
throw( container::NoSuchElementException, lang::WrappedTargetException, uno::RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
uno::Reference< text::XAutoTextEntry > xEntry = pGlossaries->GetAutoTextEntry( m_sGroupName, sName, _rName, true );
OSL_ENSURE( xEntry.is(), "SwXAutoTextGroup::getByName: GetAutoTextEntry is fractious!" );
// we told it to create the object, so why didn't it?
@@ -595,7 +595,7 @@ uno::Any SwXAutoTextGroup::getByName(const OUString& _rName)
uno::Sequence< OUString > SwXAutoTextGroup::getElementNames(void)
throw( uno::RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
sal_uInt16 nCount = 0;
SwTextBlocks* pGlosGroup = pGlossaries ? pGlossaries->GetGroupDoc(m_sGroupName, sal_False) : 0;
if(pGlosGroup && !pGlosGroup->GetError())
@@ -615,7 +615,7 @@ uno::Sequence< OUString > SwXAutoTextGroup::getElementNames(void)
sal_Bool SwXAutoTextGroup::hasByName(const OUString& rName)
throw( uno::RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
sal_Bool bRet = sal_False;
sal_uInt16 nCount = 0;
SwTextBlocks* pGlosGroup = pGlossaries ? pGlossaries->GetGroupDoc(m_sGroupName, sal_False) : 0;
@@ -649,7 +649,7 @@ void SwXAutoTextGroup::setPropertyValue(
throw( beans::UnknownPropertyException, beans::PropertyVetoException,
lang::IllegalArgumentException, lang::WrappedTargetException, uno::RuntimeException)
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
const SfxItemPropertySimpleEntry* pEntry = pPropSet->getPropertyMap()->getByName( rPropertyName );
if(!pEntry)
@@ -679,7 +679,7 @@ void SwXAutoTextGroup::setPropertyValue(
uno::Any SwXAutoTextGroup::getPropertyValue(const OUString& rPropertyName)
throw( beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
const SfxItemPropertySimpleEntry* pEntry = pPropSet->getPropertyMap()->getByName( rPropertyName);
if(!pEntry)
@@ -781,7 +781,7 @@ SwXAutoTextEntry::SwXAutoTextEntry(SwGlossaries* pGlss, const String& rGroupName
SwXAutoTextEntry::~SwXAutoTextEntry()
{
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
// ensure that any pending modifications are written
implFlushDocument( true );
@@ -841,7 +841,7 @@ void SwXAutoTextEntry::Notify( SfxBroadcaster& _rBC, const SfxHint& _rHint )
void SwXAutoTextEntry::GetBodyText ()
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
xDocSh = pGlossaries->EditGroupDoc ( sGroupName, sEntryName, FALSE );
OSL_ENSURE( xDocSh.Is(), "SwXAutoTextEntry::GetBodyText: unexpected: no doc returned by EditGroupDoc!" );
@@ -855,7 +855,7 @@ void SwXAutoTextEntry::GetBodyText ()
uno::Reference< text::XTextCursor > SwXAutoTextEntry::createTextCursor(void) throw( uno::RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
EnsureBodyText();
return pBodyText->createTextCursor();
}
@@ -863,14 +863,14 @@ uno::Reference< text::XTextCursor > SwXAutoTextEntry::createTextCursor(void) th
uno::Reference< text::XTextCursor > SwXAutoTextEntry::createTextCursorByRange(
const uno::Reference< text::XTextRange > & aTextPosition) throw( uno::RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
EnsureBodyText();
return pBodyText->createTextCursorByRange ( aTextPosition );
}
void SwXAutoTextEntry::insertString(const uno::Reference< text::XTextRange > & xRange, const OUString& aString, sal_Bool bAbsorb) throw( uno::RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
EnsureBodyText();
pBodyText->insertString ( xRange, aString, bAbsorb );
}
@@ -879,7 +879,7 @@ void SwXAutoTextEntry::insertControlCharacter(const uno::Reference< text::XTextR
sal_Int16 nControlCharacter, sal_Bool bAbsorb)
throw( lang::IllegalArgumentException, uno::RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
EnsureBodyText();
pBodyText->insertControlCharacter ( xRange, nControlCharacter, bAbsorb );
}
@@ -889,7 +889,7 @@ void SwXAutoTextEntry::insertTextContent(
const uno::Reference< text::XTextContent > & xContent, sal_Bool bAbsorb)
throw( lang::IllegalArgumentException, uno::RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
EnsureBodyText();
pBodyText->insertTextContent ( xRange, xContent, bAbsorb );
}
@@ -898,49 +898,49 @@ void SwXAutoTextEntry::removeTextContent(
const uno::Reference< text::XTextContent > & xContent)
throw( container::NoSuchElementException, uno::RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
EnsureBodyText();
pBodyText->removeTextContent ( xContent );
}
uno::Reference< text::XText > SwXAutoTextEntry::getText(void) throw( uno::RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
uno::Reference< text::XText > xRet = (text::XText*)this;
return xRet;
}
uno::Reference< text::XTextRange > SwXAutoTextEntry::getStart(void) throw( uno::RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
EnsureBodyText();
return pBodyText->getStart();
}
uno::Reference< text::XTextRange > SwXAutoTextEntry::getEnd(void) throw( uno::RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
EnsureBodyText();
return pBodyText->getEnd();
}
OUString SwXAutoTextEntry::getString(void) throw( uno::RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
EnsureBodyText();
return pBodyText->getString();
}
void SwXAutoTextEntry::setString(const OUString& aString) throw( uno::RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
EnsureBodyText();
pBodyText->setString( aString );
}
void SwXAutoTextEntry::applyTo(const uno::Reference< text::XTextRange > & xTextRange)throw( uno::RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
// ensure that any pending modifications are written
// reason is that we're holding the _copy_ of the auto text, while the real auto text
diff --git a/sw/source/ui/uno/unodoc.cxx b/sw/source/ui/uno/unodoc.cxx
index 6ade8ba601e8..7d3e201ee078 100644
--- a/sw/source/ui/uno/unodoc.cxx
+++ b/sw/source/ui/uno/unodoc.cxx
@@ -65,7 +65,7 @@ uno::Reference< uno::XInterface > SAL_CALL SwTextDocument_createInstance(
const uno::Reference< lang::XMultiServiceFactory >&, const sal_uInt64 _nCreationFlags )
throw( uno::Exception )
{
- ::vos::OGuard aGuard( Application::GetSolarMutex() );
+ SolarMutexGuard aGuard;
SwDLL::Init();
SfxObjectShell* pShell = new SwDocShell( _nCreationFlags );
return uno::Reference< uno::XInterface >( pShell->GetModel() );
@@ -94,7 +94,7 @@ uno::Reference< uno::XInterface > SAL_CALL SwWebDocument_createInstance(
const uno::Reference< lang::XMultiServiceFactory > & )
throw( uno::Exception )
{
- ::vos::OGuard aGuard( Application::GetSolarMutex() );
+ SolarMutexGuard aGuard;
SwDLL::Init();
SfxObjectShell* pShell = new SwWebDocShell( SFX_CREATE_MODE_STANDARD );
return uno::Reference< uno::XInterface >( pShell->GetModel() );
@@ -121,7 +121,7 @@ uno::Reference< uno::XInterface > SAL_CALL SwGlobalDocument_createInstance(
const uno::Reference< lang::XMultiServiceFactory > &)
throw( uno::Exception )
{
- ::vos::OGuard aGuard( Application::GetSolarMutex() );
+ SolarMutexGuard aGuard;
SwDLL::Init();
SfxObjectShell* pShell = new SwGlobalDocShell( SFX_CREATE_MODE_STANDARD );
return uno::Reference< uno::XInterface >( pShell->GetModel() );
diff --git a/sw/source/ui/uno/unomailmerge.cxx b/sw/source/ui/uno/unomailmerge.cxx
index 536188ee694e..ab368ca396a1 100644
--- a/sw/source/ui/uno/unomailmerge.cxx
+++ b/sw/source/ui/uno/unomailmerge.cxx
@@ -459,7 +459,7 @@ uno::Any SAL_CALL SwXMailMerge::execute(
const uno::Sequence< beans::NamedValue >& rArguments )
throw (IllegalArgumentException, Exception, RuntimeException)
{
- vos::OGuard aGuard( Application::GetSolarMutex() );
+ SolarMutexGuard aGuard;
//
// get property values to be used
@@ -881,7 +881,7 @@ void SwXMailMerge::launchEvent( const PropertyChangeEvent &rEvt ) const
uno::Reference< beans::XPropertySetInfo > SAL_CALL SwXMailMerge::getPropertySetInfo( )
throw (RuntimeException)
{
- vos::OGuard aGuard( Application::GetSolarMutex() );
+ SolarMutexGuard aGuard;
static Reference< XPropertySetInfo > aRef = pPropSet->getPropertySetInfo();
return aRef;
}
@@ -890,7 +890,7 @@ void SAL_CALL SwXMailMerge::setPropertyValue(
const OUString& rPropertyName, const uno::Any& rValue )
throw (UnknownPropertyException, PropertyVetoException, IllegalArgumentException, WrappedTargetException, RuntimeException)
{
- vos::OGuard aGuard( Application::GetSolarMutex() );
+ SolarMutexGuard aGuard;
const SfxItemPropertySimpleEntry* pCur = pPropSet->getPropertyMap()->getByName( rPropertyName );
if (!pCur)
@@ -1045,7 +1045,7 @@ uno::Any SAL_CALL SwXMailMerge::getPropertyValue(
const OUString& rPropertyName )
throw (UnknownPropertyException, WrappedTargetException, RuntimeException)
{
- vos::OGuard aGuard( Application::GetSolarMutex() );
+ SolarMutexGuard aGuard;
Any aRet;
@@ -1100,7 +1100,7 @@ void SAL_CALL SwXMailMerge::addPropertyChangeListener(
const uno::Reference< beans::XPropertyChangeListener >& rListener )
throw (UnknownPropertyException, WrappedTargetException, RuntimeException)
{
- vos::OGuard aGuard( Application::GetSolarMutex() );
+ SolarMutexGuard aGuard;
if (!bDisposing && rListener.is())
{
const SfxItemPropertySimpleEntry* pCur = pPropSet->getPropertyMap()->getByName( rPropertyName );
@@ -1116,7 +1116,7 @@ void SAL_CALL SwXMailMerge::removePropertyChangeListener(
const uno::Reference< beans::XPropertyChangeListener >& rListener )
throw (UnknownPropertyException, WrappedTargetException, RuntimeException)
{
- vos::OGuard aGuard( Application::GetSolarMutex() );
+ SolarMutexGuard aGuard;
if (!bDisposing && rListener.is())
{
const SfxItemPropertySimpleEntry* pCur = pPropSet->getPropertyMap()->getByName( rPropertyName );
@@ -1149,7 +1149,7 @@ void SAL_CALL SwXMailMerge::removeVetoableChangeListener(
void SAL_CALL SwXMailMerge::dispose()
throw(RuntimeException)
{
- vos::OGuard aGuard( Application::GetSolarMutex() );
+ SolarMutexGuard aGuard;
if (!bDisposing)
{
@@ -1166,7 +1166,7 @@ void SAL_CALL SwXMailMerge::addEventListener(
const Reference< XEventListener >& rxListener )
throw(RuntimeException)
{
- vos::OGuard aGuard( Application::GetSolarMutex() );
+ SolarMutexGuard aGuard;
if (!bDisposing && rxListener.is())
aEvtListeners.addInterface( rxListener );
}
@@ -1175,7 +1175,7 @@ void SAL_CALL SwXMailMerge::removeEventListener(
const Reference< XEventListener >& rxListener )
throw(RuntimeException)
{
- vos::OGuard aGuard( Application::GetSolarMutex() );
+ SolarMutexGuard aGuard;
if (!bDisposing && rxListener.is())
aEvtListeners.removeInterface( rxListener );
}
@@ -1184,7 +1184,7 @@ void SAL_CALL SwXMailMerge::addMailMergeEventListener(
const uno::Reference< XMailMergeListener >& rxListener )
throw (RuntimeException)
{
- vos::OGuard aGuard( Application::GetSolarMutex() );
+ SolarMutexGuard aGuard;
if (!bDisposing && rxListener.is())
aMergeListeners.addInterface( rxListener );
}
@@ -1193,7 +1193,7 @@ void SAL_CALL SwXMailMerge::removeMailMergeEventListener(
const uno::Reference< XMailMergeListener >& rxListener )
throw (RuntimeException)
{
- vos::OGuard aGuard( Application::GetSolarMutex() );
+ SolarMutexGuard aGuard;
if (!bDisposing && rxListener.is())
aMergeListeners.removeInterface( rxListener );
}
@@ -1201,14 +1201,14 @@ void SAL_CALL SwXMailMerge::removeMailMergeEventListener(
OUString SAL_CALL SwXMailMerge::getImplementationName()
throw(RuntimeException)
{
- vos::OGuard aGuard( Application::GetSolarMutex() );
+ SolarMutexGuard aGuard;
return SwXMailMerge_getImplementationName();
}
sal_Bool SAL_CALL SwXMailMerge::supportsService( const OUString& rServiceName )
throw(RuntimeException)
{
- vos::OGuard aGuard( Application::GetSolarMutex() );
+ SolarMutexGuard aGuard;
return C2U( SN_MAIL_MERGE ) == rServiceName ||
C2U( SN_DATA_ACCESS_DESCRIPTOR ) == rServiceName;
}
@@ -1216,7 +1216,7 @@ sal_Bool SAL_CALL SwXMailMerge::supportsService( const OUString& rServiceName )
uno::Sequence< OUString > SAL_CALL SwXMailMerge::getSupportedServiceNames()
throw(RuntimeException)
{
- vos::OGuard aGuard( Application::GetSolarMutex() );
+ SolarMutexGuard aGuard;
return SwXMailMerge_getSupportedServiceNames();
}
@@ -1242,7 +1242,7 @@ uno::Reference< uno::XInterface > SAL_CALL SwXMailMerge_createInstance(
const uno::Reference< XMultiServiceFactory > & /*rSMgr*/)
throw( uno::Exception )
{
- vos::OGuard aGuard( Application::GetSolarMutex() );
+ SolarMutexGuard aGuard;
//the module may not be loaded
SwDLL::Init();
diff --git a/sw/source/ui/uno/unomod.cxx b/sw/source/ui/uno/unomod.cxx
index 436af85267fe..f132497043ea 100644
--- a/sw/source/ui/uno/unomod.cxx
+++ b/sw/source/ui/uno/unomod.cxx
@@ -242,7 +242,7 @@ SwXModule::~SwXModule()
Reference< XPropertySet > SwXModule::getViewSettings(void) throw( uno::RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
if(!pxViewSettings)
{
((SwXModule*)this)->pxViewSettings = new Reference< XPropertySet > ;
@@ -254,7 +254,7 @@ Reference< XPropertySet > SwXModule::getViewSettings(void) throw( uno::RuntimeE
Reference< XPropertySet > SwXModule::getPrintSettings(void) throw( uno::RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
if(!pxPrintSettings)
{
((SwXModule*)this)->pxPrintSettings = new Reference< XPropertySet > ;
diff --git a/sw/source/ui/uno/unomodule.cxx b/sw/source/ui/uno/unomodule.cxx
index af1fbc18d580..d08596cb56dd 100644
--- a/sw/source/ui/uno/unomodule.cxx
+++ b/sw/source/ui/uno/unomodule.cxx
@@ -58,7 +58,7 @@ uno::Sequence< rtl::OUString > SAL_CALL SwUnoModule_getSupportedServiceNames() t
uno::Reference< uno::XInterface > SAL_CALL SwUnoModule_createInstance(
const uno::Reference< lang::XMultiServiceFactory > & rSMgr )
{
- ::vos::OGuard aGuard( Application::GetSolarMutex() );
+ SolarMutexGuard aGuard;
return uno::Reference< uno::XInterface >( dynamic_cast< frame::XDispatch * >(new SwUnoModule( rSMgr )), uno::UNO_QUERY );
}
@@ -70,7 +70,7 @@ void SAL_CALL SwUnoModule::dispatchWithNotification( const util::URL& aURL, cons
// asynchronous ...
uno::Reference< uno::XInterface > xThis(static_cast< frame::XNotifyingDispatch* >(this));
- ::vos::OGuard aGuard( Application::GetSolarMutex() );
+ SolarMutexGuard aGuard;
SwDLL::Init();
const SfxSlot* pSlot = SW_MOD()->GetInterface()->GetSlot( aURL.Complete );
@@ -137,7 +137,7 @@ REFERENCE< XDISPATCH > SAL_CALL SwUnoModule::queryDispatch(
{
REFERENCE< XDISPATCH > xReturn;
- ::vos::OGuard aGuard( Application::GetSolarMutex() );
+ SolarMutexGuard aGuard;
SwDLL::Init();
const SfxSlot* pSlot = SW_MOD()->GetInterface()->GetSlot( aURL.Complete );
if ( pSlot )
diff --git a/sw/source/ui/uno/unotxdoc.cxx b/sw/source/ui/uno/unotxdoc.cxx
index 9c9453f5694f..987ee13d62bc 100644
--- a/sw/source/ui/uno/unotxdoc.cxx
+++ b/sw/source/ui/uno/unotxdoc.cxx
@@ -455,7 +455,7 @@ void SwXTextDocument::GetNumberFormatter()
Reference< XText > SwXTextDocument::getText(void) throw( RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
if(!IsValid())
throw RuntimeException();
if(!xBodyText.is())
@@ -468,14 +468,14 @@ Reference< XText > SwXTextDocument::getText(void) throw( RuntimeException )
void SwXTextDocument::reformat(void) throw( RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
if(!IsValid())
throw RuntimeException();
}
void SwXTextDocument::lockControllers(void) throw( RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
if(IsValid())
{
UnoActionContext* pContext = new UnoActionContext(pDocShell->GetDoc());
@@ -487,7 +487,7 @@ void SwXTextDocument::lockControllers(void) throw( RuntimeException )
void SwXTextDocument::unlockControllers(void) throw( RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
if(aActionArr.Count())
{
UnoActionContext* pContext = aActionArr.GetObject(0);
@@ -500,7 +500,7 @@ void SwXTextDocument::unlockControllers(void) throw( RuntimeException )
sal_Bool SwXTextDocument::hasControllersLocked(void) throw( RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
return aActionArr.Count() > 0;
}
@@ -517,7 +517,7 @@ void SwXTextDocument::setCurrentController(const Reference< frame::XController >
Reference< XInterface > SwXTextDocument::getCurrentSelection() throw( RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
Reference< XInterface > xRef;
if(IsValid())
{
@@ -588,7 +588,7 @@ void SwXTextDocument::removeEventListener(const Reference< lang::XEventListener
Reference< XPropertySet > SwXTextDocument::getLineNumberingProperties(void)
throw( RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
if(IsValid())
{
if(!pxXLineNumberingProperties)
@@ -605,7 +605,7 @@ Reference< XPropertySet > SwXTextDocument::getLineNumberingProperties(void)
Reference< XIndexReplace > SwXTextDocument::getChapterNumberingRules(void)
throw( RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
if(!IsValid())
throw RuntimeException();
if(!pxXChapterNumbering)
@@ -618,7 +618,7 @@ Reference< XIndexReplace > SwXTextDocument::getChapterNumberingRules(void)
Reference< XIndexAccess > SwXTextDocument::getNumberingRules(void) throw( RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
if(!IsValid())
throw RuntimeException();
if(!pxXNumberingRules )
@@ -631,7 +631,7 @@ Reference< XIndexAccess > SwXTextDocument::getNumberingRules(void) throw( Runti
Reference< XIndexAccess > SwXTextDocument::getFootnotes(void) throw( RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
if(!IsValid())
throw RuntimeException();
if(!pxXFootnotes)
@@ -645,7 +645,7 @@ Reference< XIndexAccess > SwXTextDocument::getFootnotes(void) throw( RuntimeExc
Reference< XPropertySet > SAL_CALL
SwXTextDocument::getFootnoteSettings(void) throw( RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
if(!IsValid())
throw RuntimeException();
if(!pxXFootnoteSettings)
@@ -658,7 +658,7 @@ Reference< XPropertySet > SAL_CALL
Reference< XIndexAccess > SwXTextDocument::getEndnotes(void) throw( RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
if(!IsValid())
throw RuntimeException();
if(!pxXEndnotes)
@@ -671,7 +671,7 @@ Reference< XIndexAccess > SwXTextDocument::getEndnotes(void) throw( RuntimeExce
Reference< XPropertySet > SwXTextDocument::getEndnoteSettings(void) throw( RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
if(!IsValid())
throw RuntimeException();
if(!pxXEndnoteSettings)
@@ -685,7 +685,7 @@ Reference< XPropertySet > SwXTextDocument::getEndnoteSettings(void) throw( Runt
Reference< util::XReplaceDescriptor > SwXTextDocument::createReplaceDescriptor(void)
throw( RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
Reference< util::XReplaceDescriptor > xRet = new SwXTextSearch;
return xRet;
}
@@ -706,7 +706,7 @@ SwUnoCrsr* SwXTextDocument::CreateCursorForSearch(Reference< XTextCursor > & xC
sal_Int32 SwXTextDocument::replaceAll(const Reference< util::XSearchDescriptor > & xDesc)
throw( RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
Reference< XUnoTunnel > xDescTunnel(xDesc, UNO_QUERY);
if(!IsValid() || !xDescTunnel.is() || !xDescTunnel->getSomething(SwXTextSearch::getUnoTunnelId()))
throw RuntimeException();
@@ -779,7 +779,7 @@ sal_Int32 SwXTextDocument::replaceAll(const Reference< util::XSearchDescriptor >
Reference< util::XSearchDescriptor > SwXTextDocument::createSearchDescriptor(void)
throw( RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
Reference< util::XSearchDescriptor > xRet = new SwXTextSearch;
return xRet;
@@ -915,7 +915,7 @@ Reference< XIndexAccess >
SwXTextDocument::findAll(const Reference< util::XSearchDescriptor > & xDesc)
throw( RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
Reference< XInterface > xTmp;
sal_Int32 nResult = 0;
Reference< XTextCursor > xCrsr;
@@ -931,7 +931,7 @@ Reference< XIndexAccess >
Reference< XInterface > SwXTextDocument::findFirst(const Reference< util::XSearchDescriptor > & xDesc)
throw( RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
Reference< XInterface > xTmp;
sal_Int32 nResult = 0;
Reference< XTextCursor > xCrsr;
@@ -954,7 +954,7 @@ Reference< XInterface > SwXTextDocument::findNext(const Reference< XInterface >
const Reference< util::XSearchDescriptor > & xDesc)
throw( RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
Reference< XInterface > xTmp;
sal_Int32 nResult = 0;
Reference< XTextCursor > xCrsr;
@@ -979,7 +979,7 @@ Reference< XInterface > SwXTextDocument::findNext(const Reference< XInterface >
Sequence< beans::PropertyValue > SwXTextDocument::getPagePrintSettings(void)
throw( RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
Sequence< beans::PropertyValue > aSeq(9);
if(IsValid())
{
@@ -1058,7 +1058,7 @@ String lcl_CreateOutlineString( USHORT nIndex,
void SwXTextDocument::setPagePrintSettings(const Sequence< beans::PropertyValue >& aSettings)
throw( RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
if(IsValid())
{
SwPagePreViewPrtData aData;
@@ -1129,7 +1129,7 @@ void SwXTextDocument::setPagePrintSettings(const Sequence< beans::PropertyValue
void SwXTextDocument::printPages(const Sequence< beans::PropertyValue >& xOptions)
throw( IllegalArgumentException, RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
if(IsValid())
{
SfxViewFrame* pFrame = SfxViewFrame::LoadHiddenDocument( *pDocShell, 7 );
@@ -1215,7 +1215,7 @@ void SwXTextDocument::printPages(const Sequence< beans::PropertyValue >& xOption
Reference< XNameAccess > SwXTextDocument::getReferenceMarks(void)
throw( RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
if(!IsValid())
throw RuntimeException();
if(!pxXReferenceMarks)
@@ -1228,7 +1228,7 @@ Reference< XNameAccess > SwXTextDocument::getReferenceMarks(void)
Reference< XEnumerationAccess > SwXTextDocument::getTextFields(void) throw( RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
if(!IsValid())
throw RuntimeException();
if(!pxXTextFieldTypes)
@@ -1242,7 +1242,7 @@ Reference< XEnumerationAccess > SwXTextDocument::getTextFields(void) throw( Run
Reference< XNameAccess > SwXTextDocument::getTextFieldMasters(void)
throw( RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
if(!IsValid())
throw RuntimeException();
if(!pxXTextFieldMasters)
@@ -1255,7 +1255,7 @@ Reference< XNameAccess > SwXTextDocument::getTextFieldMasters(void)
Reference< XNameAccess > SwXTextDocument::getEmbeddedObjects(void) throw( RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
if(!IsValid())
throw RuntimeException();
if(!pxXEmbeddedObjects)
@@ -1268,7 +1268,7 @@ Reference< XNameAccess > SwXTextDocument::getEmbeddedObjects(void) throw( Runti
Reference< XNameAccess > SwXTextDocument::getBookmarks(void) throw( RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
if(!IsValid())
throw RuntimeException();
if(!pxXBookmarks)
@@ -1281,7 +1281,7 @@ Reference< XNameAccess > SwXTextDocument::getBookmarks(void) throw( RuntimeExce
Reference< XNameAccess > SwXTextDocument::getTextSections(void) throw( RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
if(!IsValid())
throw RuntimeException();
if(!pxXTextSections)
@@ -1294,7 +1294,7 @@ Reference< XNameAccess > SwXTextDocument::getTextSections(void) throw( RuntimeE
Reference< XNameAccess > SwXTextDocument::getTextTables(void) throw( RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
if(!IsValid())
throw RuntimeException();
if(!pxXTextTables)
@@ -1307,7 +1307,7 @@ Reference< XNameAccess > SwXTextDocument::getTextTables(void) throw( RuntimeExc
Reference< XNameAccess > SwXTextDocument::getGraphicObjects(void) throw( RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
if(!IsValid())
throw RuntimeException();
if(!pxXGraphicObjects)
@@ -1320,7 +1320,7 @@ Reference< XNameAccess > SwXTextDocument::getGraphicObjects(void) throw( Runtim
Reference< XNameAccess > SwXTextDocument::getTextFrames(void) throw( RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
if(!IsValid())
throw RuntimeException();
if(!pxXTextFrames)
@@ -1333,7 +1333,7 @@ Reference< XNameAccess > SwXTextDocument::getTextFrames(void) throw( RuntimeExc
Reference< XNameAccess > SwXTextDocument::getStyleFamilies(void) throw( RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
if(!IsValid())
throw RuntimeException();
if(!pxXStyleFamilies)
@@ -1347,7 +1347,7 @@ Reference< XNameAccess > SwXTextDocument::getStyleFamilies(void) throw( Runtime
uno::Reference< style::XAutoStyles > SwXTextDocument::getAutoStyles( )
throw (uno::RuntimeException)
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
if(!IsValid())
throw RuntimeException();
if(!pxXAutoStyles)
@@ -1361,7 +1361,7 @@ uno::Reference< style::XAutoStyles > SwXTextDocument::getAutoStyles( )
Reference< drawing::XDrawPage > SwXTextDocument::getDrawPage(void) throw( RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
if(!IsValid())
throw RuntimeException();
if(!pxXDrawPage)
@@ -1630,7 +1630,7 @@ void SwXTextDocument::InitNewDoc()
Reference< XInterface > SwXTextDocument::createInstance(const OUString& rServiceName)
throw( Exception, RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
if(!IsValid())
throw RuntimeException();
Reference< XInterface > xRet;
@@ -1819,7 +1819,7 @@ Sequence< OUString > SwXTextDocument::getSupportedServiceNames(void) throw( Runt
Reference< XIndexAccess > SwXTextDocument::getDocumentIndexes(void) throw( RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
if(!IsValid())
throw RuntimeException();
if(!pxXDocumentIndexes)
@@ -1841,7 +1841,7 @@ void SwXTextDocument::setPropertyValue(const OUString& rPropertyName,
throw( UnknownPropertyException, PropertyVetoException, IllegalArgumentException,
WrappedTargetException, RuntimeException)
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
if(!IsValid())
throw RuntimeException();
const SfxItemPropertySimpleEntry* pEntry = pPropSet->getPropertyMap()->getByName( rPropertyName);
@@ -2017,7 +2017,7 @@ void SwXTextDocument::setPropertyValue(const OUString& rPropertyName,
Any SwXTextDocument::getPropertyValue(const OUString& rPropertyName)
throw( UnknownPropertyException, WrappedTargetException, RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
if(!IsValid())
throw RuntimeException();
const SfxItemPropertySimpleEntry* pEntry = pPropSet->getPropertyMap()->getByName( rPropertyName);
@@ -2225,7 +2225,7 @@ Reference< XEnumerationAccess > SwXTextDocument::getRedlines( ) throw(RuntimeEx
void SwXTextDocument::refresh(void) throw( RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
if(!IsValid())
throw RuntimeException();
SwWrtShell *pWrtShell = pDocShell->GetWrtShell();
@@ -2237,7 +2237,7 @@ void SwXTextDocument::refresh(void) throw( RuntimeException )
void SwXTextDocument::addRefreshListener(const Reference< util::XRefreshListener > & l)
throw( RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
if ( !IsValid() )
throw RuntimeException();
aRefreshCont.AddListener ( reinterpret_cast < const Reference < lang::XEventListener > &> ( l ));
@@ -2246,14 +2246,14 @@ void SwXTextDocument::addRefreshListener(const Reference< util::XRefreshListener
void SwXTextDocument::removeRefreshListener(const Reference< util::XRefreshListener > & l)
throw( RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
if ( !IsValid() || !aRefreshCont.RemoveListener ( reinterpret_cast < const Reference < lang::XEventListener > &> ( l ) ) )
throw RuntimeException();
}
void SwXTextDocument::updateLinks( ) throw(RuntimeException)
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
if(!IsValid())
throw RuntimeException();
SwDoc* pDoc = pDocShell->GetDoc();
@@ -2269,7 +2269,7 @@ void SwXTextDocument::updateLinks( ) throw(RuntimeException)
PropertyState SAL_CALL SwXTextDocument::getPropertyState( const OUString& rPropertyName )
throw (UnknownPropertyException, RuntimeException)
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
PropertyState eRet = PropertyState_DIRECT_VALUE;
if(!IsValid())
throw RuntimeException();
@@ -2302,7 +2302,7 @@ Sequence< PropertyState > SAL_CALL SwXTextDocument::getPropertyStates( const Seq
void SAL_CALL SwXTextDocument::setPropertyToDefault( const OUString& rPropertyName )
throw (UnknownPropertyException, RuntimeException)
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
if(!IsValid())
throw RuntimeException();
const SfxItemPropertySimpleEntry* pEntry = pPropSet->getPropertyMap()->getByName( rPropertyName);
@@ -2317,7 +2317,7 @@ void SAL_CALL SwXTextDocument::setPropertyToDefault( const OUString& rPropertyNa
Any SAL_CALL SwXTextDocument::getPropertyDefault( const OUString& rPropertyName )
throw (UnknownPropertyException, WrappedTargetException, RuntimeException)
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
if(!IsValid())
throw RuntimeException();
const SfxItemPropertySimpleEntry* pEntry = pPropSet->getPropertyMap()->getByName( rPropertyName);
@@ -2494,7 +2494,7 @@ sal_Int32 SAL_CALL SwXTextDocument::getRendererCount(
const uno::Sequence< beans::PropertyValue >& rxOptions )
throw (IllegalArgumentException, RuntimeException)
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
if(!IsValid())
throw RuntimeException();
@@ -2645,7 +2645,7 @@ uno::Sequence< beans::PropertyValue > SAL_CALL SwXTextDocument::getRenderer(
const uno::Sequence< beans::PropertyValue >& rxOptions )
throw (IllegalArgumentException, RuntimeException)
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
if(!IsValid())
throw RuntimeException();
@@ -2830,7 +2830,7 @@ void SAL_CALL SwXTextDocument::render(
const uno::Sequence< beans::PropertyValue >& rxOptions )
throw (IllegalArgumentException, RuntimeException)
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
if(!IsValid())
throw RuntimeException();
@@ -2996,7 +2996,7 @@ uno::Reference< text::XFlatParagraphIterator > SAL_CALL SwXTextDocument::getFlat
uno::Reference< util::XCloneable > SwXTextDocument::createClone( ) throw (uno::RuntimeException)
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
if(!IsValid())
throw RuntimeException();
//create a new document - hidden - copy the storage and return it
@@ -3028,7 +3028,7 @@ uno::Sequence< lang::Locale > SAL_CALL SwXTextDocument::getDocumentLanguages(
::sal_Int16 nMaxCount )
throw (lang::IllegalArgumentException, uno::RuntimeException)
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
// possible canonical values for nScriptTypes
diff --git a/sw/source/ui/uno/unotxvw.cxx b/sw/source/ui/uno/unotxvw.cxx
index 199d2d2cbd99..2a75f93200d9 100644
--- a/sw/source/ui/uno/unotxvw.cxx
+++ b/sw/source/ui/uno/unotxvw.cxx
@@ -188,7 +188,7 @@ Sequence< uno::Type > SAL_CALL SwXTextView::getTypes( ) throw(uno::RuntimeExcep
Sequence< sal_Int8 > SAL_CALL SwXTextView::getImplementationId( ) throw(uno::RuntimeException)
{
- vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
static Sequence< sal_Int8 > aId( 16 );
static sal_Bool bInit = sal_False;
if(!bInit)
@@ -265,7 +265,7 @@ uno::Any SAL_CALL SwXTextView::queryInterface( const uno::Type& aType )
sal_Bool SwXTextView::select(const uno::Any& aInterface) throw( lang::IllegalArgumentException, uno::RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
uno::Reference< uno::XInterface > xInterface;
if(GetView() && (aInterface >>= xInterface))
{
@@ -510,7 +510,7 @@ sal_Bool SwXTextView::select(const uno::Any& aInterface) throw( lang::IllegalArg
uno::Any SwXTextView::getSelection(void) throw( uno::RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
uno::Reference< uno::XInterface > aRef;
if(GetView())
{
@@ -616,7 +616,7 @@ void SwXTextView::addSelectionChangeListener(
const uno::Reference< view::XSelectionChangeListener > & rxListener)
throw( uno::RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
uno::Reference< view::XSelectionChangeListener > * pInsert = new uno::Reference< view::XSelectionChangeListener > ;
*pInsert = rxListener;
aSelChangedListeners.Insert(pInsert, aSelChangedListeners.Count());
@@ -626,7 +626,7 @@ void SwXTextView::removeSelectionChangeListener(
const uno::Reference< view::XSelectionChangeListener > & rxListener)
throw( uno::RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
view::XSelectionChangeListener* pLeft = rxListener.get();
for(sal_uInt16 i = 0; i < aSelChangedListeners.Count(); i++)
{
@@ -661,7 +661,7 @@ SdrObject* SwXTextView::GetControl(
uno::Reference< awt::XControl > SwXTextView::getControl(const uno::Reference< awt::XControlModel > & xModel)
throw( container::NoSuchElementException, uno::RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
uno::Reference< awt::XControl > xRet;
GetControl(xModel, xRet);
return xRet;
@@ -669,7 +669,7 @@ uno::Reference< awt::XControl > SwXTextView::getControl(const uno::Reference< a
uno::Reference< form::runtime::XFormController > SAL_CALL SwXTextView::getFormController( const uno::Reference< form::XForm >& _Form ) throw (RuntimeException)
{
- ::vos::OGuard aGuard( Application::GetSolarMutex() );
+ SolarMutexGuard aGuard;
SwView* pView2 = GetView();
FmFormShell* pFormShell = pView2 ? pView2->GetFormShell() : NULL;
@@ -685,7 +685,7 @@ uno::Reference< form::runtime::XFormController > SAL_CALL SwXTextView::getFormCo
::sal_Bool SAL_CALL SwXTextView::isFormDesignMode( ) throw (uno::RuntimeException)
{
- ::vos::OGuard aGuard( Application::GetSolarMutex() );
+ SolarMutexGuard aGuard;
SwView* pView2 = GetView();
FmFormShell* pFormShell = pView2 ? pView2->GetFormShell() : NULL;
return pFormShell ? pFormShell->IsDesignMode() : sal_True;
@@ -693,7 +693,7 @@ uno::Reference< form::runtime::XFormController > SAL_CALL SwXTextView::getFormCo
void SAL_CALL SwXTextView::setFormDesignMode( ::sal_Bool _DesignMode ) throw (RuntimeException)
{
- ::vos::OGuard aGuard( Application::GetSolarMutex() );
+ SolarMutexGuard aGuard;
SwView* pView2 = GetView();
FmFormShell* pFormShell = pView2 ? pView2->GetFormShell() : NULL;
if ( pFormShell )
@@ -702,7 +702,7 @@ void SAL_CALL SwXTextView::setFormDesignMode( ::sal_Bool _DesignMode ) throw (Ru
uno::Reference< text::XTextViewCursor > SwXTextView::getViewCursor(void) throw( uno::RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
if(GetView())
{
if(!pxTextViewCursor)
@@ -718,7 +718,7 @@ uno::Reference< text::XTextViewCursor > SwXTextView::getViewCursor(void) throw(
uno::Reference< beans::XPropertySet > SwXTextView::getViewSettings(void) throw( uno::RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
if(m_pView)
{
if(!pxViewSettings)
@@ -734,7 +734,7 @@ uno::Reference< beans::XPropertySet > SwXTextView::getViewSettings(void) throw(
Sequence< Sequence< PropertyValue > > SwXTextView::getRubyList( sal_Bool /*bAutomatic*/ ) throw(RuntimeException)
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
if(!GetView())
throw RuntimeException();
@@ -782,7 +782,7 @@ void SAL_CALL SwXTextView::setRubyList(
const Sequence< Sequence< PropertyValue > >& rRubyList, sal_Bool /*bAutomatic*/ )
throw(RuntimeException)
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
if(!GetView() || !rRubyList.getLength())
throw RuntimeException();
@@ -925,7 +925,7 @@ void SwXTextView::NotifyDBChanged()
uno::Reference< beans::XPropertySetInfo > SAL_CALL SwXTextView::getPropertySetInfo( )
throw (uno::RuntimeException)
{
- vos::OGuard aGuard( Application::GetSolarMutex() );
+ SolarMutexGuard aGuard;
static uno::Reference< XPropertySetInfo > aRef = m_pPropSet->getPropertySetInfo();
return aRef;
}
@@ -934,7 +934,7 @@ void SAL_CALL SwXTextView::setPropertyValue(
const OUString& rPropertyName, const uno::Any& rValue )
throw (beans::UnknownPropertyException, beans::PropertyVetoException, lang::IllegalArgumentException, lang::WrappedTargetException, uno::RuntimeException)
{
- vos::OGuard aGuard( Application::GetSolarMutex() );
+ SolarMutexGuard aGuard;
const SfxItemPropertySimpleEntry* pEntry = m_pPropSet->getPropertyMap()->getByName( rPropertyName );
if (!pEntry)
throw UnknownPropertyException();
@@ -969,7 +969,7 @@ uno::Any SAL_CALL SwXTextView::getPropertyValue(
const OUString& rPropertyName )
throw (beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException)
{
- vos::OGuard aGuard( Application::GetSolarMutex() );
+ SolarMutexGuard aGuard;
Any aRet;
@@ -1109,20 +1109,20 @@ sal_Bool SwXTextViewCursor::IsTextSelection( sal_Bool bAllowTables ) const
sal_Bool SwXTextViewCursor::isVisible(void) throw( uno::RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
OSL_ENSURE(false, "not implemented");
return sal_True;
}
void SwXTextViewCursor::setVisible(sal_Bool /*bVisible*/) throw( uno::RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
OSL_ENSURE(false, "not implemented");
}
awt::Point SwXTextViewCursor::getPosition(void) throw( uno::RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
awt::Point aRet;
if(m_pView)
{
@@ -1146,7 +1146,7 @@ awt::Point SwXTextViewCursor::getPosition(void) throw( uno::RuntimeException )
void SwXTextViewCursor::collapseToStart(void) throw( uno::RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
if(m_pView)
{
if (!IsTextSelection())
@@ -1169,7 +1169,7 @@ void SwXTextViewCursor::collapseToStart(void) throw( uno::RuntimeException )
void SwXTextViewCursor::collapseToEnd(void) throw( uno::RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
if(m_pView)
{
if (!IsTextSelection())
@@ -1192,7 +1192,7 @@ void SwXTextViewCursor::collapseToEnd(void) throw( uno::RuntimeException )
sal_Bool SwXTextViewCursor::isCollapsed(void) throw( uno::RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
sal_Bool bRet = sal_False;
if(m_pView)
{
@@ -1210,7 +1210,7 @@ sal_Bool SwXTextViewCursor::isCollapsed(void) throw( uno::RuntimeException )
sal_Bool SwXTextViewCursor::goLeft(sal_Int16 nCount, sal_Bool bExpand) throw( uno::RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
sal_Bool bRet = sal_False;
if(m_pView)
{
@@ -1227,7 +1227,7 @@ sal_Bool SwXTextViewCursor::goLeft(sal_Int16 nCount, sal_Bool bExpand) throw( un
sal_Bool SwXTextViewCursor::goRight(sal_Int16 nCount, sal_Bool bExpand) throw( uno::RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
sal_Bool bRet = sal_False;
if(m_pView)
{
@@ -1248,7 +1248,7 @@ void SwXTextViewCursor::gotoRange(
sal_Bool bExpand)
throw(RuntimeException)
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
if(m_pView && xRange.is())
{
if (!IsTextSelection())
@@ -1387,7 +1387,7 @@ void SwXTextViewCursor::gotoRange(
void SwXTextViewCursor::gotoStart(sal_Bool bExpand) throw( uno::RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
if(m_pView)
{
if (!IsTextSelection())
@@ -1401,7 +1401,7 @@ void SwXTextViewCursor::gotoStart(sal_Bool bExpand) throw( uno::RuntimeException
void SwXTextViewCursor::gotoEnd(sal_Bool bExpand) throw( uno::RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
if(m_pView)
{
if (!IsTextSelection())
@@ -1415,7 +1415,7 @@ void SwXTextViewCursor::gotoEnd(sal_Bool bExpand) throw( uno::RuntimeException )
sal_Bool SwXTextViewCursor::jumpToFirstPage(void) throw( uno::RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
sal_Bool bRet = sal_False;
if(m_pView)
{
@@ -1435,7 +1435,7 @@ sal_Bool SwXTextViewCursor::jumpToFirstPage(void) throw( uno::RuntimeException )
sal_Bool SwXTextViewCursor::jumpToLastPage(void) throw( uno::RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
sal_Bool bRet = sal_False;
if(m_pView)
{
@@ -1456,7 +1456,7 @@ sal_Bool SwXTextViewCursor::jumpToLastPage(void) throw( uno::RuntimeException )
sal_Bool SwXTextViewCursor::jumpToPage(sal_Int16 nPage) throw( uno::RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
sal_Bool bRet = sal_False;
if(m_pView)
bRet = m_pView->GetWrtShell().GotoPage(nPage, TRUE);
@@ -1467,7 +1467,7 @@ sal_Bool SwXTextViewCursor::jumpToPage(sal_Int16 nPage) throw( uno::RuntimeExcep
sal_Bool SwXTextViewCursor::jumpToNextPage(void) throw( uno::RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
sal_Bool bRet = sal_False;
if(m_pView)
bRet = m_pView->GetWrtShell().SttNxtPg();
@@ -1478,7 +1478,7 @@ sal_Bool SwXTextViewCursor::jumpToNextPage(void) throw( uno::RuntimeException )
sal_Bool SwXTextViewCursor::jumpToPreviousPage(void) throw( uno::RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
sal_Bool bRet = sal_False;
if(m_pView)
bRet = m_pView->GetWrtShell().EndPrvPg();
@@ -1489,7 +1489,7 @@ sal_Bool SwXTextViewCursor::jumpToPreviousPage(void) throw( uno::RuntimeExceptio
sal_Bool SwXTextViewCursor::jumpToEndOfPage(void) throw( uno::RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
sal_Bool bRet = sal_False;
if(m_pView)
bRet = m_pView->GetWrtShell().EndPg();
@@ -1500,7 +1500,7 @@ sal_Bool SwXTextViewCursor::jumpToEndOfPage(void) throw( uno::RuntimeException )
sal_Bool SwXTextViewCursor::jumpToStartOfPage(void) throw( uno::RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
sal_Bool bRet = sal_False;
if(m_pView)
bRet = m_pView->GetWrtShell().SttPg();
@@ -1511,7 +1511,7 @@ sal_Bool SwXTextViewCursor::jumpToStartOfPage(void) throw( uno::RuntimeException
sal_Int16 SwXTextViewCursor::getPage(void) throw( uno::RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
short nRet = 0;
if(m_pView)
{
@@ -1526,7 +1526,7 @@ sal_Int16 SwXTextViewCursor::getPage(void) throw( uno::RuntimeException )
sal_Bool SwXTextViewCursor::screenDown(void) throw( uno::RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
sal_Bool bRet = sal_False;
if(m_pView)
{
@@ -1542,7 +1542,7 @@ sal_Bool SwXTextViewCursor::screenDown(void) throw( uno::RuntimeException )
sal_Bool SwXTextViewCursor::screenUp(void) throw( uno::RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
sal_Bool bRet = sal_False;
if(m_pView)
{
@@ -1558,7 +1558,7 @@ sal_Bool SwXTextViewCursor::screenUp(void) throw( uno::RuntimeException )
uno::Reference< text::XText > SwXTextViewCursor::getText(void) throw( uno::RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
uno::Reference< text::XText > xRet;
if(m_pView)
{
@@ -1577,7 +1577,7 @@ uno::Reference< text::XText > SwXTextViewCursor::getText(void) throw( uno::Runt
uno::Reference< text::XTextRange > SwXTextViewCursor::getStart(void) throw( uno::RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
uno::Reference< text::XTextRange > xRet;
if(m_pView)
{
@@ -1596,7 +1596,7 @@ uno::Reference< text::XTextRange > SwXTextViewCursor::getStart(void) throw( uno
uno::Reference< text::XTextRange > SwXTextViewCursor::getEnd(void) throw( uno::RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
uno::Reference< text::XTextRange > xRet;
if(m_pView)
{
@@ -1615,7 +1615,7 @@ uno::Reference< text::XTextRange > SwXTextViewCursor::getEnd(void) throw( uno::
OUString SwXTextViewCursor::getString(void) throw( uno::RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
OUString uRet;
if(m_pView)
{
@@ -1646,7 +1646,7 @@ OUString SwXTextViewCursor::getString(void) throw( uno::RuntimeException )
void SwXTextViewCursor::setString(const OUString& aString) throw( uno::RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
if(m_pView)
{
if (!IsTextSelection( sal_False ))
@@ -1683,7 +1683,7 @@ void SwXTextViewCursor::setPropertyValue( const OUString& rPropertyName, const
throw(UnknownPropertyException, PropertyVetoException,
IllegalArgumentException, WrappedTargetException, RuntimeException)
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
if(m_pView)
{
SwWrtShell& rSh = m_pView->GetWrtShell();
@@ -1704,7 +1704,7 @@ void SwXTextViewCursor::setPropertyValue( const OUString& rPropertyName, const
Any SwXTextViewCursor::getPropertyValue( const OUString& rPropertyName )
throw(UnknownPropertyException, WrappedTargetException, RuntimeException)
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
Any aRet;
if(m_pView)
{
@@ -1744,7 +1744,7 @@ void SwXTextViewCursor::removeVetoableChangeListener(
PropertyState SwXTextViewCursor::getPropertyState( const OUString& rPropertyName )
throw(UnknownPropertyException, RuntimeException)
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
PropertyState eState;
if(m_pView)
{
@@ -1761,7 +1761,7 @@ PropertyState SwXTextViewCursor::getPropertyState( const OUString& rPropertyNam
Sequence< PropertyState > SwXTextViewCursor::getPropertyStates(
const Sequence< OUString >& rPropertyNames ) throw(UnknownPropertyException, RuntimeException)
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
Sequence< PropertyState > aRet;
if(m_pView)
{
@@ -1776,7 +1776,7 @@ Sequence< PropertyState > SwXTextViewCursor::getPropertyStates(
void SwXTextViewCursor::setPropertyToDefault( const OUString& rPropertyName )
throw(UnknownPropertyException, RuntimeException)
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
if(m_pView)
{
SwWrtShell& rSh = m_pView->GetWrtShell();
@@ -1790,7 +1790,7 @@ Any SwXTextViewCursor::getPropertyDefault( const OUString& rPropertyName )
throw(UnknownPropertyException, WrappedTargetException, RuntimeException)
{
Any aRet;
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
if(m_pView)
{
SwWrtShell& rSh = m_pView->GetWrtShell();
@@ -1803,7 +1803,7 @@ Any SwXTextViewCursor::getPropertyDefault( const OUString& rPropertyName )
sal_Bool SwXTextViewCursor::goDown(sal_Int16 nCount, sal_Bool bExpand) throw( uno::RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
sal_Bool bRet = sal_False;
if(m_pView)
{
@@ -1820,7 +1820,7 @@ sal_Bool SwXTextViewCursor::goDown(sal_Int16 nCount, sal_Bool bExpand) throw( un
sal_Bool SwXTextViewCursor::goUp(sal_Int16 nCount, sal_Bool bExpand) throw( uno::RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
sal_Bool bRet = sal_False;
if(m_pView)
{
@@ -1837,7 +1837,7 @@ sal_Bool SwXTextViewCursor::goUp(sal_Int16 nCount, sal_Bool bExpand) throw( uno:
sal_Bool SwXTextViewCursor::isAtStartOfLine(void) throw( uno::RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
sal_Bool bRet = sal_False;
if(m_pView)
{
@@ -1853,7 +1853,7 @@ sal_Bool SwXTextViewCursor::isAtStartOfLine(void) throw( uno::RuntimeException )
sal_Bool SwXTextViewCursor::isAtEndOfLine(void) throw( uno::RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
sal_Bool bRet = sal_False;
if(m_pView)
{
@@ -1869,7 +1869,7 @@ sal_Bool SwXTextViewCursor::isAtEndOfLine(void) throw( uno::RuntimeException )
void SwXTextViewCursor::gotoEndOfLine(sal_Bool bExpand) throw( uno::RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
if(m_pView)
{
if (!IsTextSelection( sal_False ))
@@ -1883,7 +1883,7 @@ void SwXTextViewCursor::gotoEndOfLine(sal_Bool bExpand) throw( uno::RuntimeExcep
void SwXTextViewCursor::gotoStartOfLine(sal_Bool bExpand) throw( uno::RuntimeException )
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
if(m_pView)
{
if (!IsTextSelection( sal_False ))
@@ -1972,7 +1972,7 @@ SwPaM* SwXTextViewCursor::GetPaM()
uno::Reference< datatransfer::XTransferable > SAL_CALL SwXTextView::getTransferable( ) throw (uno::RuntimeException)
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
//force immediat shell update
GetView()->StopShellTimer();
@@ -1996,7 +1996,7 @@ uno::Reference< datatransfer::XTransferable > SAL_CALL SwXTextView::getTransfera
void SAL_CALL SwXTextView::insertTransferable( const uno::Reference< datatransfer::XTransferable >& xTrans ) throw (datatransfer::UnsupportedFlavorException, uno::RuntimeException)
{
- ::vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
//force immediat shell update
GetView()->StopShellTimer();