Lines Matching refs:m_pMasterStorage
269 if ( !pStg || pStg == m_pMasterStorage ) in SaveTo_Impl()
460 m_pMasterStorage = pStg; in InitNew()
560 m_pMasterStorage = pStg; in Load()
598 if ( !fSameAsLoad && pStgSave != m_pMasterStorage ) in Save()
600 OSL_ENSURE( m_pMasterStorage, "How could the document be initialized without storage!??\n" ); in Save()
601 HRESULT hr = m_pMasterStorage->CopyTo( NULL, NULL, NULL, pStgSave ); in Save()
673 if ( fSameAsLoad || pStgSave == m_pMasterStorage ) in Save()
702 if ( !m_pMasterStorage && !pStgNew ) in SaveCompleted()
706 m_pMasterStorage = pStgNew; in SaveCompleted()
709 HRESULT hr = m_pMasterStorage->Stat( &aStat, STATFLAG_NONAME ); in SaveCompleted()
713 hr = m_pMasterStorage->OpenStream( reinterpret_cast<LPCWSTR>(aOfficeEmbedStreamName.getStr()), in SaveCompleted()
720 hr = m_pMasterStorage->OpenStream( reinterpret_cast<LPCWSTR>(aExtentStreamName.getStr()), in SaveCompleted()
746 m_pMasterStorage = CComPtr< IStorage >(); in HandsOffStorage()
768 &m_pMasterStorage ); in Load()
770 if ( FAILED( hr ) || !m_pMasterStorage ) return E_FAIL; in Load()
774 hr = WriteFmtUserTypeStg( m_pMasterStorage, in Load()
779 hr = m_pMasterStorage->SetClass( m_guid ); in Load()
782 hr = m_pMasterStorage->CreateStream( reinterpret_cast<LPCWSTR>(aOfficeEmbedStreamName.getStr()), in Load()
789 hr = m_pMasterStorage->CreateStream( reinterpret_cast<LPCWSTR>(aExtentStreamName.getStr()), in Load()
825 hr = WriteFmtUserTypeStg( m_pMasterStorage, in Load()
866 m_pMasterStorage = NULL; in Load()