]> git.saurik.com Git - wxWidgets.git/blob - include/wx/mac/carbon/private/print.h
added WXDLLIMPEXP_FWD_FOO macros in addition to WXDLLIMPEXP_FOO for use with forward...
[wxWidgets.git] / include / wx / mac / carbon / private / print.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/mac/carbon/private/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/print.h"
17 #include "wx/mac/private.h"
18
19 #if TARGET_CARBON && !defined(__DARWIN__)
20 # include <PMApplication.h>
21 #endif
22
23 #ifndef __DARWIN__
24 # include "Printing.h"
25 #endif
26
27 #if !PM_USE_SESSION_APIS
28 #error "only Carbon Printing Session API is supported"
29 #endif
30
31 class WXDLLEXPORT wxMacCarbonPrintData : public wxPrintNativeDataBase
32 {
33 public :
34 wxMacCarbonPrintData() ;
35 virtual ~wxMacCarbonPrintData() ;
36
37 virtual bool TransferTo( wxPrintData &data );
38 virtual bool TransferFrom( const wxPrintData &data );
39
40 virtual bool IsOk() const ;
41
42 virtual void TransferFrom( wxPageSetupDialogData * ) ;
43 virtual void TransferTo( wxPageSetupDialogData * ) ;
44
45 virtual void TransferFrom( wxPrintDialogData * ) ;
46 virtual void TransferTo( wxPrintDialogData * ) ;
47 private :
48 virtual void ValidateOrCreate() ;
49 public :
50 PMPrintSession m_macPrintSession ;
51 PMPageFormat m_macPageFormat ;
52 PMPrintSettings m_macPrintSettings ;
53 private:
54 DECLARE_DYNAMIC_CLASS(wxMacCarbonPrintData)
55 } ;
56
57 #endif // _WX_MAC_PRIVATE_PRINT_H_