Lines Matching refs:rMedium
145 Reader* SwDocShell::StartConvertFrom(SfxMedium& rMedium, SwReader** ppRdr, in StartConvertFrom() argument
152 if( 0 != ( pMedSet = rMedium.GetItemSet() ) && SFX_ITEM_SET == in StartConvertFrom()
156 const SfxFilter* pFlt = rMedium.GetFilter(); in StartConvertFrom()
165 String aFileName( rMedium.GetName() ); in StartConvertFrom()
170 if( rMedium.IsStorage() in StartConvertFrom()
174 *ppRdr = pPaM ? new SwReader( rMedium, aFileName, *pPaM ) : in StartConvertFrom()
176 new SwReader( rMedium, aFileName, *pCrsrShell->GetCrsr() ) in StartConvertFrom()
177 : new SwReader( rMedium, aFileName, mpDoc ); in StartConvertFrom()
195 const SfxItemSet* pSet = rMedium.GetItemSet(); in StartConvertFrom()
210 …SFX_ITEMSET_ARG( rMedium.GetItemSet(), pUpdateDocItem, SfxUInt16Item, SID_UPDATEDOCMODE, sal_False… in StartConvertFrom()
216 if( pRead == ReadAscii && 0 != rMedium.GetInStream() && in StartConvertFrom()
222 if( 0 != ( pSet = rMedium.GetItemSet() ) && SFX_ITEM_SET == in StartConvertFrom()
237 sal_Bool SwDocShell::ConvertFrom( SfxMedium& rMedium ) in ConvertFrom() argument
242 SwRead pRead = StartConvertFrom(rMedium, &pRdr); in ConvertFrom()
259 String aFileName( rMedium.GetName() ); in ConvertFrom()
412 sal_Bool SwDocShell::SaveAs( SfxMedium& rMedium ) in SaveAs() argument
480 uno::Reference < embed::XStorage > xStor = rMedium.GetOutputStorage(); in SaveAs()
481 if( SfxObjectShell::SaveAs( rMedium ) ) in SaveAs()
527 ::GetXMLWriter( aEmptyStr, rMedium.GetBaseURL( true ), xWrt ); in SaveAs()
536 SwWriter aWrt( rMedium, *mpDoc ); in SaveAs()
567 sal_Bool SwDocShell::ConvertTo( SfxMedium& rMedium ) in ConvertTo() argument
570 const SfxFilter* pFlt = rMedium.GetFilter(); in ConvertTo()
575 SwReaderWriter::GetWriter( pFlt->GetUserData(), rMedium.GetBaseURL( true ), xWriter ); in ConvertTo()
604 SvStorageRef xStg = new SotStorage( rMedium.GetOutStream(), sal_False ); in ConvertTo()
701 if ( rMedium.IsStorage() ) in ConvertTo()
708 uno::Reference < beans::XPropertySet > xSet( rMedium.GetStorage(), uno::UNO_QUERY ); in ConvertTo()
718 sal_Bool bRet = SaveAs( rMedium ); in ConvertTo()
737 if( 0 != ( pSet = rMedium.GetItemSet() ) ) in ConvertTo()
755 String aFileName( rMedium.GetName() ); in ConvertTo()
767 SwWriter aWrt( rMedium, *mpWrtShell, sal_True ); in ConvertTo()
786 pSrcView->SaveContentTo(rMedium); in ConvertTo()
791 SwWriter aWrt( rMedium, *mpDoc ); in ConvertTo()
798 if( !rMedium.IsStorage() ) in ConvertTo()
799 rMedium.CloseOutStream(); in ConvertTo()