summaryrefslogtreecommitdiff
path: root/sot
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2003-07-22 10:12:58 +0000
committerVladimir Glazounov <vg@openoffice.org>2003-07-22 10:12:58 +0000
commit6f1030e84a293387bc92b020afd326d85423396f (patch)
treef6bf524f8dc587e0b02888b6fbfd8d0d939b3b8d /sot
parentc376ce2b68fb46f22827ffca11e0b618121d9270 (diff)
INTEGRATION: CWS fwkrc32 (1.3.30); FILE MERGED
2003/07/15 16:22:20 mav 1.3.30.1: #i16015# close UCBStorageStream in case Storage based on it is deleted
Diffstat (limited to 'sot')
-rw-r--r--sot/source/sdstor/stgcache.hxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/sot/source/sdstor/stgcache.hxx b/sot/source/sdstor/stgcache.hxx
index 3478c4d92ea2..78ba00838277 100644
--- a/sot/source/sdstor/stgcache.hxx
+++ b/sot/source/sdstor/stgcache.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: stgcache.hxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: hr $ $Date: 2003-03-27 11:47:56 $
+ * last change: $Author: vg $ $Date: 2003-07-22 11:12:58 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -73,6 +73,7 @@
#include <stgelem.hxx>
#endif
+class UCBStorageStream;
class StgIo;
class StgPage;
@@ -87,6 +88,8 @@ class StgCache {
USHORT nRef; // reference count
void * pLRUCache; // hash table of cached objects
short nPageSize; // page size of the file
+ UCBStorageStream* pStorageStream; // holds reference to UCB storage stream
+
void Erase( StgPage* ); // delete a cache element
void InsertToLRU( StgPage* ); // insert into LRU list
void InsertToOrdered( StgPage* ); // insert into ordered list
@@ -107,6 +110,7 @@ public:
short GetPhysPageSize() { return nPageSize; }
SvStream* GetStrm() { return pStrm; }
void SetStrm( SvStream*, BOOL );
+ void SetStrm( UCBStorageStream* );
BOOL IsWritable() { return pStrm->IsWritable(); }
BOOL Good() { return BOOL( nError == SVSTREAM_OK ); }
BOOL Bad() { return BOOL( nError != SVSTREAM_OK ); }