Lines Matching refs:pStg
267 HRESULT EmbedDocument_Impl::SaveTo_Impl( IStorage* pStg ) in SaveTo_Impl() argument
269 if ( !pStg || pStg == m_pMasterStorage ) in SaveTo_Impl()
276 HRESULT hr = Save( pStg, sal_False ); in SaveTo_Impl()
277 pStg->Commit( STGC_ONLYIFCURRENT ); in SaveTo_Impl()
396 STDMETHODIMP EmbedDocument_Impl::InitNew( IStorage *pStg ) in InitNew() argument
404 hr = pStg->Stat( &aStat, STATFLAG_NONAME ); in InitNew()
410 if ( m_xFactory.is() && pStg ) in InitNew()
437 hr = WriteFmtUserTypeStg( pStg, in InitNew()
443 hr = pStg->CreateStream( reinterpret_cast<LPCWSTR>(aOfficeEmbedStreamName.getStr()), in InitNew()
451 hr = pStg->CreateStream( reinterpret_cast<LPCWSTR>(aExtentStreamName.getStr()), in InitNew()
460 m_pMasterStorage = pStg; in InitNew()
482 STDMETHODIMP EmbedDocument_Impl::Load( IStorage *pStg ) in Load() argument
487 if ( !m_xFactory.is() || !pStg ) in Load()
493 hr = pStg->Stat( &aStat, STATFLAG_NONAME ); in Load()
497 hr = pStg->OpenStream( reinterpret_cast<LPCWSTR>(aOfficeEmbedStreamName.getStr()), in Load()
506 hr = pStg->OpenStream( reinterpret_cast<LPCWSTR>(aExtentStreamName.getStr()), in Load()
560 m_pMasterStorage = pStg; in Load()
579 hr = pStg->DestroyElement( reinterpret_cast<LPCWSTR>(aOfficeEmbedStreamName.getStr()) ); in Load()
580 hr = pStg->DestroyElement( reinterpret_cast<LPCWSTR>(aExtentStreamName.getStr()) ); in Load()