7#if !defined(OCF_OLEDOC_H)
11#if defined(BI_HAS_PRAGMA_ONCE)
62 bool Commit(
bool force);
63 bool Open(
int mode, LPCTSTR path = 0);
67 bool Revert(
bool clear);
70 bool SetStorage(
IStorage* stg,
bool remember =
true);
71 bool RestoreStorage();
75 virtual void PreOpen();
78 virtual bool CommitSelection(
TOleWindow& oleWin,
void* userData);
OC Document class, holds parts & is a owner of views.
Derived from TStorageDocument, TOleDocument implements the document half of the Doc/View pair.
virtual bool CommitSelection(TOleWindow &oleWin, void *userData)
Virtual function to be overriden in TOleDocument-derived class which serves or supports linking to po...
TOcDocument * GetOcDoc()
Returns the ObjectComponents document associated with this TOleDocument object.
void SetOcDoc(TOcDocument *doc)
Sets the ObjectComponents document associated with this TOleDocument object.
The generic OLE2 window. Use as a client of a frame window.
An abstract base class, TDocument is the base class for all document objects and serves as an interfa...
Object Component Framework (COM encapsulation)
Definition of TOcDocument Class.
interface _ICLASS IStorage
Definition of OWL signatures for ObjectComponents messages.