## class XGPrinter

> Declared in <XPrinter.h>

> This is a printer interface. And no, we can only have one of these at a time.

Construction/Destruction

> XGPrinter::XGPrinter
> XGPrinter::~XGPrinter

Page Settings

> XGPrinter::PageSize
> XGPrinter::PrintSize
> XGPrinter::Resolution
> XGPrinter::SetResolution

Dialogs

> XGPrinter::PageSetup
> XGPrinter::PrintJob

Printer Core

> XGPrinter::EndJob
> XGPrinter::EndPage
> XGPrinter::GetCancelState
> XGPrinter::StartJob
> XGPrinter::StartPage

Construction/Destruction

XGPrinter::XGPrinter

> Usage: XGPrinter::XGPrinter()

> Allocate memory and fill in reasonable defaults for the THPrint handle

XGPrinter::~XGPrinter

> Usage: XGPrinter::~XGPrinter()

> Release memory

Page Settings

XGPrinter::PageSize

> Usage: Rect XGPrinter::PageSize()

> Get the size of this page

XGPrinter::PrintSize

> Usage: Rect XGPrinter::PrintSize()

> Get the printing area of this page

XGPrinter::Resolution

> Usage: Point XGPrinter::Resolution()

> Get the horizontal, vertical resolution of this page

XGPrinter::SetResolution

> Usage: void XGPrinter::SetResolution(short flags)

> Set various resolutions for this thing

Dialogs

XGPrinter::PageSetup

> Usage: bool XGPrinter::PageSetup()

> Run the page setup dialog box. Return -1 if there was a problem

XGPrinter::PrintJob

> Usage: bool XGPrinter::PrintJob(short*first,short*last)

> Run the print job dialog box. This returns the first page and the last page to print

Printer Core

XGPrinter::EndJob

> Usage: void XGPrinter::EndJob()

> End the printing job. If this job needs to be spooled, spool it

XGPrinter::EndPage

> Usage: void XGPrinter::EndPage()

> End printing in a page

XGPrinter::GetCancelState

> Usage: bool XGPrinter::GetCancelState()

> Get the current state of the cancel button. If the user hit the cancel button, this returns true.

XGPrinter::StartJob

> Usage: bool XGPrinter::StartJob(char*doc)

> Start this printing job. This opens a window with a cancel message

XGPrinter::StartPage

> Usage: bool XGPrinter::StartPage()

> Start printing in a page