]>
Commit | Line | Data |
---|---|---|
1 | ///////////////////////////////////////////////////////////////////////////// | |
2 | // Name: wx/osx/carbon/private/print.h | |
3 | // Purpose: private implementation for printing on OS X | |
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 | ||
18 | // for PrintingManager | |
19 | #include "ApplicationServices/ApplicationServices.h" | |
20 | ||
21 | class WXDLLIMPEXP_CORE wxOSXPrintData : public wxPrintNativeDataBase | |
22 | { | |
23 | public: | |
24 | wxOSXPrintData(); | |
25 | virtual ~wxOSXPrintData(); | |
26 | ||
27 | virtual bool TransferTo( wxPrintData &data ); | |
28 | virtual bool TransferFrom( const wxPrintData &data ); | |
29 | ||
30 | virtual bool IsOk() const ; | |
31 | ||
32 | virtual void TransferFrom( wxPageSetupDialogData * ); | |
33 | virtual void TransferTo( wxPageSetupDialogData * ); | |
34 | ||
35 | virtual void TransferFrom( wxPrintDialogData * ); | |
36 | virtual void TransferTo( wxPrintDialogData * ); | |
37 | ||
38 | PMPrintSession GetPrintSession() { return m_macPrintSession; } | |
39 | PMPageFormat GetPageFormat() { return m_macPageFormat; } | |
40 | PMPrintSettings GetPrintSettings() { return m_macPrintSettings; } | |
41 | protected : | |
42 | virtual void UpdateFromPMState(); | |
43 | virtual void UpdateToPMState(); | |
44 | ||
45 | PMPrintSession m_macPrintSession ; | |
46 | PMPageFormat m_macPageFormat ; | |
47 | PMPrintSettings m_macPrintSettings ; | |
48 | PMPaper m_macPaper; | |
49 | private: | |
50 | DECLARE_DYNAMIC_CLASS(wxOSXPrintData) | |
51 | } ; | |
52 | ||
53 | WXDLLIMPEXP_CORE wxPrintNativeDataBase* wxOSXCreatePrintData(); | |
54 | ||
55 | #if wxOSX_USE_CARBON | |
56 | class WXDLLIMPEXP_CORE wxOSXCarbonPrintData : public wxOSXPrintData | |
57 | { | |
58 | public: | |
59 | wxOSXCarbonPrintData(); | |
60 | virtual ~wxOSXCarbonPrintData(); | |
61 | private: | |
62 | DECLARE_DYNAMIC_CLASS(wxOSXCarbonPrintData) | |
63 | } ; | |
64 | #endif | |
65 | ||
66 | #if wxOSX_USE_COCOA | |
67 | class WXDLLIMPEXP_CORE wxOSXCocoaPrintData : public wxOSXPrintData | |
68 | { | |
69 | public: | |
70 | wxOSXCocoaPrintData(); | |
71 | virtual ~wxOSXCocoaPrintData(); | |
72 | ||
73 | WX_NSPrintInfo GetNSPrintInfo() { return m_macPrintInfo; } | |
74 | protected: | |
75 | virtual void UpdateFromPMState(); | |
76 | virtual void UpdateToPMState(); | |
77 | ||
78 | WX_NSPrintInfo m_macPrintInfo; | |
79 | private: | |
80 | DECLARE_DYNAMIC_CLASS(wxOSXCocoaPrintData) | |
81 | } ; | |
82 | #endif | |
83 | ||
84 | #endif // _WX_MAC_PRIVATE_PRINT_H_ |