The XUI dialog that drives the Editor's toolbars is in the install tree
under lib\dialogs\editwindow.xml, and if you look you'll see this in there:
<button command="FilePrint" id="Toolbar_Print" image="imagePrint"<br"/>
statustext="&EditWindow_StatusTextPrint;"
tiptext="&EditWindow_TooltipPrint;"></button>
The key here is command="FilePrint". Most of the commands in the toolbar and
default menu configurations are declared in packages\commands.acl, and if we
look in there, sure enough we see this:
alias FilePrint {
if (doc_formattable()) {
FilePrintComposed;
} else {
FilePrintEditor;
}
}
So to customize printing behavior, you might be able to put an alias for
FilePrint in a custom\init script to redefine this command
alias FilePrint my_print_fn()
What I don't remember is whether custom\init scripts are sourced before or
after commands.acl. I think it's after, so that will work.
Chris