Arbortext Command Language > Callbacks > doc_add_callback > tbl_rectangle_copy Callback Type
  
tbl_rectangle_copy Callback Type
Function prototype:
function funcname (doc, source_ul, source_lr, target_ul, target_lr, op)
tbl_rectangle_copy is called before a rectangle of cells is copied from one table to another. Usually the copy takes place between a table in a paste buffer and a table in a document in an Edit window.
Arguments
doc is the identifier of the document containing target_ul and target_lr.
source_ul is the table object ID (toid) of the upper-left corner cell in the region from which the copy is taking place.
source_lr is the table object ID (toid) of the lower-right corner cell in the region from which the copy is taking place.
target_ul is the table object ID (toid) of the upper-left corner cell in the region where the table objects are being inserted.
target_lr is the table object ID (toid) of the lower-right corner cell in the region where the table objects are being inserted.
op is the function callback operation. Callbacks are called twice in succession with op specifying the stage of callback operation.
1. op == 1 first call — The returned argument specifies whether the execution should continue or be stopped:
0 — Continue callback processing.
-1 — Stop further callback processing.
2. op == 2 second call — Occurs unless the processing was stopped during the first call. The returned argument allows or prevents basic Arbortext Editor processing after all callbacks have been called:
0 — Basic Arbortext Editor processing allowed.
-1 — Basic Arbortext Editor processing prevented.