X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8907154c1a8a6882c6797d1f16393ddfb23e7f3a..2fd716136a961ab6038996343e42257c2d81aac2:/include/wx/msw/printdlg.h diff --git a/include/wx/msw/printdlg.h b/include/wx/msw/printdlg.h index d851025866..3845d20ff8 100644 --- a/include/wx/msw/printdlg.h +++ b/include/wx/msw/printdlg.h @@ -19,13 +19,13 @@ #include "wx/prntbase.h" #include "wx/printdlg.h" -class WXDLLEXPORT wxDC; +class WXDLLIMPEXP_FWD_CORE wxDC; //---------------------------------------------------------------------------- // wxWindowsPrintNativeData //---------------------------------------------------------------------------- -class WXDLLEXPORT wxWindowsPrintNativeData: public wxPrintNativeDataBase +class WXDLLIMPEXP_CORE wxWindowsPrintNativeData: public wxPrintNativeDataBase { public: wxWindowsPrintNativeData(); @@ -34,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; } @@ -55,7 +56,7 @@ private: // wxWindowsPrintDialog: the MSW dialog for printing // --------------------------------------------------------------------------- -class WXDLLEXPORT wxWindowsPrintDialog : public wxPrintDialogBase +class WXDLLIMPEXP_CORE wxWindowsPrintDialog : public wxPrintDialogBase { public: wxWindowsPrintDialog(wxWindow *parent, wxPrintDialogData* data = NULL); @@ -67,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; @@ -83,7 +85,7 @@ private: void* m_printDlg; private: - DECLARE_NO_COPY_CLASS(wxWindowsPrintDialog) + wxDECLARE_NO_COPY_CLASS(wxWindowsPrintDialog); DECLARE_CLASS(wxWindowsPrintDialog) }; @@ -91,7 +93,7 @@ private: // wxWindowsPageSetupDialog: the MSW page setup dialog // --------------------------------------------------------------------------- -class WXDLLEXPORT wxWindowsPageSetupDialog: public wxPageSetupDialogBase +class WXDLLIMPEXP_CORE wxWindowsPageSetupDialog: public wxPageSetupDialogBase { public: wxWindowsPageSetupDialog();