diff options
author | Sander Vesik <svesik@openoffice.org> | 2004-04-21 11:12:15 +0000 |
---|---|---|
committer | Sander Vesik <svesik@openoffice.org> | 2004-04-21 11:12:15 +0000 |
commit | b00324a999ffa741efc1a52a27a35f5eacefa65e (patch) | |
tree | 8377ffb8795e1bdac1c774a1cb94d8bc351752ca /svx/source/svxlink | |
parent | 9e9f146f1117ad78043682a65e796044f81772c4 (diff) |
INTEGRATION: CWS loadenv01 (1.10.136); FILE MERGED
2004/03/12 14:46:51 mba 1.10.136.1: #115936#: remove TransferPrio
Diffstat (limited to 'svx/source/svxlink')
-rw-r--r-- | svx/source/svxlink/fileobj.cxx | 24 |
1 files changed, 4 insertions, 20 deletions
diff --git a/svx/source/svxlink/fileobj.cxx b/svx/source/svxlink/fileobj.cxx index 3a3b6dd4ff..13c6084edb 100644 --- a/svx/source/svxlink/fileobj.cxx +++ b/svx/source/svxlink/fileobj.cxx @@ -2,9 +2,9 @@ * * $RCSfile: fileobj.cxx,v $ * - * $Revision: 1.10 $ + * $Revision: 1.11 $ * - * last change: $Author: vg $ $Date: 2004-01-06 15:45:09 $ + * last change: $Author: svesik $ $Date: 2004-04-21 12:12:15 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -155,7 +155,7 @@ struct Impl_DownLoadData SvFileObject::SvFileObject() : nType( FILETYPE_TEXT ), pDownLoadData( 0 ) { - bLoadAgain = bMedUseCache = TRUE; + bLoadAgain = TRUE; bSynchron = bLoadError = bWaitForData = bDataReady = bNativFormat = bClearMedium = bProgress = bStateChangeCalled = bInCallDownLoad = FALSE; } @@ -246,12 +246,7 @@ JP 28.02.96: noch eine Baustelle: // testhalber mal ein LoadFile rufen um das nach- // laden ueberahaupt anzustossen if( !xMed.Is() ) - { LoadFile_Impl(); - if( xMed.Is() ) - // dann mit der hoechsten Prioritaet - xMed->SetTransferPriority( SFX_TFPRIO_VISIBLE_LOWRES_GRAPHIC ); - } if( !bInCallDownLoad ) { @@ -344,9 +339,6 @@ BOOL SvFileObject::Connect( so3::SvBaseLink* pLink ) if( OBJECT_CLIENT_GRF == pLink->GetObjType() ) { - if( !pLink->IsUseCache() ) - bMedUseCache = FALSE; - // Reload-Erkennung ??? SvInPlaceObjectRef aRef( pLink->GetLinkManager()->GetPersist() ); if( aRef.Is() ) @@ -355,9 +347,6 @@ BOOL SvFileObject::Connect( so3::SvBaseLink* pLink ) if( pShell->IsAbortingImport() ) return FALSE; - if( pShell->IsReloading() ) - bMedUseCache = FALSE; - if( pShell->GetMedium() ) sReferer = pShell->GetMedium()->GetName(); } @@ -398,11 +387,8 @@ BOOL SvFileObject::LoadFile_Impl() xMed = new SfxMedium( sFileNm, STREAM_STD_READ, TRUE ); // Keinen Eintrag im Roter Button Menu xMed->SetDontCreateCancellable(); - xMed->SetUsesCache( bMedUseCache ); if( sReferer.Len() ) xMed->SetReferer( sReferer ); - // erstmal mit der niedrigsten Prioritaet - xMed->SetTransferPriority( SFX_TFPRIO_INVISIBLE_HIGHRES_GRAPHIC ); if( !bSynchron ) { @@ -755,7 +741,7 @@ void SvFileObject::CancelTransfers() if( !bDataReady ) { // nicht noch mal aufsetzen - bLoadAgain = bMedUseCache = FALSE; + bLoadAgain = FALSE; bDataReady = bLoadError = bWaitForData = TRUE; SendStateChg_Impl( STATE_LOAD_ABORT ); } @@ -764,8 +750,6 @@ void SvFileObject::CancelTransfers() void SvFileObject::SetTransferPriority( USHORT nPrio ) { - if( xMed.Is() ) - xMed->SetTransferPriority( nPrio ); } |