1
/////////////////////////////////////////////////////////////////////////////
2
// Name: wx/osx/dcprint.h
3
// Purpose: wxPrinterDC class
4
// Author: Stefan Csomor
7
// Copyright: (c) Stefan Csomor
8
// Licence: wxWindows licence
9
/////////////////////////////////////////////////////////////////////////////
11
#ifndef _WX_DCPRINT_H_
12
#define _WX_DCPRINT_H_
15
#include "wx/dcgraph.h"
16
#include "wx/cmndata.h"
18
class wxNativePrinterDC ;
20
class WXDLLIMPEXP_CORE wxPrinterDCImpl: public wxGCDCImpl
23
#if wxUSE_PRINTING_ARCHITECTURE
25
wxPrinterDCImpl( wxPrinterDC *owner, const wxPrintData& printdata );
26
virtual ~wxPrinterDCImpl();
28
virtual bool StartDoc( const wxString& WXUNUSED(message) ) ;
29
virtual void EndDoc(void) ;
30
virtual void StartPage(void) ;
31
virtual void EndPage(void) ;
33
wxRect GetPaperRect() const;
35
wxPrintData& GetPrintData() { return m_printData; }
36
virtual wxSize GetPPI() const;
39
virtual void DoGetSize( int *width, int *height ) const;
41
wxPrintData m_printData ;
42
wxNativePrinterDC* m_nativePrinterDC ;
45
DECLARE_CLASS(wxPrinterDC)
46
#endif // wxUSE_PRINTING_ARCHITECTURE