Printing functionality

What are these two callbacks for?