Publishing Engine Programmer's Guide > PTC Arbortext Publishing > The Publishing Framework > The Outer Layer of the Publishing Framework > The Publishing Framework Callback Functions > The dialog Callback
  
The dialog Callback
The dialog callback is called only if the publishing operation is interactive (meaning it was invoked from Arbortext Editor and not from custom code, as noted in The Outer Layer of the Publishing Framework). It displays the dialog box to the user and prompts for parameters, such as which stylesheet to use, where to put the output file, and so forth. The callback records the responses in the parameter array.
comp_type::dialog_cb(doc, params)
doc
is the document being published
params
is the parameter array
The callback can return:
-1
error detected, error message was logged
0
error detected, no message was logged
1
success, compose_for_type should continue processing