#include "wx/printdlg.h"
#include "wx/prntbase.h"
#include "wx/dc.h"
-#include "wx/cairo.h"
-
typedef struct _GtkPrintOperation GtkPrintOperation;
typedef struct _GtkPrintContext GtkPrintContext;
void SetPrintConfig( GtkPrintSettings * config );
GtkPrintOperation* GetPrintJob() { return m_job; }
+ void SetPrintJob(GtkPrintOperation *job) { m_job = job; }
GtkPrintContext *GetPrintContext() { return m_context; }
void SetPrintContext(GtkPrintContext *context) {m_context = context; }
void SetPageSetupToSettings(GtkPrintSettings* settings, GtkPageSetup* page_setup);
private:
+ // NB: m_config is created and owned by us, but the other objects are not
+ // and their accessors don't change their ref count.
GtkPrintSettings *m_config;
GtkPrintOperation *m_job;
GtkPrintContext *m_context;
bool IsOk() const;
virtual void* GetCairoContext() const;
-
+ virtual void* GetHandle() const;
+
bool CanDrawBitmap() const { return true; }
void Clear();
void SetFont( const wxFont& font );
void SetPalette(const wxPalette& WXUNUSED(palette)) { }
void SetResolution(int ppi);
- // overriden for wxPrinterDC Impl
+ // overridden for wxPrinterDC Impl
virtual int GetResolution() const;
virtual wxRect GetPaperRect() const;