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 )
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 );
}
......
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