X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8907154c1a8a6882c6797d1f16393ddfb23e7f3a..8e7cb70ce34a3ba10fed3a7a708d66543eb314a6:/include/wx/gtk/gnome/gprint.h diff --git a/include/wx/gtk/gnome/gprint.h b/include/wx/gtk/gnome/gprint.h index 82d086b09f..280380270b 100644 --- a/include/wx/gtk/gnome/gprint.h +++ b/include/wx/gtk/gnome/gprint.h @@ -13,15 +13,13 @@ // Include wxWindows' headers -#ifndef WX_PRECOMP - #include -#endif +#include "wx/defs.h" #if wxUSE_LIBGNOMEPRINT #include "wx/print.h" -#include "wx/prntbase.h" #include "wx/printdlg.h" +#include "wx/dc.h" typedef struct _GnomePrintJob GnomePrintJob; typedef struct _GnomePrintContext GnomePrintContext; @@ -40,7 +38,8 @@ public: virtual bool TransferTo( wxPrintData &data ); virtual bool TransferFrom( const wxPrintData &data ); - virtual bool Ok() const { return true; } + virtual bool Ok() const { return IsOk(); } + virtual bool IsOk() const { return true; } GnomePrintConfig* GetPrintConfig() { return m_config; } void SetPrintJob( GnomePrintJob *job ) { m_job = job; } @@ -100,7 +99,7 @@ public: wxGnomePrintDialog( wxWindow *parent, wxPrintDialogData* data = NULL ); wxGnomePrintDialog( wxWindow *parent, wxPrintData* data); - ~wxGnomePrintDialog(); + virtual ~wxGnomePrintDialog(); wxPrintData& GetPrintData() { return m_printDialogData.GetPrintData(); } @@ -140,7 +139,7 @@ class wxGnomePageSetupDialog: public wxPageSetupDialogBase public: wxGnomePageSetupDialog( wxWindow *parent, wxPageSetupDialogData* data = NULL ); - ~wxGnomePageSetupDialog(); + virtual ~wxGnomePageSetupDialog(); virtual wxPageSetupDialogData& GetPageSetupDialogData(); @@ -200,12 +199,10 @@ class wxGnomePrintDC: public wxDC { public: wxGnomePrintDC( wxGnomePrinter *printer ); - ~wxGnomePrintDC(); - - bool Ok() const; + virtual ~wxGnomePrintDC(); - virtual void BeginDrawing() {} - virtual void EndDrawing() {} + bool Ok() const { return IsOk(); } + bool IsOk() const; bool DoFloodFill(wxCoord x1, wxCoord y1, const wxColour &col, int style=wxFLOOD_SURFACE ); bool DoGetPixel(wxCoord x1, wxCoord y1, wxColour *col) const; @@ -290,6 +287,8 @@ private: wxGnomePrinter *m_printer; GnomePrintContext *m_gpc; + void makeEllipticalPath(wxCoord x, wxCoord y, wxCoord width, wxCoord height); + private: wxCoord XDEV2LOG(wxCoord x) const {