Lines Matching refs:xStorage
290 …g SfxObjectShell::CreateTempCopyOfStorage_Impl( const uno::Reference< embed::XStorage >& xStorage ) in CreateTempCopyOfStorage_Impl() argument
303 xStorage->copyToStorage( xTempStorage ); in CreateTempCopyOfStorage_Impl()
329 void SfxObjectShell::SetupStorage( const uno::Reference< embed::XStorage >& xStorage, in SetupStorage() argument
333 uno::Reference< beans::XPropertySet > xProps( xStorage, uno::UNO_QUERY ); in SetupStorage()
397 … uno::Reference< embed::XEncryptionProtectedStorage > xEncr( xStorage, uno::UNO_QUERY_THROW ); in SetupStorage()
420 sal_Bool SfxObjectShell::GeneralInit_Impl( const uno::Reference< embed::XStorage >& xStorage, in GeneralInit_Impl() argument
427 if ( xStorage.is() ) in GeneralInit_Impl()
430 pImp->m_xDocStorage = xStorage; in GeneralInit_Impl()
433 uno::Reference < beans::XPropertySet > xPropSet( xStorage, uno::UNO_QUERY_THROW ); in GeneralInit_Impl()
444 SetupStorage( xStorage, SOFFICE_FILEFORMAT_CURRENT, sal_False ); in GeneralInit_Impl()
459 sal_Bool SfxObjectShell::InitNew( const uno::Reference< embed::XStorage >& xStorage ) in InitNew() argument
461 return GeneralInit_Impl( xStorage, sal_False ); in InitNew()
547 uno::Reference< embed::XStorage > xStorage = in ImportFromGeneratedStream_Impl() local
550 if ( !xStorage.is() ) in ImportFromGeneratedStream_Impl()
554 pMedium = new SfxMedium( xStorage, String() ); in ImportFromGeneratedStream_Impl()
556 pMedium->SetStorage_Impl( xStorage ); in ImportFromGeneratedStream_Impl()
574 OSL_ENSURE( pImp->m_xDocStorage == xStorage, "Wrong storage is used!\n" ); in ImportFromGeneratedStream_Impl()
650 uno::Reference< embed::XStorage > xStorage; in DoLoad() local
652 xStorage = pMedium->GetStorage(); in DoLoad()
654 if( xStorage.is() && pMedium->GetLastStorageCreationState() == ERRCODE_NONE ) in DoLoad()
664 uno::Reference< beans::XPropertySet > xStorProps( xStorage, uno::UNO_QUERY_THROW ); in DoLoad()
678 if ( bWarnMediaTypeFallback || !xStorage->getElementNames().getLength() ) in DoLoad()
692 bOk = xStorage.is() && LoadOwnFormat( *pMed ); in DoLoad()
1865 uno::Reference< embed::XStorage > xStorage = rSrcMedium.GetStorage(); in DisconnectStorage_Impl() local
1868 if ( xStorage == pImp->m_xDocStorage ) in DisconnectStorage_Impl()
1872 … uno::Reference< embed::XOptimizedStorage > xOptStorage( xStorage, uno::UNO_QUERY_THROW ); in DisconnectStorage_Impl()
1910 const uno::Reference< embed::XStorage >& xStorage, in ConnectTmpStorage_Impl()
1927 if ( xStorage.is() ) in ConnectTmpStorage_Impl()
1932 … uno::Reference< embed::XOptimizedStorage > xOptStorage( xStorage, uno::UNO_QUERY_THROW ); in ConnectTmpStorage_Impl()
1956 xStorage->copyToStorage( xTmpStorage ); in ConnectTmpStorage_Impl()
2092 uno::Reference< embed::XStorage > xStorage; in DoSaveCompleted() local
2099 xStorage = pMedium->GetStorage(); in DoSaveCompleted()
2100 bOk = SaveCompleted( xStorage ); in DoSaveCompleted()
2101 if ( bOk && xStorage.is() && xOld != xStorage in DoSaveCompleted()
2119 xStorage = GetStorage(); in DoSaveCompleted()
2124 pImp->pBasicManager->setStorage( xStorage ); in DoSaveCompleted()
2130 xBasicLibraries->setRootStorage( xStorage ); in DoSaveCompleted()
2137 xDialogLibraries->setRootStorage( xStorage ); in DoSaveCompleted()
3219 uno::Reference< embed::XStorage > xStorage = rMedium.GetStorage(); in LoadOwnFormat() local
3220 if ( xStorage.is() ) in LoadOwnFormat()
3232 … ::comphelper::OStorageHelper::SetCommonStorageEncryptionData( xStorage, aEncryptionData ); in LoadOwnFormat()
3251 uno::Reference< embed::XStorage > xStorage = rMedium.GetStorage(); in SaveAsOwnFormat() local
3252 if( xStorage.is() ) in SaveAsOwnFormat()
3259 SetupStorage( xStorage, nVersion, bTemplate ); in SaveAsOwnFormat()
3267 pImp->pBasicManager->storeLibrariesToStorage( xStorage ); in SaveAsOwnFormat()
3320 uno::Reference < embed::XStorage > xStorage = rMedium.GetStorage(); in SaveAsChildren() local
3321 if ( !xStorage.is() ) in SaveAsChildren()
3324 if ( xStorage == GetStorage() ) in SaveAsChildren()
3330 bOasis = ( SotStorage::GetVersion( xStorage ) > SOFFICE_FILEFORMAT_60 ); in SaveAsChildren()
3331 …EmbeddedObjectContainer().StoreAsChildren(bOasis,SFX_CREATE_MODE_EMBEDDED == eCreateMode,xStorage); in SaveAsChildren()
3335 bResult = CopyStoragesOfUnknownMediaType( GetStorage(), xStorage ); in SaveAsChildren()
3376 …_Bool SfxObjectShell::SwitchChildrenPersistance( const uno::Reference< embed::XStorage >& xStorage, in SwitchChildrenPersistance() argument
3381 if ( !xStorage.is() ) in SwitchChildrenPersistance()
3390 pImp->mpObjectContainer->SetPersistentEntries(xStorage,bForceNonModified); in SwitchChildrenPersistance()
3396 sal_Bool SfxObjectShell::SaveCompleted( const uno::Reference< embed::XStorage >& xStorage ) in SaveCompleted() argument
3409 if ( !xStorage.is() || xStorage == GetStorage() ) in SaveCompleted()
3417 GetEmbeddedObjectContainer().SwitchPersistence( xStorage ); in SaveCompleted()
3419 bResult = SwitchChildrenPersistance( xStorage, sal_True ); in SaveCompleted()
3424 if ( xStorage.is() && pImp->m_xDocStorage != xStorage ) in SaveCompleted()
3429 pImp->m_xDocStorage = xStorage; in SaveCompleted()
3547 sal_Bool SfxObjectShell::SwitchPersistance( const uno::Reference< embed::XStorage >& xStorage ) in SwitchPersistance() argument
3556 if ( xStorage.is() ) in SwitchPersistance()
3559 GetEmbeddedObjectContainer().SwitchPersistence( xStorage ); in SwitchPersistance()
3560 bResult = SwitchChildrenPersistance( xStorage ); in SwitchPersistance()
3563 OSL_ENSURE( StoragesOfUnknownMediaTypeAreCopied_Impl( pImp->m_xDocStorage, xStorage ), in SwitchPersistance()
3571 if ( pImp->m_xDocStorage != xStorage ) in SwitchPersistance()
3572 DoSaveCompleted( new SfxMedium( xStorage, GetMedium()->GetBaseURL() ) ); in SwitchPersistance()