1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/osx/carbon/private/print.h
3 // Purpose: private implementation for printing on OS X
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"
18 // for PrintingManager
19 #include "ApplicationServices/ApplicationServices.h"
21 class WXDLLIMPEXP_CORE wxOSXPrintData
: public wxPrintNativeDataBase
25 virtual ~wxOSXPrintData();
27 virtual bool TransferTo( wxPrintData
&data
);
28 virtual bool TransferFrom( const wxPrintData
&data
);
30 virtual bool IsOk() const ;
32 virtual void TransferFrom( wxPageSetupDialogData
* );
33 virtual void TransferTo( wxPageSetupDialogData
* );
35 virtual void TransferFrom( wxPrintDialogData
* );
36 virtual void TransferTo( wxPrintDialogData
* );
38 PMPrintSession
GetPrintSession() { return m_macPrintSession
; }
39 PMPageFormat
GetPageFormat() { return m_macPageFormat
; }
40 PMPrintSettings
GetPrintSettings() { return m_macPrintSettings
; }
42 virtual void TransferPrinterNameFrom( const wxPrintData
&data
);
43 virtual void TransferPaperInfoFrom( const wxPrintData
&data
);
44 virtual void TransferResolutionFrom( const wxPrintData
&data
);
46 virtual void TransferPrinterNameTo( wxPrintData
&data
);
47 virtual void TransferPaperInfoTo( wxPrintData
&data
);
48 virtual void TransferResolutionTo( wxPrintData
&data
);
51 virtual void UpdateFromPMState();
52 virtual void UpdateToPMState();
54 PMPrintSession m_macPrintSession
;
55 PMPageFormat m_macPageFormat
;
56 PMPrintSettings m_macPrintSettings
;
59 DECLARE_DYNAMIC_CLASS(wxOSXPrintData
)
62 WXDLLIMPEXP_CORE wxPrintNativeDataBase
* wxOSXCreatePrintData();
65 class WXDLLIMPEXP_CORE wxOSXCarbonPrintData
: public wxOSXPrintData
68 wxOSXCarbonPrintData();
69 virtual ~wxOSXCarbonPrintData();
71 DECLARE_DYNAMIC_CLASS(wxOSXCarbonPrintData
)
76 class WXDLLIMPEXP_CORE wxOSXCocoaPrintData
: public wxOSXPrintData
79 wxOSXCocoaPrintData();
80 virtual ~wxOSXCocoaPrintData();
82 WX_NSPrintInfo
GetNSPrintInfo() { return m_macPrintInfo
; }
84 virtual void UpdateFromPMState();
85 virtual void UpdateToPMState();
87 WX_NSPrintInfo m_macPrintInfo
;
89 DECLARE_DYNAMIC_CLASS(wxOSXCocoaPrintData
)
93 #endif // _WX_MAC_PRIVATE_PRINT_H_