]> git.saurik.com Git - wxWidgets.git/blame - include/wx/mac/carbon/dcprint.h
add support for asynchronous execution in wxBase (patch 1906889)
[wxWidgets.git] / include / wx / mac / carbon / dcprint.h
CommitLineData
8cf73271 1/////////////////////////////////////////////////////////////////////////////
f415cab9 2// Name: wx/mac/carbon/dcprint.h
8cf73271
SC
3// Purpose: wxPrinterDC class
4// Author: Stefan Csomor
5// Modified by:
6// Created: 1998-01-01
7// RCS-ID: $Id$
8// Copyright: (c) Stefan Csomor
65571936 9// Licence: wxWindows licence
8cf73271
SC
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_DCPRINT_H_
13#define _WX_DCPRINT_H_
14
8cf73271 15#include "wx/dc.h"
888dde65 16#include "wx/dcgraph.h"
8cf73271
SC
17#include "wx/cmndata.h"
18
19class wxNativePrinterDC ;
20
888dde65 21class WXDLLEXPORT wxPrinterDCImpl: public wxGCDCImpl
8cf73271 22{
888dde65 23public:
179e085f 24#if wxUSE_PRINTING_ARCHITECTURE
8cf73271 25
888dde65
RR
26 wxPrinterDCImpl( wxPrinterDC *owner, const wxPrintData& printdata );
27 virtual ~wxPrinterDCImpl();
8cf73271
SC
28
29 virtual bool StartDoc( const wxString& WXUNUSED(message) ) ;
30 virtual void EndDoc(void) ;
31 virtual void StartPage(void) ;
32 virtual void EndPage(void) ;
f415cab9
JS
33
34 wxRect GetPaperRect();
35
8cf73271 36 wxPrintData& GetPrintData() { return m_printData; }
db49000e 37 virtual wxSize GetPPI() const;
888dde65
RR
38
39protected:
6f02a879 40 virtual void DoGetSize( int *width, int *height ) const;
888dde65
RR
41
42 wxPrintData m_printData ;
8cf73271 43 wxNativePrinterDC* m_nativePrinterDC ;
888dde65
RR
44
45private:
46 DECLARE_CLASS(wxPrinterDC)
8cf73271
SC
47#endif // wxUSE_PRINTING_ARCHITECTURE
48};
49
50#endif
51 // _WX_DCPRINT_H_
52