ShowLinkDestinationInfo
Mac OSThe
ShowLinkDestinationInfomethod displays the Link Destination Info dialog box for this link object.
ODBoolean ShowLinkDestinationInfo ( in ODFacet facet, in ODLinkInfo info, out ODLinkInfoResult infoResult);
facet- A reference to the facet displaying the selected link destination.
info- A structure containing link destination information.
infoResult- A structure reflecting the user's selections in the Link Destination Info dialog box.
- return value
kODTrueif the user did not cancel the Link Destination Info dialog box, otherwisekODFalse.DISCUSSION
You call this method in your part'sHandleEventmethod when the user selects the Link Info item from the Edit menu and the current selection is the border of a link destination.The Link Destination Info dialog box displays the part kind of the linked data, together with the dates and times of its creation and last update. The dialog box lets the user set the link update mode to automatic or manual. The user can also break the link, request an immediate update from the link data, or display the link source for editing.
If the user exits the Link Destination Info dialog box by clicking a button other than Cancel, this method returns true and you should examine the
actionfield of theinfoResultoutput parameter to determine what action to take in response to the user's selections.
If the user cancels the dialog box, this method returns false and you do not need to take any further action.
- If the
actionfield iskODLinkInfoFindSource, you should call this link objects'sShowSourceContentmethod.- If the
actionfield iskODLinkInfoBreakLink, you should no longer associate your part's destination content with this link. If the selected link destination gets updates automatically and your part has no other destination of this link object that also gets updates automatically, you should call theUnregisterDependentto unregister your part.- This operation should be undoable.
- If the
actionfield iskODLinkInfoUpdateNow, you should update its content from this link.- If the
actionfield iskODLinkInfoOk, you should examine theautoUpdatefield of theinfoResultoutput parameter. If theautoUpdatefield has changed, you should change your part's automatic notification status as appropriate.
- If the user selected manual notification and your part has no other destination of this link object that gets updates automatically, you should call the
UnregisterDependentmethod to unregister your part.- If the user selected automatic notification and your part isn't already registered to receive automatic notification (because some other destination of this link object gets automatic updates), you should call the
RegisterDependentmethod to register your part.
EXCEPTIONS
kODErrBrokenLink- Internal error; the link-source object disconnected from its destinations.
kODErrNullFacetInput- The
facetparameter is null.kODErrNullLinkInfoInput- The
infoparameter is null.kODErrNullLinkInfoResultInput- The
infoResultparameter is null.SEE ALSO
TheODLinkInfotype (page 923).
TheODLinkInfoActiontype (page 923).
TheODLinkInfoResulttype (page 924).
TheODLink::RegisterDependentmethod (page 355).
TheODLink::ShowSourceContentmethod (page 359).
TheODLink::UnregisterDependentmethod (page 361).
TheODLinkSource::ShowLinkSourceInfomethod (page 386).
"Selection Info" on page 252 in OpenDoc Programmer's Guide.
"Link Info" on page 377 in OpenDoc Programmer's Guide.