COleClientItem Class
Defines the container interface to OLE items.
class COleClientItem : public CDocItem
Members
Public Constructors
Name |
Description |
---|---|
Constructs a COleClientItem object. |
Public Methods
Name |
Description |
---|---|
Opens the OLE item for an operation and then executes the specified verb. |
|
Activates the item as another type. |
|
Accesses the data in the OLE object. |
|
Indicates whether a container application can create an embedded object. |
|
Indicates whether a container application can create a linked object. |
|
Indicates whether the Clipboard contains an embeddable or static OLE item. |
|
Indicates whether the Clipboard contains a linkable OLE item. |
|
Closes a link to a server but does not destroy the OLE item. |
|
Converts the item to another type. |
|
Copies the OLE item to the Clipboard. |
|
Creates a duplicate of an existing item. |
|
Creates an embedded item from the Clipboard. |
|
Creates an embedded item from a data object. |
|
Creates an embedded item from a file. |
|
Creates a linked item from the Clipboard. |
|
Creates a linked item from a data object. |
|
Creates a linked item from a file. |
|
Creates a new embedded item by launching the server application. |
|
Creates a static item from the Clipboard. |
|
Creates a static item from a data object. |
|
Deactivates the item. |
|
Restores the container application's user interface to its original state. |
|
Deletes or closes the OLE item if it was a linked item. |
|
Performs a drag-and-drop operation. |
|
Executes the specified verb. |
|
Draws the OLE item. |
|
Gets the view on which the item is activated in place. |
|
Returns the bounds of the OLE item's rectangle. |
|
Gets the present item's class ID. |
|
Gets the data that would be placed on the Clipboard by calling the CopyToClipboard member function. |
|
Returns the COleDocument object that contains the present item. |
|
Gets the item's current view for rendering. |
|
Returns the bounds of the OLE item's rectangle. |
|
Retrives a handle to an icon associated with the server of a particular CLSID. |
|
Gets the metafile used for drawing the item's icon. |
|
Returns a pointer to the item's in-place editing window. |
|
Gets the item's current state. |
|
Returns the status of the last OLE operation. |
|
Returns the update mode for a linked item (advanced feature). |
|
Returns the type (embedded, linked, or static) of the OLE item. |
|
Gets a string describing the item's type. |
|
Returns TRUE if the item is in-place active. |
|
Returns TRUE if a linked item is up to date with its source document. |
|
Returns TRUE if the item has been modified since it was last saved. |
|
Returns TRUE if the item is currently open in the server application. |
|
Returns TRUE if the item's server application is running. |
|
Called by the framework to notify the item that it is activated. |
|
Called by the framework to notify the item that it is activated and should show its user interface. |
|
Called when the server changes the OLE item. Implementation required. |
|
Called by the framework when an item is deactivated. |
|
Called by the framework when the server has removed its in-place user interface. |
|
Called by the framework to get the data to be copied to the Clipboard. |
|
Called by the framework to create a composite menu. |
|
Called by the framework to remove the container's menus from a composite menu. |
|
Called by the framework to install and remove a composite menu. |
|
Called by the framework to show and hide control bars. |
|
Called by the framework to update the frame window's title bar. |
|
Reactivates the item and undoes the last in-place editing operation. |
|
Releases the connection to an OLE linked item and closes it if it was open. Does not destroy the client item. |
|
Reloads the item after a call to ActivateAs. |
|
Runs the application associated with the item. |
|
Sets the item's current view for rendering. |
|
Sets the bounding rectangle of the OLE item. |
|
Sets the names the server displays when editing the OLE item. |
|
Caches the metafile used for drawing the item's icon. |
|
Sets the item's bounding rectangle. |
|
Sets the update mode for a linked item (advanced feature). |
|
Sets the print-target device for this client item. |
|
Updates the presentation cache of an item. |
Protected Methods
Name |
Description |
---|---|
Called by the framework to determine whether in-place activation is allowed. |
|
Called by the framework when an item's position changes. |
|
Called by the framework to undo after activation. |
|
Called by the framework to discard the item's undo state information. |
|
Called by the framework to get the item's clipping-rectangle coordinates. |
|
Called by the framework to get the item's position relative to the view. |
|
Called by the framework when an item is activated in place. |
|
Called by the framework to scroll the item into view. |
|
Called by the framework to display the OLE item. |
Remarks
An OLE item represents data, created and maintained by a server application, which can be "seamlessly" incorporated into a document so that it appears to the user to be a single document. The result is a "compound document" made up of the OLE item and a containing document.
An OLE item can be either embedded or linked. If it is embedded, its data is stored as part of the compound document. If it is linked, its data is stored as part of a separate file created by the server application, and only a link to that file is stored in the compound document. All OLE items contain information specifying the server application that should be called to edit them.
COleClientItem defines several overridable functions that are called in response to requests from the server application; these overridables usually act as notifications. This allows the server application to inform the container of changes the user makes when editing the OLE item, or to retrieve information needed during editing.
COleClientItem can be used with either the COleDocument, COleLinkingDoc, or COleServerDoc class. To use COleClientItem, derive a class from it and implement the OnChange member function, which defines how the container responds to changes made to the item. To support in-place activation, override the OnGetItemPosition member function. This function provides information about the displayed position of the OLE item.
For more information about using the container interface, see the articles Containers: Implementing a Container and Activation.
Note
The Windows SDK refers to embedded and linked items as "objects" and refers to types of items as "classes." This reference uses the term "item" to distinguish the OLE entity from the corresponding C++ object and the term "type" to distinguish the OLE category from the C++ class.
Inheritance Hierarchy
COleClientItem
Requirements
Header: afxole.h