X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3168b4c3ae31dc190dbf02b40a7ee1b9353b6e43..472eec8a0391538e4dcf7f7c6c4f4d44c8383616:/include/wx/msw/printdlg.h?ds=sidebyside diff --git a/include/wx/msw/printdlg.h b/include/wx/msw/printdlg.h index 9bfcec6f30..7a0101ec81 100644 --- a/include/wx/msw/printdlg.h +++ b/include/wx/msw/printdlg.h @@ -12,10 +12,6 @@ #ifndef _WX_PRINTDLG_H_ #define _WX_PRINTDLG_H_ -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) -#pragma interface "printdlg.h" -#endif - #if wxUSE_PRINTING_ARCHITECTURE #include "wx/dialog.h" @@ -23,7 +19,7 @@ #include "wx/prntbase.h" #include "wx/printdlg.h" -class WXDLLEXPORT wxDC; +class WXDLLIMPEXP_FWD_CORE wxDC; //---------------------------------------------------------------------------- // wxWindowsPrintNativeData @@ -38,7 +34,8 @@ public: virtual bool TransferTo( wxPrintData &data ); virtual bool TransferFrom( const wxPrintData &data ); - virtual bool Ok() const; + virtual bool Ok() const { return IsOk(); } + virtual bool IsOk() const; void* GetDevMode() const { return m_devMode; } void SetDevMode(void* data) { m_devMode = data; } @@ -71,11 +68,12 @@ public: wxPrintDialogData& GetPrintDialogData() { return m_printDialogData; } wxPrintData& GetPrintData() { return m_printDialogData.GetPrintData(); } + virtual wxDC *GetPrintDC(); private: wxPrintDialogData m_printDialogData; - wxDC* m_printerDC; + wxPrinterDC* m_printerDC; bool m_destroyDC; wxWindow* m_dialogParent;