From 4226ab519ceac42c13c9167d77a75c660794c575 Mon Sep 17 00:00:00 2001 From: Mikhail Voitenko Date: Tue, 5 Mar 2002 11:46:59 +0000 Subject: #97932# set the IsRoot property --- sot/source/sdstor/storage.cxx | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/sot/source/sdstor/storage.cxx b/sot/source/sdstor/storage.cxx index 9318ea8e7888..09740b61d976 100644 --- a/sot/source/sdstor/storage.cxx +++ b/sot/source/sdstor/storage.cxx @@ -2,9 +2,9 @@ * * $RCSfile: storage.cxx,v $ * - * $Revision: 1.29 $ + * $Revision: 1.30 $ * - * last change: $Author: mba $ $Date: 2002-02-01 17:10:28 $ + * last change: $Author: mav $ $Date: 2002-03-05 12:46:59 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -536,6 +536,8 @@ SotStorage::SotStorage( const ::ucb::Content& rContent, const String & rName, St pOwnStg = new UCBStorage( rContent, aName, nMode, (nStorageMode & STORAGE_TRANSACTED) ? FALSE : TRUE ); if ( IsOLEStorage() ) nVersion = SOFFICE_FILEFORMAT_50; + + SignAsRoot( pOwnStg->IsRoot() ); } SotStorage::SotStorage( const String & rName, StreamMode nMode, StorageMode nStorageMode ) @@ -647,6 +649,7 @@ void SotStorage::CreateStorage( BOOL bForceUCBStorage, StreamMode nMode, Storage ULONG nErr = pOwnStg->GetError(); SetError( nErr ); + SignAsRoot( pOwnStg->IsRoot() ); } SotStorage::SotStorage( BOOL bUCBStorage, const String & rName, StreamMode nMode, StorageMode nStorageMode ) @@ -687,6 +690,8 @@ SotStorage::SotStorage( BOOL bUCBStorage, SvStream & rStm ) pOwnStg = new Storage( rStm, FALSE ); if ( IsOLEStorage() ) nVersion = SOFFICE_FILEFORMAT_50; + + SignAsRoot( pOwnStg->IsRoot() ); } SotStorage::SotStorage( SvStream & rStm ) @@ -701,6 +706,8 @@ SotStorage::SotStorage( SvStream & rStm ) pOwnStg = new Storage( rStm, FALSE ); if ( IsOLEStorage() ) nVersion = SOFFICE_FILEFORMAT_50; + + SignAsRoot( pOwnStg->IsRoot() ); } SotStorage::SotStorage( SvStream * pStm, BOOL bDelete ) @@ -722,6 +729,8 @@ SotStorage::SotStorage( SvStream * pStm, BOOL bDelete ) bDelStm = bDelete; if ( IsOLEStorage() ) nVersion = SOFFICE_FILEFORMAT_50; + + SignAsRoot( pOwnStg->IsRoot() ); } /************************************************************************* -- cgit v1.2.3