Printer settingsNB: These routines are obsolete and should no longer be used! The following functions are used to control PostScript printing. Under Windows, PostScript output can only be sent to a file. Include files <wx/dcps.h>
::wxGetPrinterCommand
::wxGetPrinterCommandwxString wxGetPrinterCommand() Gets the printer command used to print a file. The default is lpr.
::wxGetPrinterFilewxString wxGetPrinterFile() Gets the PostScript output filename.
::wxGetPrinterModeint wxGetPrinterMode() Gets the printing mode controlling where output is sent (PS_PREVIEW, PS_FILE or PS_PRINTER). The default is PS_PREVIEW.
::wxGetPrinterOptionswxString wxGetPrinterOptions() Gets the additional options for the print command (e.g. specific printer). The default is nothing.
::wxGetPrinterOrientationint wxGetPrinterOrientation() Gets the orientation (PS_PORTRAIT or PS_LANDSCAPE). The default is PS_PORTRAIT.
::wxGetPrinterPreviewCommandwxString wxGetPrinterPreviewCommand() Gets the command used to view a PostScript file. The default depends on the platform.
::wxGetPrinterScalingvoid wxGetPrinterScaling(float *x, float *y) Gets the scaling factor for PostScript output. The default is 1.0, 1.0.
::wxGetPrinterTranslationvoid wxGetPrinterTranslation(float *x, float *y) Gets the translation (from the top left corner) for PostScript output. The default is 0.0, 0.0.
::wxSetPrinterCommandvoid wxSetPrinterCommand(const wxString& command) Sets the printer command used to print a file. The default is lpr.
::wxSetPrinterFilevoid wxSetPrinterFile(const wxString& filename) Sets the PostScript output filename.
::wxSetPrinterModevoid wxSetPrinterMode(int mode) Sets the printing mode controlling where output is sent (PS_PREVIEW, PS_FILE or PS_PRINTER). The default is PS_PREVIEW.
::wxSetPrinterOptionsvoid wxSetPrinterOptions(const wxString& options) Sets the additional options for the print command (e.g. specific printer). The default is nothing.
::wxSetPrinterOrientationvoid wxSetPrinterOrientation(int orientation) Sets the orientation (PS_PORTRAIT or PS_LANDSCAPE). The default is PS_PORTRAIT.
::wxSetPrinterPreviewCommandvoid wxSetPrinterPreviewCommand(const wxString& command) Sets the command used to view a PostScript file. The default depends on the platform.
::wxSetPrinterScalingvoid wxSetPrinterScaling(float x, float y) Sets the scaling factor for PostScript output. The default is 1.0, 1.0.
::wxSetPrinterTranslationvoid wxSetPrinterTranslation(float x, float y) Sets the translation (from the top left corner) for PostScript output. The default is 0.0, 0.0.
|