///////////////////////////////////////////////////////////////////////////// // Name: printdlg.h // Purpose: wxPrintDialog, wxPageSetupDialog classes // Author: Julian Smart // Modified by: // Created: 01/02/97 // RCS-ID: $Id$ // Copyright: (c) Julian Smart and Markus Holzem // Licence: wxWindows license ///////////////////////////////////////////////////////////////////////////// #ifndef __PRINTDLGH__ #define __PRINTDLGH__ #ifdef __GNUG__ #pragma interface "printdlg.h" #endif #include "wx/dialog.h" #include "wx/cmndata.h" /* * wxPrinterDialog * The common dialog for printing. */ class WXDLLEXPORT wxDC; class WXDLLEXPORT wxPrintDialog: public wxDialog { DECLARE_DYNAMIC_CLASS(wxPrintDialog) private: wxPrintData printData; wxDC *printerDC; bool destroyDC; char *deviceName; char *driverName; char *portName; wxWindow *dialogParent; public: wxPrintDialog(void); wxPrintDialog(wxWindow *parent, wxPrintData* data = NULL); ~wxPrintDialog(void); bool Create(wxWindow *parent, wxPrintData* data = NULL); virtual int ShowModal(void); inline wxPrintData& GetPrintData(void) { return printData; } virtual wxDC *GetPrintDC(void); }; class WXDLLEXPORT wxPageSetupDialog: public wxDialog { DECLARE_DYNAMIC_CLASS(wxPageSetupDialog) private: wxPageSetupData m_pageSetupData; wxWindow* m_dialogParent; public: wxPageSetupDialog(void); wxPageSetupDialog(wxWindow *parent, wxPageSetupData *data = NULL); ~wxPageSetupDialog(void); bool Create(wxWindow *parent, wxPageSetupData *data = NULL); virtual int ShowModal(void); inline wxPageSetupData& GetPageSetupData(void) { return m_pageSetupData; } }; #endif // __PRINTDLGH__