Woh ! Ok, I thougth you were talking about an other issue of the print widget ...
First step, create another widget (something like CustomPrint) but don't touch the print one !
Second step...I can't help you there 'cause I don't know your code and your workflow, but good luck !
(but your define, seems to be good !)