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.
|