virtual wxPageSetupDialogBase *CreatePageSetupDialog( wxWindow *parent,
wxPageSetupDialogData * data = NULL );
+#if wxUSE_NEW_DC
+ virtual wxDCImpl* CreatePrinterDCImpl( wxPrinterDC *owner, const wxPrintData& data );
+#else
virtual wxDC* CreatePrinterDC( const wxPrintData& data );
+#endif
virtual bool HasPrintSetupDialog();
virtual wxDialog *CreatePrintSetupDialog( wxWindow *parent, wxPrintData *data );
};
//-----------------------------------------------------------------------------
-// wxGnomePrintDC
+// wxGnomePrinterDC
//-----------------------------------------------------------------------------
-class wxGnomePrintDC: public wxDC
+#if wxUSE_NEW_DC
+class wxGnomePrinterDCImpl : public wxDCImpl
+#else
+#define wxGnomePrinterDCImpl wxGnomePrinterDC
+class wxGnomePrinterDC : public wxDC
+#endif
{
public:
- wxGnomePrintDC( const wxPrintData& data );
- virtual ~wxGnomePrintDC();
+#if wxUSE_NEW_DC
+ wxGnomePrinterDCImpl( wxPrinterDC *owner, const wxPrintData& data );
+#else
+ wxGnomePrinterDC( const wxPrintData& data );
+#endif
+ virtual ~wxGnomePrinterDCImpl();
bool Ok() const { return IsOk(); }
bool IsOk() const;
virtual int GetDepth() const { return 24; }
void SetBackgroundMode(int WXUNUSED(mode)) { }
void SetPalette(const wxPalette& WXUNUSED(palette)) { }
- static void SetResolution(int ppi);
- static int GetResolution();
protected:
bool DoFloodFill(wxCoord x1, wxCoord y1, const wxColour &col, int style=wxFLOOD_SURFACE );
void DoDrawRoundedRectangle(wxCoord x, wxCoord y, wxCoord width, wxCoord height, double radius = 20.0);
void DoDrawEllipse(wxCoord x, wxCoord y, wxCoord width, wxCoord height);
#if wxUSE_SPLINES
- void DoDrawSpline(wxList *points);
-#endif // wxUSE_SPLINES
+ void DoDrawSpline(const wxPointList *points);
+#endif
bool DoBlit(wxCoord xdest, wxCoord ydest, wxCoord width, wxCoord height,
wxDC *source, wxCoord xsrc, wxCoord ysrc, int rop = wxCOPY, bool useMask = false,
wxCoord xsrcMask = wxDefaultCoord, wxCoord ysrcMask = wxDefaultCoord);
void SetPrintData(const wxPrintData& data);
wxPrintData& GetPrintData() { return m_printData; }
-private:
- static float ms_PSScaleFactor;
+ // overriden for wxPrinterDC Impl
+ virtual wxRect GetPaperRect();
+ virtual int GetResolution();
private:
wxPrintData m_printData;
void makeEllipticalPath(wxCoord x, wxCoord y, wxCoord width, wxCoord height);
private:
- DECLARE_DYNAMIC_CLASS(wxGnomePrintDC)
- DECLARE_NO_COPY_CLASS(wxGnomePrintDC)
+ DECLARE_DYNAMIC_CLASS(wxGnomePrinterDCImpl)
+ DECLARE_NO_COPY_CLASS(wxGnomePrinterDCImpl)
};
// ----------------------------------------------------------------------------