-// Print Orientation (Should also add Left, Right)
-enum {
- PS_PORTRAIT = 1,
- PS_LANDSCAPE = 2
-};// ps_orientation = PS_PORTRAIT;
-
-// Print Actions
-enum {
- PS_PRINTER,
- PS_FILE,
- PS_PREVIEW
-};// ps_action = PS_PREVIEW;
-
-// PostScript printer settings
-WXDLLEXPORT void wxSetPrinterCommand(const char *cmd);
-WXDLLEXPORT void wxSetPrintPreviewCommand(const char *cmd);
-WXDLLEXPORT void wxSetPrinterOptions(const char *flags);
-WXDLLEXPORT void wxSetPrinterOrientation(int orientation);
-WXDLLEXPORT void wxSetPrinterScaling(double x, double y);
-WXDLLEXPORT void wxSetPrinterTranslation(long x, long y);
-WXDLLEXPORT void wxSetPrinterMode(int mode);
-WXDLLEXPORT void wxSetPrinterFile(const char *f);
-WXDLLEXPORT void wxSetAFMPath(const char *f);
-
-// Get current values
-WXDLLEXPORT char* wxGetPrinterCommand();
-WXDLLEXPORT char* wxGetPrintPreviewCommand();
-WXDLLEXPORT char* wxGetPrinterOptions();
-WXDLLEXPORT int wxGetPrinterOrientation();
-WXDLLEXPORT void wxGetPrinterScaling(double* x, double* y);
-WXDLLEXPORT void wxGetPrinterTranslation(long *x, long *y);
-WXDLLEXPORT int wxGetPrinterMode();
-WXDLLEXPORT char* wxGetPrinterFile();
-WXDLLEXPORT char* wxGetAFMPath();
-
-/*
- * PostScript print setup information
- */
-
-class WXDLLEXPORT wxPrintSetupData: public wxObject
-{
-public:
- char *printerCommand;
- char *previewCommand;
- char *printerFlags;
- char *printerFile;
- int printerOrient;
- double printerScaleX;
- double printerScaleY;
- long printerTranslateX;
- long printerTranslateY;
- // 1 = Preview, 2 = print to file, 3 = send to printer
- int printerMode;
- char *afmPath;
- // A name in the paper database (see wx_print.h: the printing framework)
- char *paperName;
- bool printColour;
-
-public:
- wxPrintSetupData();
- ~wxPrintSetupData();
-
- void SetPrinterCommand(const char *cmd);
- void SetPaperName(const char *paper);
- void SetPrintPreviewCommand(const char *cmd);
- void SetPrinterOptions(const char *flags);
- void SetPrinterFile(const char *f);
- void SetPrinterOrientation(int orient);
- void SetPrinterScaling(double x, double y);
- void SetPrinterTranslation(long x, long y);
- // 1 = Preview, 2 = print to file, 3 = send to printer
- void SetPrinterMode(int mode);
- void SetAFMPath(const char *f);
- void SetColour(bool col);
-
- // Get current values
- char *GetPrinterCommand();
- char *GetPrintPreviewCommand();
- char *GetPrinterOptions();
- char *GetPrinterFile();
- char *GetPaperName();
- int GetPrinterOrientation();
- void GetPrinterScaling(double* x, double* y);
- void GetPrinterTranslation(long *x, long *y);
- int GetPrinterMode();
- char *GetAFMPath();
- bool GetColour();
-
- void operator=(wxPrintSetupData& data);
-
-private:
- DECLARE_DYNAMIC_CLASS(wxPrintSetupData)
-};
-
-WXDLLEXPORT_DATA(extern wxPrintSetupData*) wxThePrintSetupData;
-WXDLLEXPORT extern void wxInitializePrintSetupData(bool init = TRUE);
-
-/*
- * Again, this only really needed for non-Windows platforms
- * or if you want to test the PostScript printing under Windows.
- */
-
-class WXDLLEXPORT wxPrintPaperType: public wxObject
-{
-public:
- wxPrintPaperType(const char *name = (const char *) NULL, int wmm = 0, int hmm = 0, int wp = 0, int hp = 0);
- ~wxPrintPaperType();
-
-public:
- int widthMM;
- int heightMM;
- int widthPixels;
- int heightPixels;
- char *pageName;
-