diff options
author | Mikhail Voitenko <mav@openoffice.org> | 2002-09-18 11:08:28 +0000 |
---|---|---|
committer | Mikhail Voitenko <mav@openoffice.org> | 2002-09-18 11:08:28 +0000 |
commit | d17a75a07921ef6dec1101ddec888972907f1850 (patch) | |
tree | 8d856b5653002b9647212af7593eb3c220a6fed7 | |
parent | 428582adc34ec005b2351b15815845d2ca62c943 (diff) |
#102676# use forcing for UCBStorages
-rw-r--r-- | sot/source/sdstor/storage.cxx | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/sot/source/sdstor/storage.cxx b/sot/source/sdstor/storage.cxx index b38bfb76fe02..e26a5cdca3bc 100644 --- a/sot/source/sdstor/storage.cxx +++ b/sot/source/sdstor/storage.cxx @@ -2,9 +2,9 @@ * * $RCSfile: storage.cxx,v $ * - * $Revision: 1.33 $ + * $Revision: 1.34 $ * - * last change: $Author: mba $ $Date: 2002-09-12 15:09:06 $ + * last change: $Author: mav $ $Date: 2002-09-18 12:08:28 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -543,6 +543,9 @@ SotStorage::SotStorage( const ::ucb::Content& rContent, const String & rName, St { aName = rName; // Namen merken pOwnStg = new UCBStorage( rContent, aName, nMode, (nStorageMode & STORAGE_TRANSACTED) ? FALSE : TRUE ); + + SetError( pOwnStg->GetError() ); + if ( IsOLEStorage() ) nVersion = SOFFICE_FILEFORMAT_50; @@ -656,8 +659,8 @@ void SotStorage::CreateStorage( BOOL bForceUCBStorage, StreamMode nMode, Storage aName = pOwnStg->GetName(); } - ULONG nErr = pOwnStg->GetError(); - SetError( nErr ); + SetError( pOwnStg->GetError() ); + SignAsRoot( pOwnStg->IsRoot() ); } @@ -697,6 +700,9 @@ SotStorage::SotStorage( BOOL bUCBStorage, SvStream & rStm ) pOwnStg = new UCBStorage( rStm, FALSE ); else pOwnStg = new Storage( rStm, FALSE ); + + SetError( pOwnStg->GetError() ); + if ( IsOLEStorage() ) nVersion = SOFFICE_FILEFORMAT_50; @@ -713,6 +719,9 @@ SotStorage::SotStorage( SvStream & rStm ) pOwnStg = new UCBStorage( rStm, FALSE ); else pOwnStg = new Storage( rStm, FALSE ); + + SetError( pOwnStg->GetError() ); + if ( IsOLEStorage() ) nVersion = SOFFICE_FILEFORMAT_50; @@ -730,9 +739,7 @@ SotStorage::SotStorage( SvStream * pStm, BOOL bDelete ) else pOwnStg = new Storage( *pStm, FALSE ); - ULONG nError = pOwnStg->GetError(); - if ( nError != SVSTREAM_OK ) - SetError( nError ); + SetError( pOwnStg->GetError() ); pStorStm = pStm; bDelStm = bDelete; |