Lines Matching refs:rMedium
191 sal_Bool SfxObjectShell::SaveAs( SfxMedium& rMedium ) in SaveAs() argument
193 return SaveAsChildren( rMedium ); in SaveAs()
465 sal_Bool SfxObjectShell::Load( SfxMedium& rMedium ) in Load() argument
467 return GeneralInit_Impl( rMedium.GetStorage(), sal_True ); in Load()
1010 sal_Bool SfxObjectShell::IsOwnStorageFormat_Impl(const SfxMedium &rMedium) const in IsOwnStorageFormat_Impl()
1012 return !rMedium.GetFilter() || // Embedded in IsOwnStorageFormat_Impl()
1013 ( rMedium.GetFilter()->IsOwnFormat() && in IsOwnStorageFormat_Impl()
1014 rMedium.GetFilter()->UsesStorage() && in IsOwnStorageFormat_Impl()
1015 rMedium.GetFilter()->GetVersion() >= SOFFICE_FILEFORMAT_60 ); in IsOwnStorageFormat_Impl()
1020 sal_Bool SfxObjectShell::IsPackageStorageFormat_Impl(const SfxMedium &rMedium) const in IsPackageStorageFormat_Impl()
1022 return !rMedium.GetFilter() || // Embedded in IsPackageStorageFormat_Impl()
1023 ( rMedium.GetFilter()->UsesStorage() && in IsPackageStorageFormat_Impl()
1024 rMedium.GetFilter()->GetVersion() >= SOFFICE_FILEFORMAT_60 ); in IsPackageStorageFormat_Impl()
1127 SfxMedium &rMedium, // Medium, in das gespeichert werden soll in SaveTo_Impl() argument
1145 ByteString aString( rMedium.GetName(), RTL_TEXTENCODING_ASCII_US ); in SaveTo_Impl()
1153 const SfxFilter *pFilter = rMedium.GetFilter(); in SaveTo_Impl()
1160 rMedium.SetFilter(pFilter); in SaveTo_Impl()
1164 sal_Bool bStorageBasedTarget = IsPackageStorageFormat_Impl( rMedium ); in SaveTo_Impl()
1166 sal_Bool bOwnTarget = IsOwnStorageFormat_Impl( rMedium ); in SaveTo_Impl()
1170 if ( bOwnTarget && !QuerySaveSizeExceededModules_Impl( rMedium.GetInteractionHandler() ) ) in SaveTo_Impl()
1221 SfxItemSet *pMedSet = rMedium.GetItemSet(); in SaveTo_Impl()
1232 && rMedium.GetName().CompareIgnoreCaseToAscii( "private:stream", 14 ) != COMPARE_EQUAL in SaveTo_Impl()
1233 && ::utl::UCBContentHelper::EqualURLs( pMedium->GetName(), rMedium.GetName() ) ) in SaveTo_Impl()
1239 rMedium.CheckFileDate( pMedium->GetInitFileDate( sal_False ) ); in SaveTo_Impl()
1254 rMedium.DoBackup_Impl(); in SaveTo_Impl()
1255 if ( rMedium.GetError() ) in SaveTo_Impl()
1257 …SetError( rMedium.GetErrorCode(), ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( OSL_LOG_PREFIX ) )… in SaveTo_Impl()
1258 rMedium.ResetError(); in SaveTo_Impl()
1284 *pMedium, rMedium ); in SaveTo_Impl()
1294 rMedium.CloseAndRelease(); in SaveTo_Impl()
1295 rMedium.GetOutputStorage(); in SaveTo_Impl()
1307 rMedium.CloseAndRelease(); in SaveTo_Impl()
1308 rMedium.CreateTempFileNoCopy(); in SaveTo_Impl()
1309 rMedium.GetOutStream(); in SaveTo_Impl()
1320 rMedium.CloseAndRelease(); in SaveTo_Impl()
1321 rMedium.GetOutputStorage(); in SaveTo_Impl()
1332 *pMedium, rMedium ); in SaveTo_Impl()
1337 rMedium.CloseAndRelease(); in SaveTo_Impl()
1338 rMedium.CreateTempFileNoCopy(); in SaveTo_Impl()
1339 rMedium.GetOutStream(); in SaveTo_Impl()
1353 rMedium.CloseAndRelease(); in SaveTo_Impl()
1356 rMedium.GetOutputStorage(); in SaveTo_Impl()
1361 if( rMedium.GetErrorCode() || pMedium->GetErrorCode() || GetErrorCode() ) in SaveTo_Impl()
1366 rMedium.LockOrigFileOnDemand( sal_False, sal_False ); in SaveTo_Impl()
1370 if ( rMedium.GetErrorCode() ) in SaveTo_Impl()
1376 long nFormat = rMedium.GetFilter()->GetFormat(); in SaveTo_Impl()
1381 if ( pFilt->GetServiceName() != rMedium.GetFilter()->GetServiceName() ) in SaveTo_Impl()
1388 … uno::Reference< beans::XPropertySet > xProps( rMedium.GetStorage(), uno::UNO_QUERY ); in SaveTo_Impl()
1404 if( rMedium.GetErrorCode() || pMedium->GetErrorCode() || GetErrorCode() ) in SaveTo_Impl()
1419 uno::Reference< embed::XStorage > xMedStorage = rMedium.GetStorage(); in SaveTo_Impl()
1432 if ( GetEncryptionData_Impl( rMedium.GetItemSet(), aEncryptionData ) ) in SaveTo_Impl()
1448 pFilter = rMedium.GetFilter(); in SaveTo_Impl()
1469 bOk = SaveAsOwnFormat( rMedium ); in SaveTo_Impl()
1502 Sequence < util::RevisionTag > aVersions = rMedium.GetVersionList(); in SaveTo_Impl()
1566 rMedium.AddVersion_Impl( aInfo ); in SaveTo_Impl()
1567 rMedium.SaveVersionList_Impl( sal_True ); in SaveTo_Impl()
1573 rMedium.SaveVersionList_Impl( sal_True ); in SaveTo_Impl()
1584 … if ( rMedium.GetFilter() && ( rMedium.GetFilter()->GetFilterFlags() & SFX_FILTER_STARONEFILTER ) ) in SaveTo_Impl()
1585 bOk = ExportTo( rMedium ); in SaveTo_Impl()
1587 bOk = ConvertTo( rMedium ); in SaveTo_Impl()
1606 …bTryToPreserveScriptSignature = ( SotStorage::GetVersion( rMedium.GetStorage() ) == SOFFICE_FILEFO… in SaveTo_Impl()
1623 … uno::Reference < beans::XPropertySet > xPropSet( rMedium.GetStorage(), uno::UNO_QUERY_THROW ); in SaveTo_Impl()
1645 rMedium.StorageCommit_Impl(); in SaveTo_Impl()
1646 rMedium.CloseStorage(); in SaveTo_Impl()
1655 … uno::Reference< embed::XStorage > xTarget = rMedium.GetZipStorageToSign_Impl( sal_False ); in SaveTo_Impl()
1680 rMedium.SetCachedSignatureState_Impl( nState ); in SaveTo_Impl()
1701 rMedium.CloseZipStorage_Impl(); in SaveTo_Impl()
1708 RegisterTransfer( rMedium ); in SaveTo_Impl()
1709 bOk = rMedium.Commit(); in SaveTo_Impl()
1758 …::ucbhelper::Content aContent( rMedium.GetName(), com::sun::star::uno::Reference < XCommandEnviron… in SaveTo_Impl()
1809 const ::rtl::OUString aFileURL = rMedium.GetName(); in SaveTo_Impl()
1811 rMedium.Close(); in SaveTo_Impl()
1818 strcpy( docType, CHAR_POINTER( rMedium.GetFilter()->GetServiceName())); in SaveTo_Impl()
1821 printf( "filter name: %s\n", CHAR_POINTER(rMedium.GetFilter()->GetFilterName())); in SaveTo_Impl()
1996 sal_Bool SfxObjectShell::DoSaveObjectAs( SfxMedium& rMedium, sal_Bool bCommit ) in DoSaveObjectAs() argument
2002 uno::Reference < embed::XStorage > xNewStor = rMedium.GetStorage(); in DoSaveObjectAs()
2018 bOk = SaveAsOwnFormat( rMedium ); in DoSaveObjectAs()
2039 sal_Bool SfxObjectShell::DoSaveAs( SfxMedium& rMedium ) in DoSaveAs() argument
2042 rMedium.CreateTempFileNoCopy(); in DoSaveAs()
2043 …SetError(rMedium.GetErrorCode(), ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( OSL_LOG_PREFIX ) ) … in DoSaveAs()
2049 rMedium.TransferVersionList_Impl( *pMedium ); in DoSaveAs()
2051 sal_Bool bRet = SaveTo_Impl( rMedium, NULL ); in DoSaveAs()
2053 …SetError(rMedium.GetErrorCode(), ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( OSL_LOG_PREFIX ) ) … in DoSaveAs()
2267 sal_Bool SfxObjectShell::InsertFrom( SfxMedium& rMedium ) in InsertFrom() argument
2269 ::rtl::OUString aTypeName( rMedium.GetFilter()->GetTypeName() ); in InsertFrom()
2270 ::rtl::OUString aFilterName( rMedium.GetFilter()->GetFilterName() ); in InsertFrom()
2281 rMedium.GetItemSet()->Put( SfxStringItem( SID_FILTER_NAME, aFilterName ) ); in InsertFrom()
2314 rMedium.GetItemSet()->Put( SfxStringItem( SID_FILE_NAME, rMedium.GetName() ) ); in InsertFrom()
2315 TransformItems( SID_OPENDOC, *rMedium.GetItemSet(), lDescriptor ); in InsertFrom()
2340 …:sun::star::io::XInputStream > ( new utl::OSeekableInputStreamWrapper ( *rMedium.GetInStream() ) ); in InsertFrom()
2347 aArgs[nEnd-1].Value <<= rMedium.GetBaseURL(); in InsertFrom()
2362 sal_Bool SfxObjectShell::ImportFrom( SfxMedium& rMedium ) in ImportFrom() argument
2364 ::rtl::OUString aTypeName( rMedium.GetFilter()->GetTypeName() ); in ImportFrom()
2365 ::rtl::OUString aFilterName( rMedium.GetFilter()->GetFilterName() ); in ImportFrom()
2367 BeforeLoading( rMedium, aTypeName, aFilterName ); in ImportFrom()
2377 rMedium.GetItemSet()->Put( SfxStringItem( SID_FILTER_NAME, aFilterName ) ); in ImportFrom()
2410 rMedium.GetItemSet()->Put( SfxStringItem( SID_FILE_NAME, rMedium.GetName() ) ); in ImportFrom()
2411 TransformItems( SID_OPENDOC, *rMedium.GetItemSet(), lDescriptor ); in ImportFrom()
2436 …:sun::star::io::XInputStream > ( new utl::OSeekableInputStreamWrapper ( *rMedium.GetInStream() ) ); in ImportFrom()
2443 aArgs[nEnd-1].Value <<= rMedium.GetBaseURL(); in ImportFrom()
2467 AfterLoading( rMedium, aTypeName, aFilterName ); in ImportFrom()
2478 sal_Bool SfxObjectShell::ExportTo( SfxMedium& rMedium ) in ExportTo() argument
2480 ::rtl::OUString aTypeName( rMedium.GetFilter()->GetTypeName() ); in ExportTo()
2481 ::rtl::OUString aFilterName( rMedium.GetFilter()->GetFilterName() ); in ExportTo()
2524 SfxItemSet* pItems = rMedium.GetItemSet(); in ExportTo()
2544 pNewValue[i].Value <<= OUString ( rMedium.GetName() ); in ExportTo()
2557 …< com::sun::star::io::XOutputStream > ( new utl::OOutputStreamWrapper ( *rMedium.GetOutStream() ) … in ExportTo()
2565 …::Reference < com::sun::star::io::XStream > ( new utl::OStreamWrapper ( *rMedium.GetOutStream() ) … in ExportTo()
2572 aArgs[nEnd-1].Value <<= rMedium.GetBaseURL( sal_True ); in ExportTo()
3210 sal_Bool SfxObjectShell::LoadOwnFormat( SfxMedium& rMedium ) in LoadOwnFormat() argument
3215 ByteString aString( rMedium.GetName(), RTL_TEXTENCODING_ASCII_US ); in LoadOwnFormat()
3219 uno::Reference< embed::XStorage > xStorage = rMedium.GetStorage(); in LoadOwnFormat()
3223 … SFX_ITEMSET_ARG( rMedium.GetItemSet(), pPasswdItem, SfxStringItem, SID_PASSWORD, sal_False ); in LoadOwnFormat()
3241 return Load( rMedium ); in LoadOwnFormat()
3249 sal_Bool SfxObjectShell::SaveAsOwnFormat( SfxMedium& rMedium ) in SaveAsOwnFormat() argument
3251 uno::Reference< embed::XStorage > xStorage = rMedium.GetStorage(); in SaveAsOwnFormat()
3254 sal_Int32 nVersion = rMedium.GetFilter()->GetVersion(); in SaveAsOwnFormat()
3257 …sal_Bool bTemplate = ( rMedium.GetFilter()->IsOwnTemplateFormat() && nVersion > SOFFICE_FILEFORMAT… in SaveAsOwnFormat()
3270 return SaveAs( rMedium ); in SaveAsOwnFormat()
3314 sal_Bool SfxObjectShell::SaveAsChildren( SfxMedium& rMedium ) in SaveAsChildren() argument
3320 uno::Reference < embed::XStorage > xStorage = rMedium.GetStorage(); in SaveAsChildren()