7#if !defined(OCF_OLEDOC_H)
11#if defined(BI_HAS_PRAGMA_ONCE)
63 bool Open(
int mode, LPCTSTR path = 0);
OC Document class, holds parts & is a owner of views.
bool Revert(bool clear)
Performs the reverse of Commit.
virtual bool CommitSelection(TOleWindow &oleWin, void *userData)
Virtual function to be overriden in TOleDocument-derived class which serves or supports linking to po...
TOleDocument(owl::TDocument *parent=0)
Constructs a TOleDocument object associated with the given parent TDocument object.
bool CanClose()
Prepares the document for closing.
bool SetStorage(IStorage *stg, bool remember=true)
Attaches the IStorage pointer (stg) to this document.
bool ReleaseDoc()
Releases the ObjectComponents document when the server is finished using the document.
TOcApp * GetOcApp()
Returns the ObjectComponents application associated with this TOleDocument object.
bool Open(int mode, LPCTSTR path=0)
Loads the embedded objects, if any, using the path specified in path.
virtual bool Read()
Loads the embedded objects from the compound file.
virtual bool Write()
Saves the embedded objects to the compound file.
TOcDocument * GetOcDoc()
Returns the ObjectComponents document associated with this TOleDocument object.
void OleViewClose()
Shuts down the TOleView's.
virtual void PreOpen()
Before the document is actually opened, PreOpen gives the derived class a chance to perform a particu...
void SetOcDoc(TOcDocument *doc)
Sets the ObjectComponents document associated with this TOleDocument object.
bool PathChanged()
Checks to see if the current document's path is the same as the TOcDocument's path.
bool Close()
Ensures that the IStorage is released properly and disconnects any active server in the document.
bool RestoreStorage()
Restores the original root IStorage before the save operation.
bool Commit(bool force)
Commits the current document's data to storage.
bool InitDoc()
Overrides the TDocument::InitDoc function and creates or opens a compound file so that there is an IS...
The generic OLE2 window. Use as a client of a frame window.
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...
Object Component Framework (COM encapsulation).
Definition of TOcDocument Class.
interface _ICLASS IStorage
Definition of OWL signatures for ObjectComponents messages.