corrects the size of entities in print preview and print

This solves #57 and disables Close when no document is present in MDI area.