
Public Member Functions | |
| this (PrintDialog dlg) | |
| Constructs a new PrintDC. | |
| this (PrintDialog dlg, string documentName) | |
| Constructs a new PrintDC and starts the print job. | |
| this () | |
| Constructs a new PrintDC for the system default printer. | |
| this (string documentName) | |
| Constructs a new PrintDC for the system default printer, and starts the print job. | |
| void | startDocument (string documentName, bool startPage=true) |
| Starts the print job. | |
| void | endDocument () |
| Ends the print job. | |
| void | nextPage () |
| Advances to the next page. | |
| ~this () | |
Properties | |
| override RectDim | pageSize () |
| Gets the dimensions of the whole page in device units. | |
| override Vector | printableOffset () |
| Gets the offset of device coordinate (0, 0) from the corner of the physical page. | |
| bool | inDocument () |
| Whether a document is currently in progress. | |
| bool | inPage () |
| Whether a page is currently in progress. | |
Public Attributes | |
| DOCINFOA | docInfo |
| A Windows API structure containing information about the print job. | |
Protected Attributes | |
| bool | _inDocument = false |
| bool | _inPage = false |
| smjg.libs.sdwf.print.PrintDC.this | ( | PrintDialog | dlg | ) |
Constructs a new PrintDC.
dlg.show() must have been called, and the resulting DC must be still owned by the PrintDialog object (i.e. not have already been used to construct a PrintDC).| smjg.libs.sdwf.print.PrintDC.this | ( | PrintDialog | dlg, | |
| string | documentName | |||
| ) |
Constructs a new PrintDC and starts the print job.
| dlg | the print dialog that created the DC. | |
| documentName | name by which the document will be identified. This name appears when viewing the printer's queue. |
dlg.show() must have been called, and the resulting DC must be still owned by the PrintDialog object (i.e. not have already been used to construct a PrintDC).| smjg.libs.sdwf.print.PrintDC.this | ( | ) |
| smjg.libs.sdwf.print.PrintDC.this | ( | string | documentName | ) |
| smjg.libs.sdwf.print.PrintDC.~this | ( | ) |
| void smjg.libs.sdwf.print.PrintDC.startDocument | ( | string | documentName, | |
| bool | startPage = true | |||
| ) |
Starts the print job.
| documentName | name by which the document will be identified. This name appears when viewing the printer's queue. | |
| startPage | whether the first page will automatically be started. If false, a call to PrintDC.nextPage is necessary before you start to print the first page. (Since 0.5) |
| void smjg.libs.sdwf.print.PrintDC.endDocument | ( | ) |
| void smjg.libs.sdwf.print.PrintDC.nextPage | ( | ) |
Advances to the next page.
| override RectDim smjg.libs.sdwf.print.PrintDC.pageSize | ( | ) | [virtual] |
Gets the dimensions of the whole page in device units.
Implements smjg.libs.sdwf.print.PrintDCBase.
| override Vector smjg.libs.sdwf.print.PrintDC.printableOffset | ( | ) | [virtual] |
Gets the offset of device coordinate (0, 0) from the corner of the physical page.
This is the top-left corner of the printable area of the page.
Implements smjg.libs.sdwf.print.PrintDCBase.
| bool smjg.libs.sdwf.print.PrintDC.inDocument | ( | ) |
Whether a document is currently in progress.
| bool smjg.libs.sdwf.print.PrintDC.inPage | ( | ) |
Whether a page is currently in progress.
| DOCINFOA smjg.libs.sdwf.print.PrintDC.docInfo |
Initial value:
{
cbSize: DOCINFOA.sizeof
}
bool smjg.libs.sdwf.print.PrintDC._inDocument = false [protected] |
bool smjg.libs.sdwf.print.PrintDC._inPage = false [protected] |
1.5.4