]> git.saurik.com Git - wxWidgets.git/blame - include/wx/mac/carbon/dcprint.h
forwarding position changed events to peer
[wxWidgets.git] / include / wx / mac / carbon / dcprint.h
CommitLineData
8cf73271
SC
1/////////////////////////////////////////////////////////////////////////////
2// Name: dcprint.h
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
15#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
16#pragma interface "dcprint.h"
17#endif
18
19#include "wx/dc.h"
20#include "wx/cmndata.h"
21
22class wxNativePrinterDC ;
23
24class WXDLLEXPORT wxPrinterDC: public wxDC
25{
26 public:
179e085f 27#if wxUSE_PRINTING_ARCHITECTURE
8cf73271
SC
28 DECLARE_CLASS(wxPrinterDC)
29
8cf73271
SC
30 // Create a printer DC
31 wxPrinterDC(const wxPrintData& printdata );
32 ~wxPrinterDC();
33
34 virtual bool StartDoc( const wxString& WXUNUSED(message) ) ;
35 virtual void EndDoc(void) ;
36 virtual void StartPage(void) ;
37 virtual void EndPage(void) ;
38 wxPrintData& GetPrintData() { return m_printData; }
39 virtual void DoGetSize( int *width, int *height ) const;
20b69855
SC
40#if wxMAC_USE_CORE_GRAPHICS
41 void MacSetCGContext( void * cg ) ;
42#endif
8cf73271
SC
43 protected:
44 wxPrintData m_printData ;
45 wxNativePrinterDC* m_nativePrinterDC ;
46#endif // wxUSE_PRINTING_ARCHITECTURE
47};
48
49#endif
50 // _WX_DCPRINT_H_
51