This class creates a custom wxPrintout Object for Print Preview and Printing for Transana. Parameters are Report Title, a blank graphic used for page sizing, a data structure that has all the lines for all the pages, and an optional subtitle. The PrepareData() function in this unit builds the graphic and the data structure correctly, and should be called prior to creating a MyPrintout Object.

MyPrintout contains the following public methods:

MethodDescription
OnBeginDocument() No description
OnEndDocument() No description
OnBeginPrinting() No description
OnEndPrinting() No description
OnPreparePrinting() No description
HasPage() No description
GetPageInfo() No description
OnPrintPage() This method actually builds the requested page for presentation to the screen or printer
MapScreenSizeToPageMargins() MapScreenSizeToPageMargins(self, PageSetupDialogData pageSetupData)
GetPPIPrinter() GetPPIPrinter() -> (x,y)
MapScreenSizeToDevice() MapScreenSizeToDevice(self)
base_OnBeginPrinting() Please use Printout.OnBeginPrinting instead.
GetPageSizeMM() GetPageSizeMM() -> (w, h)
FitThisSizeToPaper() FitThisSizeToPaper(self, Size imageSize)
base_OnEndDocument() Please use Printout.OnEndDocument instead.
SetIsPreview() SetIsPreview(self, bool p)
GetPaperRectPixels() GetPaperRectPixels(self) -> Rect
IsSameAs() IsSameAs(self, Object p) -> bool For wx.Objects that use C++ reference counting internally, this method can be used to determine if two objects are referencing the same data object.
MapScreenSizeToPaper() MapScreenSizeToPaper(self)
SetPageSizeMM() SetPageSizeMM(self, int w, int h)
GetLogicalPaperRect() GetLogicalPaperRect(self) -> Rect
GetDC() GetDC(self) -> DC
base_OnEndPrinting() Please use Printout.OnEndPrinting instead.
base_OnPreparePrinting() Please use Printout.OnPreparePrinting instead.
FitThisSizeToPage() FitThisSizeToPage(self, Size imageSize)
base_GetPageInfo() Please use Printout.GetPageInfo instead.
GetPageSizePixels() GetPageSizePixels() -> (w, h)
SetDC() SetDC(self, DC dc)
SetPPIPrinter() SetPPIPrinter(self, int x, int y)
SetPageSizePixels() SetPageSizePixels(self, int w, int h)
SetPPIScreen() SetPPIScreen(self, int x, int y)
SetLogicalOrigin() SetLogicalOrigin(self, int x, int y)
GetPPIScreen() GetPPIScreen() -> (x,y)
Destroy() Destroy(self) Deletes the C++ object this Python object is a proxy for.
SetPaperRectPixels() SetPaperRectPixels(self, Rect paperRectPixels)
GetTitle() GetTitle(self) -> String
IsPreview() IsPreview(self) -> bool
MapScreenSizeToPage() MapScreenSizeToPage(self)
FitThisSizeToPageMargins() FitThisSizeToPageMargins(self, Size imageSize, PageSetupDialogData pageSetupData)
GetClassName() GetClassName(self) -> String Returns the class name of the C++ class using wxRTTI.
GetLogicalPageRect() GetLogicalPageRect(self) -> Rect
GetLogicalPageMarginsRect() GetLogicalPageMarginsRect(self, PageSetupDialogData pageSetupData) -> Rect
OffsetLogicalOrigin() OffsetLogicalOrigin(self, int xoff, int yoff)
base_OnBeginDocument() Please use Printout.OnBeginDocument instead.

MyPrintout contains the following public properties:

PropertyDescription
ClassName See `GetClassName`
DC See `GetDC` and `SetDC`
PPIPrinter See `GetPPIPrinter` and `SetPPIPrinter`
PPIScreen See `GetPPIScreen` and `SetPPIScreen`
PageSizeMM See `GetPageSizeMM` and `SetPageSizeMM`
PageSizePixels See `GetPageSizePixels` and `SetPageSizePixels`
Title See `GetTitle`
thisown The membership flag