summaryrefslogtreecommitdiff
path: root/sfx2/source/doc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-08-30 16:00:28 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-08-31 10:43:23 +0100
commit8de61c9fb6a4c3be54b51c575fcffcec2067e090 (patch)
treea5e71351f79b88a47ae9400d141a13bcfe906bd9 /sfx2/source/doc
parent5131e0be31afb8d7686483fd5552b10cecd1c5f0 (diff)
grabbag of unused code
Diffstat (limited to 'sfx2/source/doc')
-rw-r--r--sfx2/source/doc/objmisc.cxx47
-rw-r--r--sfx2/source/doc/objxtor.cxx7
2 files changed, 0 insertions, 54 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;
diff --git a/sfx2/source/doc/objxtor.cxx b/sfx2/source/doc/objxtor.cxx
index fd1566b685c0..990eb6ec7e1c 100644
--- a/sfx2/source/doc/objxtor.cxx
+++ b/sfx2/source/doc/objxtor.cxx
@@ -856,13 +856,6 @@ void SfxObjectShell::InitBasicManager_Impl()
//--------------------------------------------------------------------
-sal_uInt16 SfxObjectShell::Count()
-{
- return SFX_APP()->GetObjectShells_Impl().Count();
-}
-
-//--------------------------------------------------------------------
-
sal_Bool SfxObjectShell::DoClose()
{
return Close();