1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/osx/carbon/private/print.h
3 // Purpose: private implementation for printing on OS X
4 // Author: Stefan Csomor
7 // Copyright: (c) Stefan Csomor
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_MAC_PRIVATE_PRINT_H_
12 #define _WX_MAC_PRIVATE_PRINT_H_
14 #include "wx/cmndata.h"
17 // for PrintingManager
18 #include "ApplicationServices/ApplicationServices.h"
20 class WXDLLIMPEXP_CORE wxOSXPrintData
: public wxPrintNativeDataBase
24 virtual ~wxOSXPrintData();
26 virtual bool TransferTo( wxPrintData
&data
);
27 virtual bool TransferFrom( const wxPrintData
&data
);
29 virtual bool IsOk() const ;
31 virtual void TransferFrom( wxPageSetupDialogData
* );
32 virtual void TransferTo( wxPageSetupDialogData
* );
34 virtual void TransferFrom( wxPrintDialogData
* );
35 virtual void TransferTo( wxPrintDialogData
* );
37 PMPrintSession
GetPrintSession() { return m_macPrintSession
; }
38 PMPageFormat
GetPageFormat() { return m_macPageFormat
; }
39 PMPrintSettings
GetPrintSettings() { return m_macPrintSettings
; }
41 virtual void TransferPrinterNameFrom( const wxPrintData
&data
);
42 virtual void TransferPaperInfoFrom( const wxPrintData
&data
);
43 virtual void TransferResolutionFrom( const wxPrintData
&data
);
45 virtual void TransferPrinterNameTo( wxPrintData
&data
);
46 virtual void TransferPaperInfoTo( wxPrintData
&data
);
47 virtual void TransferResolutionTo( wxPrintData
&data
);
50 virtual void UpdateFromPMState();
51 virtual void UpdateToPMState();
53 PMPrintSession m_macPrintSession
;
54 PMPageFormat m_macPageFormat
;
55 PMPrintSettings m_macPrintSettings
;
58 DECLARE_DYNAMIC_CLASS(wxOSXPrintData
)
61 WXDLLIMPEXP_CORE wxPrintNativeDataBase
* wxOSXCreatePrintData();
64 class WXDLLIMPEXP_CORE wxOSXCarbonPrintData
: public wxOSXPrintData
67 wxOSXCarbonPrintData();
68 virtual ~wxOSXCarbonPrintData();
70 DECLARE_DYNAMIC_CLASS(wxOSXCarbonPrintData
)
75 class WXDLLIMPEXP_CORE wxOSXCocoaPrintData
: public wxOSXPrintData
78 wxOSXCocoaPrintData();
79 virtual ~wxOSXCocoaPrintData();
81 WX_NSPrintInfo
GetNSPrintInfo() { return m_macPrintInfo
; }
83 virtual void UpdateFromPMState();
84 virtual void UpdateToPMState();
86 WX_NSPrintInfo m_macPrintInfo
;
88 DECLARE_DYNAMIC_CLASS(wxOSXCocoaPrintData
)
92 #endif // _WX_MAC_PRIVATE_PRINT_H_