]> git.saurik.com Git - wxWidgets.git/blob - include/wx/mac/carbon/private/print.h
fixed Context_Current spelling
[wxWidgets.git] / include / wx / mac / carbon / private / print.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: print.h
3 // Purpose: private implementation for printing on MacOS
4 // Author: Stefan Csomor
5 // Modified by:
6 // Created: 03/02/99
7 // RCS-ID: $Id:
8 // Copyright: (c) Stefan Csomor
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_MAC_PRIVATE_PRINT_H_
13 #define _WX_MAC_PRIVATE_PRINT_H_
14
15 #include "wx/cmndata.h"
16 #include "wx/mac/private.h"
17
18 #if TARGET_CARBON && !defined(__DARWIN__)
19 # include <PMApplication.h>
20 #endif
21
22 #ifndef __DARWIN__
23 # include "Printing.h"
24 #endif
25
26 #if !PM_USE_SESSION_APIS
27 #error "only Carbon Printing Session API is supported"
28 #endif
29
30 class wxNativePrintData
31 {
32 public :
33 wxNativePrintData() {}
34 virtual ~wxNativePrintData() {}
35
36 virtual void TransferFrom( wxPrintData * ) = 0 ;
37 virtual void TransferTo( wxPrintData * ) = 0 ;
38
39 virtual void TransferFrom( wxPageSetupDialogData * ) = 0 ;
40 virtual void TransferTo( wxPageSetupDialogData * ) = 0 ;
41
42 virtual void TransferFrom( wxPrintDialogData * ) = 0 ;
43 virtual void TransferTo( wxPrintDialogData * ) = 0 ;
44
45 virtual void CopyFrom( wxNativePrintData * ) = 0;
46
47 virtual int ShowPrintDialog() = 0 ;
48 virtual int ShowPageSetupDialog() = 0 ;
49
50 static wxNativePrintData* Create() ;
51 } ;
52
53 class wxMacCarbonPrintData : public wxNativePrintData
54 {
55 public :
56 wxMacCarbonPrintData() ;
57 ~wxMacCarbonPrintData() ;
58
59 virtual void TransferFrom( wxPrintData * ) ;
60 virtual void TransferTo( wxPrintData * ) ;
61
62 virtual void TransferFrom( wxPageSetupDialogData * ) ;
63 virtual void TransferTo( wxPageSetupDialogData * ) ;
64
65 virtual void TransferFrom( wxPrintDialogData * ) ;
66 virtual void TransferTo( wxPrintDialogData * ) ;
67
68 virtual void CopyFrom( wxNativePrintData * ) ;
69 virtual int ShowPrintDialog() ;
70 virtual int ShowPageSetupDialog() ;
71 private :
72 virtual void ValidateOrCreate() ;
73 public :
74 PMPrintSession m_macPrintSession ;
75 PMPageFormat m_macPageFormat ;
76 PMPrintSettings m_macPrintSettings ;
77 } ;
78
79 #endif