diff options
author | Noel Grandin <noel@peralex.com> | 2015-01-07 09:28:42 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-01-07 11:20:44 +0200 |
commit | 7f8f277b94704a289fbbd1b836e4e5d66311580d (patch) | |
tree | 2400b7306a0a2a3ea63aee2e5bfc336b52102635 /sfx2/source/doc/docfile.cxx | |
parent | remove unused FEATUREFLAG_ #defines (diff) | |
download | core-7f8f277b94704a289fbbd1b836e4e5d66311580d.tar.gz core-7f8f277b94704a289fbbd1b836e4e5d66311580d.zip |
fdo#84938: convert STREAM_ #defines to 'enum class'
Change-Id: Ibbf14c7e9a5c1883c1311d4c86f948f74f8e473e
Diffstat (limited to 'sfx2/source/doc/docfile.cxx')
-rw-r--r-- | sfx2/source/doc/docfile.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sfx2/source/doc/docfile.cxx b/sfx2/source/doc/docfile.cxx index 6fcd374c269d..8422c5eca23a 100644 --- a/sfx2/source/doc/docfile.cxx +++ b/sfx2/source/doc/docfile.cxx @@ -488,7 +488,7 @@ SvStream* SfxMedium::GetInStream() pImp->m_eError = pImp->m_pInStream->GetError(); - if (!pImp->m_eError && (pImp->m_nStorOpenMode & STREAM_WRITE) + if (!pImp->m_eError && (pImp->m_nStorOpenMode & StreamMode::WRITE) && ! pImp->m_pInStream->IsWritable() ) { pImp->m_eError = ERRCODE_IO_ACCESSDENIED; @@ -667,7 +667,7 @@ bool SfxMedium::Commit() GetInitFileDate( true ); // remove truncation mode from the flags - pImp->m_nStorOpenMode &= (~STREAM_TRUNC); + pImp->m_nStorOpenMode &= (~StreamMode::TRUNC); return bResult; } @@ -2269,7 +2269,7 @@ void SfxMedium::GetMedium_Impl() if ( !bFromTempFile ) { GetItemSet()->Put( SfxStringItem( SID_FILE_NAME, aFileName ) ); - if( !(pImp->m_nStorOpenMode & STREAM_WRITE) ) + if( !(pImp->m_nStorOpenMode & StreamMode::WRITE) ) GetItemSet()->Put( SfxBoolItem( SID_DOC_READONLY, true ) ); if (xInteractionHandler.is()) GetItemSet()->Put( SfxUnoAnyItem( SID_INTERACTIONHANDLER, makeAny(xInteractionHandler) ) ); @@ -2696,7 +2696,7 @@ void SfxMedium::SetIsRemote_Impl() // As files that are written to the remote transmission must also be able // to be read. if (pImp->m_bRemote) - pImp->m_nStorOpenMode |= STREAM_READ; + pImp->m_nStorOpenMode |= StreamMode::READ; } @@ -3180,7 +3180,7 @@ bool SfxMedium::IsReadOnly() const // b) if filter allow read/write contents .. check open mode of the storage if (!bReadOnly) - bReadOnly = !( GetOpenMode() & STREAM_WRITE ); + bReadOnly = !( GetOpenMode() & StreamMode::WRITE ); // c) the API can force the readonly state! if (!bReadOnly) @@ -3250,7 +3250,7 @@ void SfxMedium::CreateTempFile( bool bReplace ) return; } - if ( !(pImp->m_nStorOpenMode & STREAM_TRUNC) ) + if ( !(pImp->m_nStorOpenMode & StreamMode::TRUNC) ) { bool bTransferSuccess = false; |