summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2012-01-13 23:54:07 +0100
committerMichael Stahl <mstahl@redhat.com>2012-01-14 21:22:11 +0100
commitff2df7b7b61b557db6540ec7d3b38189677ac7f3 (patch)
treee8c62370bb40964c96ce1d0405c50a21ef468397 /sw
parent3447718347c6ffe4135fb3d3faeff367401e25f4 (diff)
SwXTextDocument: add some SolarMutexGuards
Diffstat (limited to 'sw')
-rw-r--r--sw/source/ui/uno/unotxdoc.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sw/source/ui/uno/unotxdoc.cxx b/sw/source/ui/uno/unotxdoc.cxx
index 77d399dda090..3ca2deeef3c0 100644
--- a/sw/source/ui/uno/unotxdoc.cxx
+++ b/sw/source/ui/uno/unotxdoc.cxx
@@ -569,6 +569,7 @@ void SwXTextDocument::dispose(void) throw( RuntimeException )
void SwXTextDocument::close( sal_Bool bDeliverOwnership ) throw( util::CloseVetoException, RuntimeException )
{
+ SolarMutexGuard aGuard;
if(IsValid() && m_pHiddenViewFrame)
lcl_DisposeView( m_pHiddenViewFrame, pDocShell);
SfxBaseModel::close(bDeliverOwnership);
@@ -3023,6 +3024,7 @@ void SAL_CALL SwXTextDocument::render(
Reference<XNameContainer> SAL_CALL SwXTextDocument::getXForms()
throw( RuntimeException )
{
+ SolarMutexGuard aGuard;
if ( !pDocShell )
throw DisposedException( ::rtl::OUString(), static_cast< XTextDocument* >( this ) );
SwDoc* pDoc = pDocShell->GetDoc();
@@ -3032,6 +3034,7 @@ Reference<XNameContainer> SAL_CALL SwXTextDocument::getXForms()
uno::Reference< text::XFlatParagraphIterator > SAL_CALL SwXTextDocument::getFlatParagraphIterator(::sal_Int32 nTextMarkupType, sal_Bool bAutomatic)
throw ( uno::RuntimeException )
{
+ SolarMutexGuard aGuard;
return new SwXFlatParagraphIterator( *pDocShell->GetDoc(), nTextMarkupType, bAutomatic );
}