Arbortext Command Language > Hooks > previewlinkhook
  
previewlinkhook
previewlinkhook
Function prototype:
hook (pageno)
Synopsis
Use with:
add_hook(hookname, func[, prepend])
remove_hook(hookname, func)
where hookname is previewlinkhook.
The previewlinkhook function is called after Arbortext Editor repositions the cursor in the Edit pane due to a request from Print Preview to match the text at the cursor in the Edit pane to the text under the pointer in the Print Preview window. You can get the repositioned location within the document using the oid_caret function.
Argument
pageno is the ordinal page number displayed in the Print Preview window.