1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: private implementation for printing on MacOS
4 // Author: Stefan Csomor
8 // Copyright: (c) Stefan Csomor
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_MAC_PRIVATE_PRINT_H_
13 #define _WX_MAC_PRIVATE_PRINT_H_
15 #include "wx/cmndata.h"
17 #include "wx/mac/private.h"
19 #if TARGET_CARBON && !defined(__DARWIN__)
20 # include <PMApplication.h>
24 # include "Printing.h"
27 #if !PM_USE_SESSION_APIS
28 #error "only Carbon Printing Session API is supported"
31 class WXDLLEXPORT wxMacCarbonPrintData
: public wxPrintNativeDataBase
34 wxMacCarbonPrintData() ;
35 virtual ~wxMacCarbonPrintData() ;
37 virtual bool TransferTo( wxPrintData
&data
);
38 virtual bool TransferFrom( const wxPrintData
&data
);
40 virtual bool IsOk() const ;
42 virtual void TransferFrom( wxPageSetupDialogData
* ) ;
43 virtual void TransferTo( wxPageSetupDialogData
* ) ;
45 virtual void TransferFrom( wxPrintDialogData
* ) ;
46 virtual void TransferTo( wxPrintDialogData
* ) ;
48 virtual void ValidateOrCreate() ;
50 PMPrintSession m_macPrintSession
;
51 PMPageFormat m_macPageFormat
;
52 PMPrintSettings m_macPrintSettings
;
54 DECLARE_DYNAMIC_CLASS(wxMacCarbonPrintData
)
57 #endif // _WX_MAC_PRIVATE_PRINT_H_