Lines Matching refs:pMedium
494 pMedium = pMed; in DoInitNew()
495 if ( !pMedium ) in DoInitNew()
498 pMedium = new SfxMedium; in DoInitNew()
501 pMedium->CanDisposeStorage_Impl( sal_True ); in DoInitNew()
540 if ( pMedium && pMedium->HasStorage_Impl() ) in ImportFromGeneratedStream_Impl()
541 pMedium->CloseStorage(); in ImportFromGeneratedStream_Impl()
553 if ( !pMedium ) in ImportFromGeneratedStream_Impl()
554 pMedium = new SfxMedium( xStorage, String() ); in ImportFromGeneratedStream_Impl()
556 pMedium->SetStorage_Impl( xStorage ); in ImportFromGeneratedStream_Impl()
560 pMedium->GetItemSet()->Put( aSet ); in ImportFromGeneratedStream_Impl()
561 pMedium->CanDisposeStorage_Impl( sal_False ); in ImportFromGeneratedStream_Impl()
567 if ( LoadOwnFormat( *pMedium ) ) in ImportFromGeneratedStream_Impl()
579 pMedium->CloseStorage(); in ImportFromGeneratedStream_Impl()
597 pMedium = pMed; in DoLoad()
598 pMedium->CanDisposeStorage_Impl( sal_True ); in DoLoad()
602 SfxItemSet* pSet = pMedium->GetItemSet(); in DoLoad()
617 … SFX_ITEMSET_ARG( pMedium->GetItemSet(), pSalvageItem, SfxStringItem, SID_DOC_SALVAGE, sal_False); in DoLoad()
636 sal_Bool bOwnStorageFormat = IsOwnStorageFormat_Impl( *pMedium ); in DoLoad()
637 sal_Bool bHasStorage = IsPackageStorageFormat_Impl( *pMedium ); in DoLoad()
638 if ( pMedium->GetFilter() ) in DoLoad()
640 sal_uInt32 nError = HandleFilter( pMedium, this ); in DoLoad()
647 pMedium->LockOrigFileOnDemand( sal_True, sal_False ); in DoLoad()
651 if ( pMedium->GetError() == ERRCODE_NONE ) in DoLoad()
652 xStorage = pMedium->GetStorage(); in DoLoad()
654 if( xStorage.is() && pMedium->GetLastStorageCreationState() == ERRCODE_NONE ) in DoLoad()
661 …SFX_ITEMSET_ARG( pMedium->GetItemSet(), pRepairPackageItem, SfxBoolItem, SID_REPAIRPACKAGE, sal_Fa… in DoLoad()
671 …pMedium->GetItemSet()->Put( SfxUInt16Item( SID_MACROEXECMODE, document::MacroExecMode::NEVER_EXECU… in DoLoad()
696 … SFX_ITEMSET_ARG( pMedium->GetItemSet(), pTemplateItem, SfxBoolItem, SID_TEMPLATE, sal_False); in DoLoad()
717 pMedium->GetInStream(); in DoLoad()
719 pMedium->GetStorage(); in DoLoad()
725 …if ( pMedium->GetFilter() && ( pMedium->GetFilter()->GetFilterFlags() & SFX_FILTER_STARONEFILTER )… in DoLoad()
738 bOk = ImportFrom(*pMedium); in DoLoad()
753 bOk = ConvertFrom(*pMedium); in DoLoad()
763 …::ucbhelper::Content aContent( pMedium->GetName(), com::sun::star::uno::Reference < XCommandEnviro… in DoLoad()
805 ( !pMedium->GetFilter() || pMedium->GetFilter()->UsesStorage() ) in DoLoad()
820 … SFX_ITEMSET_ARG( pMedium->GetItemSet(), pAsTempItem, SfxBoolItem, SID_TEMPLATE, sal_False); in DoLoad()
821 … SFX_ITEMSET_ARG( pMedium->GetItemSet(), pPreviewItem, SfxBoolItem, SID_PREVIEW, sal_False); in DoLoad()
822 … SFX_ITEMSET_ARG( pMedium->GetItemSet(), pHiddenItem, SfxBoolItem, SID_HIDDEN, sal_False); in DoLoad()
823 if( bOk && pMedium->GetOrigURL().Len() in DoLoad()
828 INetURLObject aUrl( pMedium->GetOrigURL() ); in DoLoad()
832 const SfxFilter* pOrgFilter = pMedium->GetOrigFilter(); in DoLoad()
840 if ( pMedium->HasStorage_Impl() ) in DoLoad()
842 uno::Reference< XInteractionHandler > xHandler( pMedium->GetInteractionHandler() ); in DoLoad()
845 … uno::Reference<beans::XPropertySet> xStorageProps( pMedium->GetStorage(), uno::UNO_QUERY_THROW ); in DoLoad()
862 ::rtl::OUString sDocumentURL( pMedium->GetOrigURL() ); in DoLoad()
900 sal_uInt32 SfxObjectShell::HandleFilter( SfxMedium* pMedium, SfxObjectShell* pDoc ) in HandleFilter() argument
903 SfxItemSet* pSet = pMedium->GetItemSet(); in HandleFilter()
921 const SfxFilter* pFilter = pMedium->GetFilter(); in HandleFilter()
934 … com::sun::star::uno::Reference< XInteractionHandler > rHandler = pMedium->GetInteractionHandler(); in HandleFilter()
939 aStreamAny <<= pMedium->GetInputStream(); in HandleFilter()
943 … pSet->Put( SfxStringItem( SID_FILE_NAME, pMedium->GetName() ) ); in HandleFilter()
1102 bOk = pMedium->Commit(); in DoSave()
1163 sal_Bool bStorageBasedSource = IsPackageStorageFormat_Impl( *pMedium ); in SaveTo_Impl()
1165 sal_Bool bOwnSource = IsOwnStorageFormat_Impl( *pMedium ); in SaveTo_Impl()
1211 …bTryToPreserveScriptSignature = pMedium->GetFilter() && pFilter && pMedium->GetFilter()->GetFilter… in SaveTo_Impl()
1230 if ( pMedium in SaveTo_Impl()
1231 && pMedium->GetName().CompareIgnoreCaseToAscii( "private:stream", 14 ) != COMPARE_EQUAL in SaveTo_Impl()
1233 && ::utl::UCBContentHelper::EqualURLs( pMedium->GetName(), rMedium.GetName() ) ) in SaveTo_Impl()
1238 if ( pMedium->DocNeedsFileDateCheck() ) in SaveTo_Impl()
1239 rMedium.CheckFileDate( pMedium->GetInitFileDate( sal_False ) ); in SaveTo_Impl()
1284 *pMedium, rMedium ); in SaveTo_Impl()
1286 || ConnectTmpStorage_Impl( pMedium->GetStorage(), pMedium ) ) in SaveTo_Impl()
1288 pMedium->CloseAndRelease(); in SaveTo_Impl()
1306 pMedium->CloseAndRelease(); in SaveTo_Impl()
1319 pMedium->CloseAndRelease(); in SaveTo_Impl()
1332 *pMedium, rMedium ); in SaveTo_Impl()
1334 || ConnectTmpStorage_Impl( pMedium->GetStorage(), pMedium ) ) in SaveTo_Impl()
1336 pMedium->CloseAndRelease(); in SaveTo_Impl()
1361 if( rMedium.GetErrorCode() || pMedium->GetErrorCode() || GetErrorCode() ) in SaveTo_Impl()
1404 if( rMedium.GetErrorCode() || pMedium->GetErrorCode() || GetErrorCode() ) in SaveTo_Impl()
1641 pMedium->Close(); in SaveTo_Impl()
1648 … uno::Reference< embed::XStorage > xReadOrig = pMedium->GetZipStorageToSign_Impl(); in SaveTo_Impl()
1700 pMedium->Close(); in SaveTo_Impl()
1727 else if ( pMedium->GetName().Len() in SaveTo_Impl()
1728 || ( pMedium->HasStorage_Impl() && pMedium->WillDisposeStorageOnClose_Impl() ) ) in SaveTo_Impl()
1730 …OSL_ENSURE( pMedium->GetName().Len(), "Fallback is used, the medium without name should not dispos… in SaveTo_Impl()
1732 if( !ConnectTmpStorage_Impl( pMedium->GetStorage(), pMedium ) ) in SaveTo_Impl()
2049 rMedium.TransferVersionList_Impl( *pMedium ); in DoSaveAs()
2064 sal_Bool bMedChanged = pNewMed && pNewMed!=pMedium; in DoSaveCompleted()
2073 SfxMedium* pOld = pMedium; in DoSaveCompleted()
2076 pMedium = pNewMed; in DoSaveCompleted()
2077 pMedium->CanDisposeStorage_Impl( sal_True ); in DoSaveCompleted()
2080 const SfxFilter *pFilter = pMedium ? pMedium->GetFilter() : 0; in DoSaveCompleted()
2093 if ( !pFilter || IsPackageStorageFormat_Impl( *pMedium ) ) in DoSaveCompleted()
2099 xStorage = pMedium->GetStorage(); in DoSaveCompleted()
2117 if( pMedium->GetOpenMode() & STREAM_WRITE ) in DoSaveCompleted()
2118 pMedium->GetInStream(); in DoSaveCompleted()
2144 if( pMedium ) in DoSaveCompleted()
2146 …if( pFilter && !IsPackageStorageFormat_Impl( *pMedium ) && (pMedium->GetOpenMode() & STREAM_WRITE … in DoSaveCompleted()
2148 pMedium->ReOpen(); in DoSaveCompleted()
2202 pMedium->ClearBackup_Impl(); in DoSaveCompleted()
2203 pMedium->LockOrigFileOnDemand( sal_True, sal_False ); in DoSaveCompleted()
2817 if ( pMedium->TryDirectTransfer( aURL.GetMainURL( INetURLObject::NO_DECODE ), *aParams ) ) in CommonSaveAs_Impl()
2844 aTempFileURL = pMedium->GetURLObject().GetMainURL( INetURLObject::NO_DECODE ); in CommonSaveAs_Impl()
2921 SfxAllItemSet* pMergedParams = new SfxAllItemSet( *pMedium->GetItemSet() ); in PreDoSaveAs_Impl()
2984 pNewFile->TransferVersionList_Impl( *pMedium ); in PreDoSaveAs_Impl()
3027 bRet = DoSaveCompleted( pMedium ); in PreDoSaveAs_Impl()
3100 return pMedium && HasName() && !IsInModalMode() && !pImp->bForbidReload; in CanReload_Impl()
3224 … if ( pPasswdItem || ERRCODE_IO_ABORT != CheckPasswd_Impl( this, SFX_APP()->GetPool(), pMedium ) ) in LoadOwnFormat()
3227 if ( GetEncryptionData_Impl(pMedium->GetItemSet(), aEncryptionData) ) in LoadOwnFormat()