łň ĄőEc@s0dZddklZdefd„ƒYZdS(sň The modules exposes a class that creates a print preview window object. @author: Lateef Alabi-Oki @organization: The Scribes Project @copyright: Copyright Š 2005 Lateef Alabi-Oki @license: GNU GPLv2 or Later @contact: mystilleef@gmail.com i˙˙˙˙(t JobPreviewt PrintPreviewcBs;eZdZd„Zd„Zd„Zd„Zd„ZRS(sq This class creates an object that allows users to preview the content of the text editor before printing it. cCsN|i||ƒddkl}ti||i|ƒ|iƒ|iƒdS(s  Initialize the JobPreview object. @param self: Reference to the ScribesJobPreview instance. @type self: A ScribesJobPreview object. @param printdialog: A print dialog associated with the preview window. @type printdialog: A gnomeprint.ui.Dialog object. i˙˙˙˙(tmsg0004N(t_PrintPreview__init_attributesti18nRRt__init__t_PrintPreview__jobt_PrintPreview__set_propertiestshow_all(tselft printdialogtjobR((splugins/PrintDialog/Preview.pyR&s  cCs||_||_dS(s Initialize the preview object's attributes. @param self: Reference to the ScribesJobPreview instance. @type self: A ScribesJobPreview object. @param printdialog: A print dialog associated with the preview window. @type printdialog: A gnomeprint.ui.Dialog object. N(t_PrintPreview__dialogR(R R R ((splugins/PrintDialog/Preview.pyt__init_attributes6s  cCs!|idƒ|i|iƒdS(s‘ Set the preview object's properties. @param self: Reference to the ScribesJobPreview instance. @type self: A ScribesJobPreview object. t stock_printN(t set_icon_nametset_transient_forR (R ((splugins/PrintDialog/Preview.pyt__set_propertiesDs cCs'ddkl}||ƒ~d}dS(Ni˙˙˙˙(tdelete_attributes(t SCRIBES.utilsRtNone(R R((splugins/PrintDialog/Preview.pyt __destroyOs  cCs|iƒdS(N(t_PrintPreview__destroy(R ((splugins/PrintDialog/Preview.pytdestroyVs (t__name__t __module__t__doc__RRRRR(((splugins/PrintDialog/Preview.pyR s    N(Rt gnomeprint.uiRR(((splugins/PrintDialog/Preview.pyss