1///////////////////////////////////////////////////////////////////////////// 2// Name: wx/mac/carbon/private/print.h 3// Purpose: private implementation for printing on MacOS 4// Author: Stefan Csomor 5// Modified by: 6// Created: 03/02/99 7// RCS-ID: $Id: print.h 58157 2009-01-16 19:21:13Z SC $ 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#include "wx/mac/private.h" 18 19#if TARGET_CARBON && !defined(__DARWIN__) 20# include <PMApplication.h> 21#endif 22 23#ifndef __DARWIN__ 24# include "Printing.h" 25#endif 26 27#if !PM_USE_SESSION_APIS 28#error "only Carbon Printing Session API is supported" 29#endif 30 31class WXDLLEXPORT wxMacCarbonPrintData : public wxPrintNativeDataBase 32{ 33public : 34 wxMacCarbonPrintData() ; 35 virtual ~wxMacCarbonPrintData() ; 36 37 virtual bool TransferTo( wxPrintData &data ); 38 virtual bool TransferFrom( const wxPrintData &data ); 39 40 virtual bool IsOk() const ; 41 42 virtual void TransferFrom( wxPageSetupDialogData * ) ; 43 virtual void TransferTo( wxPageSetupDialogData * ) ; 44 45 virtual void TransferFrom( wxPrintDialogData * ) ; 46 virtual void TransferTo( wxPrintDialogData * ) ; 47public : 48 PMPrintSession m_macPrintSession ; 49 PMPaper m_macPaper ; 50 PMPageFormat m_macPageFormat ; 51 PMPrintSettings m_macPrintSettings ; 52private: 53 DECLARE_DYNAMIC_CLASS(wxMacCarbonPrintData) 54} ; 55 56#endif // _WX_MAC_PRIVATE_PRINT_H_ 57