Kaydet (Commit) ff2df7b7 authored tarafından Michael Stahl's avatar Michael Stahl

SwXTextDocument: add some SolarMutexGuards

üst 34477183
...@@ -569,6 +569,7 @@ void SwXTextDocument::dispose(void) throw( RuntimeException ) ...@@ -569,6 +569,7 @@ void SwXTextDocument::dispose(void) throw( RuntimeException )
void SwXTextDocument::close( sal_Bool bDeliverOwnership ) throw( util::CloseVetoException, RuntimeException ) void SwXTextDocument::close( sal_Bool bDeliverOwnership ) throw( util::CloseVetoException, RuntimeException )
{ {
SolarMutexGuard aGuard;
if(IsValid() && m_pHiddenViewFrame) if(IsValid() && m_pHiddenViewFrame)
lcl_DisposeView( m_pHiddenViewFrame, pDocShell); lcl_DisposeView( m_pHiddenViewFrame, pDocShell);
SfxBaseModel::close(bDeliverOwnership); SfxBaseModel::close(bDeliverOwnership);
...@@ -3023,6 +3024,7 @@ void SAL_CALL SwXTextDocument::render( ...@@ -3023,6 +3024,7 @@ void SAL_CALL SwXTextDocument::render(
Reference<XNameContainer> SAL_CALL SwXTextDocument::getXForms() Reference<XNameContainer> SAL_CALL SwXTextDocument::getXForms()
throw( RuntimeException ) throw( RuntimeException )
{ {
SolarMutexGuard aGuard;
if ( !pDocShell ) if ( !pDocShell )
throw DisposedException( ::rtl::OUString(), static_cast< XTextDocument* >( this ) ); throw DisposedException( ::rtl::OUString(), static_cast< XTextDocument* >( this ) );
SwDoc* pDoc = pDocShell->GetDoc(); SwDoc* pDoc = pDocShell->GetDoc();
...@@ -3032,6 +3034,7 @@ Reference<XNameContainer> SAL_CALL SwXTextDocument::getXForms() ...@@ -3032,6 +3034,7 @@ Reference<XNameContainer> SAL_CALL SwXTextDocument::getXForms()
uno::Reference< text::XFlatParagraphIterator > SAL_CALL SwXTextDocument::getFlatParagraphIterator(::sal_Int32 nTextMarkupType, sal_Bool bAutomatic) uno::Reference< text::XFlatParagraphIterator > SAL_CALL SwXTextDocument::getFlatParagraphIterator(::sal_Int32 nTextMarkupType, sal_Bool bAutomatic)
throw ( uno::RuntimeException ) throw ( uno::RuntimeException )
{ {
SolarMutexGuard aGuard;
return new SwXFlatParagraphIterator( *pDocShell->GetDoc(), nTextMarkupType, bAutomatic ); return new SwXFlatParagraphIterator( *pDocShell->GetDoc(), nTextMarkupType, bAutomatic );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment