#include <GPrinter.h>
Public Member Functions | |
void | SetPages (int p) |
Set number of pages in document (if known). | |
int | GetPages () |
Get the number of pages in the document. | |
bool | GetPageRange (GArray< int > &p) |
Get the range of pages to print that was selected by the user. | |
GPrintDC * | StartDC (const char *PrintJobName, GView *Parent=0) |
Start a print job. | |
bool | Browse (GView *Parent) |
Browse to a printer. | |
bool | Serialize (char *&Str, bool Write) |
Write the user selected printer to a string for storage. |
bool GPrinter::GetPageRange | ( | GArray< int > & | p | ) |
Get the range of pages to print that was selected by the user.
p | You'll get pairs of ints, each pair is the start and end page number of a range to print. i.e. [5, 10], [14, 16] |