Lines Matching refs:m
149 sal_Bool OLEStorageBase::ValidateMode_Impl( StreamMode m, StgDirEntry* p ) const in ValidateMode_Impl() argument
151 if( m == INTERNAL_MODE ) in ValidateMode_Impl()
154 if( ( m & 3 ) == STREAM_READ ) in ValidateMode_Impl()
157 if( ( ( m & STREAM_SHARE_DENYWRITE ) in ValidateMode_Impl()
159 || ( ( m & STREAM_SHARE_DENYALL ) in ValidateMode_Impl()
168 if( ( m & STREAM_SHARE_DENYALL ) in ValidateMode_Impl()
180 StorageStream::StorageStream( StgIo* p, StgDirEntry* q, StreamMode m ) in StorageStream() argument
188 q->nMode = m; in StorageStream()
193 m &= ~STREAM_READWRITE; in StorageStream()
194 m_nMode = m; in StorageStream()
381 Storage::Storage( const String& rFile, StreamMode m, sal_Bool bDirect ) in Storage() argument
392 m_nMode = m; in Storage()
393 if( pIo->Open( aName, m ) ) in Storage()
395 Init( sal_Bool( ( m & ( STREAM_TRUNC | STREAM_NOCREATE ) ) == STREAM_TRUNC ) ); in Storage()
399 pEntry->nMode = m; in Storage()
519 Storage::Storage( StgIo* p, StgDirEntry* q, StreamMode m ) in Storage() argument
525 m &= ~STREAM_READWRITE; in Storage()
526 m_nMode = m; in Storage()
528 q->nMode = m; in Storage()
583 BaseStorage* Storage::OpenUCBStorage( const String& rName, StreamMode m, sal_Bool bDirect ) in OpenUCBStorage() argument
591 return OpenStorage( rName, m, bDirect ); in OpenUCBStorage()
594 BaseStorage* Storage::OpenOLEStorage( const String& rName, StreamMode m, sal_Bool bDirect ) in OpenOLEStorage() argument
596 return OpenStorage( rName, m, bDirect ); in OpenOLEStorage()
599 BaseStorage* Storage::OpenStorage( const String& rName, StreamMode m, sal_Bool bDirect ) in OpenStorage() argument
601 if( !Validate() || !ValidateMode( m ) ) in OpenStorage()
602 return new Storage( pIo, NULL, m ); in OpenStorage()
613 if( !( m & STREAM_NOCREATE ) ) in OpenStorage()
629 pIo->SetError( ( m & STREAM_WRITE ) in OpenStorage()
632 else if( !ValidateMode( m, p ) ) in OpenStorage()
645 if( p && (m & STREAM_WRITE )) in OpenStorage()
650 Storage* pStg = new Storage( pIo, p, m ); in OpenStorage()
652 if( m & STREAM_WRITE ) pStg->m_bAutoCommit = sal_True; in OpenStorage()
658 BaseStorageStream* Storage::OpenStream( const String& rName, StreamMode m, sal_Bool, in OpenStream() argument
667 if( !Validate() || !ValidateMode( m ) ) in OpenStream()
668 return new StorageStream( pIo, NULL, m ); in OpenStream()
673 if( !( m & STREAM_NOCREATE ) ) in OpenStream()
687 pIo->SetError( ( m & STREAM_WRITE ) in OpenStream()
690 else if( !ValidateMode( m, p ) ) in OpenStream()
702 StorageStream* pStm = new StorageStream( pIo, p, m ); in OpenStream()