X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bbcdf8bc7ca806d8278c7cb6d09d5590378b67d8..45016e1a6bfed375993470efa844b94a42a41c73:/include/wx/msw/dcprint.h diff --git a/include/wx/msw/dcprint.h b/include/wx/msw/dcprint.h index 8ad3c3574b..4052a617a1 100644 --- a/include/wx/msw/dcprint.h +++ b/include/wx/msw/dcprint.h @@ -16,22 +16,42 @@ #pragma interface "dcprint.h" #endif +#if wxUSE_PRINTING_ARCHITECTURE + #include "wx/dc.h" +#include "wx/cmndata.h" class WXDLLEXPORT wxPrinterDC: public wxDC { - public: - DECLARE_CLASS(wxPrinterDC) +public: +DECLARE_CLASS(wxPrinterDC) + + // Create a printer DC (obsolete function: use wxPrintData version now) + wxPrinterDC(const wxString& driver, const wxString& device, const wxString& output, bool interactive = TRUE, int orientation = wxPORTRAIT); + + // Create from print data + wxPrinterDC(const wxPrintData& data); + + wxPrinterDC(WXHDC theDC); - // Create a printer DC - wxPrinterDC(const wxString& driver, const wxString& device, const wxString& output, bool interactive = TRUE, int orientation = wxPORTRAIT); - wxPrinterDC(WXHDC theDC); + ~wxPrinterDC(void); - ~wxPrinterDC(void); + bool StartDoc(const wxString& message); + void EndDoc(void); + void StartPage(void); + void EndPage(void); + +protected: + wxPrintData m_printData; }; // Gets an HDC for the default printer configuration -WXHDC WXDLLEXPORT wxGetPrinterDC(int orientation); +// WXHDC WXDLLEXPORT wxGetPrinterDC(int orientation); + +// Gets an HDC for the specified printer configuration +WXHDC WXDLLEXPORT wxGetPrinterDC(const wxPrintData& data); + +#endif // wxUSE_PRINTING_ARCHITECTURE #endif // _WX_DCPRINT_H_