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 UpdateFromPMState();
43 virtual void UpdateToPMState();
45 PMPrintSession m_macPrintSession
;
46 PMPageFormat m_macPageFormat
;
47 PMPrintSettings m_macPrintSettings
;
50 DECLARE_DYNAMIC_CLASS(wxOSXPrintData
)
53 WXDLLIMPEXP_CORE wxPrintNativeDataBase
* wxOSXCreatePrintData();
56 class WXDLLIMPEXP_CORE wxOSXCarbonPrintData
: public wxOSXPrintData
59 wxOSXCarbonPrintData();
60 virtual ~wxOSXCarbonPrintData();
62 DECLARE_DYNAMIC_CLASS(wxOSXCarbonPrintData
)
67 class WXDLLIMPEXP_CORE wxOSXCocoaPrintData
: public wxOSXPrintData
70 wxOSXCocoaPrintData();
71 virtual ~wxOSXCocoaPrintData();
73 WX_NSPrintInfo
GetNSPrintInfo() { return m_macPrintInfo
; }
75 virtual void UpdateFromPMState();
76 virtual void UpdateToPMState();
78 WX_NSPrintInfo m_macPrintInfo
;
80 DECLARE_DYNAMIC_CLASS(wxOSXCocoaPrintData
)
84 #endif // _WX_MAC_PRIVATE_PRINT_H_