3.5.3 Operations in Clients with Open OLE Objects

Use the following operations for client applications containing OLE objects that are currently open.

3.5.3.1 Save Command

When the user saves the container document with the Save command on the File menu, the client application updates all open objects in the container document before saving the document. The server application remains open.

3.5.3.2 Delete Command

Deleting a selection destroys objects (whether or not they are open) just as it destroys native data. OLE requests server applications of deleted objects to close silently. The client application should request an update from the server before deletion so that the user can get the latest updates in the case of an undo operation.

3.5.3.3 Close (Exit) Command

The case of closing a client application that contains an open object was discussed earlier in the section "Closing a Server or a Client Application."

3.5.3.4 Cut and Copy Commands

When the user chooses the Cut or Copy command, OLE silently updates open objects and the updated versions will be carried to the clipboard. Copying open objects leaves their server applications open and connected to the original object; cutting open objects closes their servers.

3.5.3.5 Paste Command

Pasting over objects (whether or not they are open) replaces them just as it replaces native data. Pasting over open objects also closes their servers. Before closing the server, the client should request an update to prevent data loss in the case that the user wants to undo the paste operation.