-//-----------------------------------------------------------------------------
-// wxPostScriptPrintDialog
-//-----------------------------------------------------------------------------
-
-class WXDLLEXPORT wxPostScriptPrintDialog: public wxDialog
-{
-DECLARE_CLASS(wxPostScriptPrintDialog)
-public:
- wxPostScriptPrintDialog (wxWindow *parent, const wxString& title,
- const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
- long style = wxDEFAULT_DIALOG_STYLE);
-
- virtual int ShowModal(void) ;
-};
-
-//-----------------------------------------------------------------------------
-// wxPrintSetupData
-//-----------------------------------------------------------------------------
-
-/*
- * 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)
-};
-
-//-----------------------------------------------------------------------------
-// wxPrintPaperType
-//-----------------------------------------------------------------------------
-
-/*
- * 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;
-
-private:
- DECLARE_DYNAMIC_CLASS(wxPrintPaperType)
-};
-
-//-----------------------------------------------------------------------------
-// wxPrintPaperDataBase
-//-----------------------------------------------------------------------------
-
-class WXDLLEXPORT wxPrintPaperDatabase: public wxList
-{
-public:
- wxPrintPaperDatabase();
- ~wxPrintPaperDatabase();
-
- void CreateDatabase();
- void ClearDatabase();
-
- void AddPaperType(const char *name, int wmm, int hmm, int wp, int hp);
- wxPrintPaperType *FindPaperType(const char *name);
-
-private:
- DECLARE_DYNAMIC_CLASS(wxPrintPaperDatabase)
-};
-
-
-#endif