]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/osx/carbon/private/print.h
wxMessageBox off the main thread lost result code.
[wxWidgets.git] / include / wx / osx / carbon / private / print.h
... / ...
CommitLineData
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// Copyright: (c) Stefan Csomor
8// Licence: wxWindows licence
9/////////////////////////////////////////////////////////////////////////////
10
11#ifndef _WX_MAC_PRIVATE_PRINT_H_
12#define _WX_MAC_PRIVATE_PRINT_H_
13
14#include "wx/cmndata.h"
15#include "wx/print.h"
16
17// for PrintingManager
18#include "ApplicationServices/ApplicationServices.h"
19
20class WXDLLIMPEXP_CORE wxOSXPrintData : public wxPrintNativeDataBase
21{
22public:
23 wxOSXPrintData();
24 virtual ~wxOSXPrintData();
25
26 virtual bool TransferTo( wxPrintData &data );
27 virtual bool TransferFrom( const wxPrintData &data );
28
29 virtual bool IsOk() const ;
30
31 virtual void TransferFrom( wxPageSetupDialogData * );
32 virtual void TransferTo( wxPageSetupDialogData * );
33
34 virtual void TransferFrom( wxPrintDialogData * );
35 virtual void TransferTo( wxPrintDialogData * );
36
37 PMPrintSession GetPrintSession() { return m_macPrintSession; }
38 PMPageFormat GetPageFormat() { return m_macPageFormat; }
39 PMPrintSettings GetPrintSettings() { return m_macPrintSettings; }
40protected :
41 virtual void TransferPrinterNameFrom( const wxPrintData &data );
42 virtual void TransferPaperInfoFrom( const wxPrintData &data );
43 virtual void TransferResolutionFrom( const wxPrintData &data );
44
45 virtual void TransferPrinterNameTo( wxPrintData &data );
46 virtual void TransferPaperInfoTo( wxPrintData &data );
47 virtual void TransferResolutionTo( wxPrintData &data );
48
49
50 virtual void UpdateFromPMState();
51 virtual void UpdateToPMState();
52
53 PMPrintSession m_macPrintSession ;
54 PMPageFormat m_macPageFormat ;
55 PMPrintSettings m_macPrintSettings ;
56 PMPaper m_macPaper;
57private:
58 DECLARE_DYNAMIC_CLASS(wxOSXPrintData)
59} ;
60
61WXDLLIMPEXP_CORE wxPrintNativeDataBase* wxOSXCreatePrintData();
62
63#if wxOSX_USE_CARBON
64class WXDLLIMPEXP_CORE wxOSXCarbonPrintData : public wxOSXPrintData
65{
66public:
67 wxOSXCarbonPrintData();
68 virtual ~wxOSXCarbonPrintData();
69private:
70 DECLARE_DYNAMIC_CLASS(wxOSXCarbonPrintData)
71} ;
72#endif
73
74#if wxOSX_USE_COCOA
75class WXDLLIMPEXP_CORE wxOSXCocoaPrintData : public wxOSXPrintData
76{
77public:
78 wxOSXCocoaPrintData();
79 virtual ~wxOSXCocoaPrintData();
80
81 WX_NSPrintInfo GetNSPrintInfo() { return m_macPrintInfo; }
82protected:
83 virtual void UpdateFromPMState();
84 virtual void UpdateToPMState();
85
86 WX_NSPrintInfo m_macPrintInfo;
87private:
88 DECLARE_DYNAMIC_CLASS(wxOSXCocoaPrintData)
89} ;
90#endif
91
92#endif // _WX_MAC_PRIVATE_PRINT_H_