diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-08-30 16:00:28 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-08-31 10:43:23 +0100 |
commit | 8de61c9fb6a4c3be54b51c575fcffcec2067e090 (patch) | |
tree | a5e71351f79b88a47ae9400d141a13bcfe906bd9 /sfx2/source/doc/objmisc.cxx | |
parent | 5131e0be31afb8d7686483fd5552b10cecd1c5f0 (diff) |
grabbag of unused code
Diffstat (limited to 'sfx2/source/doc/objmisc.cxx')
-rw-r--r-- | sfx2/source/doc/objmisc.cxx | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/sfx2/source/doc/objmisc.cxx b/sfx2/source/doc/objmisc.cxx index c559e61f4254..1594060befbd 100644 --- a/sfx2/source/doc/objmisc.cxx +++ b/sfx2/source/doc/objmisc.cxx @@ -618,48 +618,6 @@ sal_Bool SfxObjectShell::SwitchToShared( sal_Bool bShared, sal_Bool bSave ) //-------------------------------------------------------------------- -void SfxObjectShell::DisconnectFromShared() -{ - if ( IsDocShared() ) - { - if ( pMedium && pMedium->GetStorage().is() ) - { - // set medium to noname - pMedium->SetName( String(), sal_True ); - pMedium->Init_Impl(); - - // drop resource - SetNoName(); - InvalidateName(); - - // untitled document must be based on temporary storage - // the medium should not dispose the storage in this case - if ( pMedium->GetStorage() == GetStorage() ) - ConnectTmpStorage_Impl( pMedium->GetStorage(), pMedium ); - - pMedium->Close(); - FreeSharedFile(); - - SfxMedium* pTmpMedium = pMedium; - ForgetMedium(); - if( !DoSaveCompleted( pTmpMedium ) ) - SetError( ERRCODE_IO_GENERAL, ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( OSL_LOG_PREFIX ) ) ); - else - { - // the medium should not dispose the storage, DoSaveCompleted() has let it to do so - pMedium->CanDisposeStorage_Impl( sal_False ); - } - - pMedium->GetItemSet()->ClearItem( SID_DOC_READONLY ); - pMedium->SetOpenMode( SFX_STREAM_READWRITE, sal_True, sal_True ); - - SetTitle( String() ); - } - } -} - -//-------------------------------------------------------------------- - void SfxObjectShell::FreeSharedFile() { if ( pMedium ) @@ -1680,11 +1638,6 @@ SfxObjectShellFlags SfxObjectShell::GetFlags() const return pImp->eFlags; } -void SfxObjectShell::SetFlags( SfxObjectShellFlags eFlags ) -{ - pImp->eFlags = eFlags; -} - void SfxHeaderAttributes_Impl::SetAttributes() { bAlert = sal_True; |