]> git.saurik.com Git - wxWidgets.git/blame - 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
5c6eb3a8 1/////////////////////////////////////////////////////////////////////////////
c347101b
SC
2// Name: wx/osx/carbon/private/print.h
3// Purpose: private implementation for printing on OS X
5c6eb3a8
SC
4// Author: Stefan Csomor
5// Modified by:
6// Created: 03/02/99
5c6eb3a8
SC
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"
c347101b
SC
16
17// for PrintingManager
5c6eb3a8
SC
18#include "ApplicationServices/ApplicationServices.h"
19
c347101b 20class WXDLLIMPEXP_CORE wxOSXPrintData : public wxPrintNativeDataBase
5c6eb3a8 21{
c347101b
SC
22public:
23 wxOSXPrintData();
24 virtual ~wxOSXPrintData();
5c6eb3a8
SC
25
26 virtual bool TransferTo( wxPrintData &data );
27 virtual bool TransferFrom( const wxPrintData &data );
28
29 virtual bool IsOk() const ;
30
c347101b
SC
31 virtual void TransferFrom( wxPageSetupDialogData * );
32 virtual void TransferTo( wxPageSetupDialogData * );
33
34 virtual void TransferFrom( wxPrintDialogData * );
35 virtual void TransferTo( wxPrintDialogData * );
03647350
VZ
36
37 PMPrintSession GetPrintSession() { return m_macPrintSession; }
38 PMPageFormat GetPageFormat() { return m_macPageFormat; }
39 PMPrintSettings GetPrintSettings() { return m_macPrintSettings; }
c347101b 40protected :
1020adb5
SC
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
ce00f59b 49
c347101b
SC
50 virtual void UpdateFromPMState();
51 virtual void UpdateToPMState();
5c6eb3a8 52
5c6eb3a8
SC
53 PMPrintSession m_macPrintSession ;
54 PMPageFormat m_macPageFormat ;
55 PMPrintSettings m_macPrintSettings ;
c347101b
SC
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;
5c6eb3a8 87private:
c347101b 88 DECLARE_DYNAMIC_CLASS(wxOSXCocoaPrintData)
5c6eb3a8 89} ;
c347101b 90#endif
5c6eb3a8
SC
91
92#endif // _WX_MAC_PRIVATE_PRINT_H_