Contents Up Previous Next

Printer settings

The following functions are used to control PostScript printing. Under Windows, PostScript output can only be sent to a file.

::wxGetPrinterCommand
::wxGetPrinterFile
::wxGetPrinterMode
::wxGetPrinterOptions
::wxGetPrinterOrientation
::wxGetPrinterPreviewCommand
::wxGetPrinterScaling
::wxGetPrinterTranslation
::wxSetPrinterCommand
::wxSetPrinterFile
::wxSetPrinterMode
::wxSetPrinterOptions
::wxSetPrinterOrientation
::wxSetPrinterPreviewCommand
::wxSetPrinterScaling
::wxSetPrinterTranslation


::wxGetPrinterCommand

char * wxGetPrinterCommand(void)

Gets the printer command used to print a file. The default is lpr.


::wxGetPrinterFile

char * wxGetPrinterFile(void)

Gets the PostScript output filename.


::wxGetPrinterMode

int wxGetPrinterMode(void)

Gets the printing mode controlling where output is sent (PS_PREVIEW, PS_FILE or PS_PRINTER). The default is PS_PREVIEW.


::wxGetPrinterOptions

char * wxGetPrinterOptions(void)

Gets the additional options for the print command (e.g. specific printer). The default is nothing.


::wxGetPrinterOrientation

int wxGetPrinterOrientation(void)

Gets the orientation (PS_PORTRAIT or PS_LANDSCAPE). The default is PS_PORTRAIT.


::wxGetPrinterPreviewCommand

char * wxGetPrinterPreviewCommand(void)

Gets the command used to view a PostScript file. The default depends on the platform.


::wxGetPrinterScaling

void wxGetPrinterScaling(float *x, float *y)

Gets the scaling factor for PostScript output. The default is 1.0, 1.0.


::wxGetPrinterTranslation

void wxGetPrinterTranslation(float *x, float *y)

Gets the translation (from the top left corner) for PostScript output. The default is 0.0, 0.0.


::wxSetPrinterCommand

void wxSetPrinterCommand(char *command)

Sets the printer command used to print a file. The default is lpr.


::wxSetPrinterFile

void wxSetPrinterFile(char *filename)

Sets the PostScript output filename.


::wxSetPrinterMode

void wxSetPrinterMode(int mode)

Sets the printing mode controlling where output is sent (PS_PREVIEW, PS_FILE or PS_PRINTER). The default is PS_PREVIEW.


::wxSetPrinterOptions

void wxSetPrinterOptions(char *options)

Sets the additional options for the print command (e.g. specific printer). The default is nothing.


::wxSetPrinterOrientation

void wxSetPrinterOrientation(int orientation)

Sets the orientation (PS_PORTRAIT or PS_LANDSCAPE). The default is PS_PORTRAIT.


::wxSetPrinterPreviewCommand

void wxSetPrinterPreviewCommand(char *command)

Sets the command used to view a PostScript file. The default depends on the platform.


::wxSetPrinterScaling

void wxSetPrinterScaling(float x, float y)

Sets the scaling factor for PostScript output. The default is 1.0, 1.0.


::wxSetPrinterTranslation

void wxSetPrinterTranslation(float x, float y)

Sets the translation (from the top left corner) for PostScript output. The default is 0.0, 0.0.