7#if !defined(OCF_STGDOC_H)
12#if defined(BI_HAS_PRAGMA_ONCE)
47 virtual bool ReleaseDoc();
55 bool Commit(
bool force =
false);
56 bool CommitTransactedStorage();
57 bool Revert(
bool clear =
false);
62 int PropertyFlags(
int index);
63 LPCTSTR PropertyName(
int index);
65 int GetProperty(
int index,
void *
dest,
int textlen=0);
66 bool SetProperty(
int index,
const void *
src);
71 virtual bool RestoreStorage();
97 friend class TStorageInStream;
98 friend class TStorageOutStream;
114 OrgStorageI(0), LockBytes(0)
123 return (StorageI != 0);
IStorage * GetStorage()
Return the IStorage interface pointer currently associated with the storage document object.
ILockBytes * GetLockBytes()
Return a pointer to the ILockBytes interface currently being used by this storage document object.
IStorage * GetOrgStorageI()
Return a pointer to the original IStorage interface associated with this storage document object.
int PropertyCount()
Return the number of properties supported by the storage document object.
int GetThisOpen()
Return the mode bits used to open the storage currently associated with this storage object.
bool IsOpen()
Return 'true' if the storage document object has opened an OLE storage.
TStorageDocument(owl::TDocument *parent=0)
Construct a default Storage document object.
An abstract base class, TDocument is the base class for all document objects and serves as an interfa...
@ NextProperty
Next index to be used by derived class.
Derived from TStream and istream, TInStream is a base class used to define input streams for document...
Derived from TStream and ostream, TOutStream is a base class used to create output storage streams fo...
An abstract base class, TStream provides links between streams and documents, views,...
Definition of classes TDocument, TView, TWindowView, TStream, TInStream, TOutStream.
Object Component Framework (COM encapsulation)
Object Windows Library (OWLNext Core)
interface _ICLASS IStorage
ObjectComponents fundamental definitions.
#define DECLARE_STREAMABLE_OCF(cls, ver)
interface _ICLASS ILockBytes
interface _ICLASS IStream