X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0be7709e711626996060757eb62fa506cf3d9e06..2f0e16e186a58e730e38400f5ddd96df62ee19bb:/include/wx/gtk/gnome/gprint.h?ds=sidebyside diff --git a/include/wx/gtk/gnome/gprint.h b/include/wx/gtk/gnome/gprint.h index 77e924d711..3b8859c17b 100644 --- a/include/wx/gtk/gnome/gprint.h +++ b/include/wx/gtk/gnome/gprint.h @@ -46,6 +46,7 @@ public: virtual bool Ok() const { return true; } GnomePrintConfig* GetPrintConfig() { return m_config; } + void SetPrintJob( GnomePrintJob *job ) { m_job = job; } GnomePrintJob* GetPrintJob() { return m_job; } @@ -77,7 +78,10 @@ public: wxPrintDialogData *data = NULL ); virtual wxPrintDialogBase *CreatePrintDialog( wxWindow *parent, wxPrintData *data ); - + + virtual wxPageSetupDialogBase *CreatePageSetupDialog( wxWindow *parent, + wxPageSetupDialogData * data = NULL ); + virtual bool HasPrintSetupDialog(); virtual wxDialog *CreatePrintSetupDialog( wxWindow *parent, wxPrintData *data ); virtual bool HasOwnPrintToFile(); @@ -97,7 +101,7 @@ class wxGnomePrintDialog: public wxPrintDialogBase { public: wxGnomePrintDialog( wxWindow *parent, - wxPrintDialogData* data = (wxPrintDialogData*)NULL ); + wxPrintDialogData* data = NULL ); wxGnomePrintDialog( wxWindow *parent, wxPrintData* data); ~wxGnomePrintDialog(); @@ -130,6 +134,40 @@ private: DECLARE_DYNAMIC_CLASS(wxGnomePrintDialog) }; +//---------------------------------------------------------------------------- +// wxGnomePageSetupDialog +//---------------------------------------------------------------------------- + +class wxGnomePageSetupDialog: public wxPageSetupDialogBase +{ +public: + wxGnomePageSetupDialog( wxWindow *parent, + wxPageSetupDialogData* data = NULL ); + ~wxGnomePageSetupDialog(); + + virtual wxPageSetupDialogData& GetPageSetupDialogData(); + + virtual int ShowModal(); + + virtual bool Validate(); + virtual bool TransferDataToWindow(); + virtual bool TransferDataFromWindow(); + +private: + // Implement some base class methods to do nothing to avoid asserts and + // GTK warnings, since this is not a real wxDialog. + virtual void DoSetSize(int WXUNUSED(x), int WXUNUSED(y), + int WXUNUSED(width), int WXUNUSED(height), + int WXUNUSED(sizeFlags) = wxSIZE_AUTO) {} + virtual void DoMoveWindow(int WXUNUSED(x), int WXUNUSED(y), + int WXUNUSED(width), int WXUNUSED(height)) {} + + wxPageSetupDialogData m_pageDialogData; + +private: + DECLARE_DYNAMIC_CLASS(wxGnomePageSetupDialog) +}; + //---------------------------------------------------------------------------- // wxGnomePrinter //----------------------------------------------------------------------------