From ff2df7b7b61b557db6540ec7d3b38189677ac7f3 Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Fri, 13 Jan 2012 23:54:07 +0100 Subject: SwXTextDocument: add some SolarMutexGuards --- sw/source/ui/uno/unotxdoc.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sw/source') 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 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 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 ); } -- cgit