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; }
wxGnomePrintDialog( wxWindow *parent,
wxPrintDialogData* data = NULL );
wxGnomePrintDialog( wxWindow *parent, wxPrintData* data);
- ~wxGnomePrintDialog();
+ virtual ~wxGnomePrintDialog();
wxPrintData& GetPrintData()
{ return m_printDialogData.GetPrintData(); }
public:
wxGnomePageSetupDialog( wxWindow *parent,
wxPageSetupDialogData* data = NULL );
- ~wxGnomePageSetupDialog();
+ virtual ~wxGnomePageSetupDialog();
virtual wxPageSetupDialogData& GetPageSetupDialogData();
{
public:
wxGnomePrintDC( wxGnomePrinter *printer );
- ~wxGnomePrintDC();
+ virtual ~wxGnomePrintDC();
- bool Ok() const;
-
- 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;
wxGnomePrinter *m_printer;
GnomePrintContext *m_gpc;
+ void makeEllipticalPath(wxCoord x, wxCoord y, wxCoord width, wxCoord height);
+
private:
wxCoord XDEV2LOG(wxCoord x) const
{