diff options
author | Mathias Bauer <mba@openoffice.org> | 2000-10-16 13:11:51 +0000 |
---|---|---|
committer | Mathias Bauer <mba@openoffice.org> | 2000-10-16 13:11:51 +0000 |
commit | 15f1f69cab1e681cd5c355cf5fa9ae7decb7ea29 (patch) | |
tree | 15c2f9b6429a902c46ba2cc6683e3bda79c83138 | |
parent | 2d5cfe4f0646cb77253ccf754d5098791b4ff7fd (diff) |
IsStorageFile without downloading whole file
-rw-r--r-- | sfx2/source/doc/docfile.cxx | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/sfx2/source/doc/docfile.cxx b/sfx2/source/doc/docfile.cxx index 77b97503fe31..c71e83330924 100644 --- a/sfx2/source/doc/docfile.cxx +++ b/sfx2/source/doc/docfile.cxx @@ -2,9 +2,9 @@ * * $RCSfile: docfile.cxx,v $ * - * $Revision: 1.10 $ + * $Revision: 1.11 $ * - * last change: $Author: mba $ $Date: 2000-10-12 16:34:13 $ + * last change: $Author: mba $ $Date: 2000-10-16 14:11:51 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -857,19 +857,10 @@ sal_Bool SfxMedium::Commit() } //------------------------------------------------------------------ -#if SUPD<608 -sal_Bool SfxMedium::IsStorage() const +sal_Bool SfxMedium::IsStorage() { -/* - if( !aStorage.Is() && !pInStream ) - { - (const_cast< SfxMedium* > (this))->GetStorage(); - (const_cast< SfxMedium* > (this))->ResetError(); - } -*/ - return aStorage.Is(); + return aStorage.Is() || SotStorage::IsStorageFile( GetInStream() ); } -#endif //------------------------------------------------------------------ Link SfxMedium::GetDataAvailableLink() const |