summaryrefslogtreecommitdiff
path: root/sot/source/sdstor/stg.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sot/source/sdstor/stg.cxx')
-rw-r--r--sot/source/sdstor/stg.cxx10
1 files changed, 8 insertions, 2 deletions
diff --git a/sot/source/sdstor/stg.cxx b/sot/source/sdstor/stg.cxx
index 2048f4e14c53..ca0d18d0dcd3 100644
--- a/sot/source/sdstor/stg.cxx
+++ b/sot/source/sdstor/stg.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: stg.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: mm $ $Date: 2000-10-12 16:18:50 $
+ * last change: $Author: mba $ $Date: 2000-10-16 14:08:34 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -332,6 +332,12 @@ BOOL Storage::IsStorageFile( const String & rFileName )
return FALSE;
}
+BOOL Storage::IsStorageFile( SvStream* pStream )
+{
+ StgHeader aHdr;
+ return ( pStream && aHdr.Load( *pStream ) && aHdr.Check() );
+}
+
// Open the storage file. If writing is permitted and the file is not
// a storage file, initialize it.