6.3.3 Document Management

A client application should notify the library when it opens, closes, saves, or renames a document, or causes a document to revert to a previously saved state. A client application can use the following functions to accomplish these tasks:

Function Description

OleRegisterClientDoc Registers an opened document with the library.
OleRenameClientDoc Informs the library that a document has been renamed.
OleRevertClientDoc Informs the library that a document has reverted to a previously saved state.
OleRevokeClientDoc Informs the library that a document should be closed or no longer exists.
OleSavedClientDoc Informs the library that a document has been saved.

A client application should also maintain a persistent name for each object. This name should be unique within the scope of the client document and should be stored with the document. This name is specified when the object is created and should persist when the document is saved and reopened. When a client uses the OleRename function to change the name of an object, the new name must also be unique and must be stored with the document.