2004-03-23 12:38:49 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2006-10-16 05:30:01 -04:00
|
|
|
// Name: wx/mac/carbon/private/print.h
|
2004-03-23 12:38:49 -05:00
|
|
|
// Purpose: private implementation for printing on MacOS
|
|
|
|
// Author: Stefan Csomor
|
|
|
|
// Modified by:
|
|
|
|
// Created: 03/02/99
|
2006-10-16 05:30:01 -04:00
|
|
|
// RCS-ID: $Id$
|
2004-03-23 12:38:49 -05:00
|
|
|
// Copyright: (c) Stefan Csomor
|
2004-05-23 16:53:33 -04:00
|
|
|
// Licence: wxWindows licence
|
2004-03-23 12:38:49 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_MAC_PRIVATE_PRINT_H_
|
|
|
|
#define _WX_MAC_PRIVATE_PRINT_H_
|
|
|
|
|
|
|
|
#include "wx/cmndata.h"
|
2005-04-01 11:36:36 -05:00
|
|
|
#include "wx/print.h"
|
2004-03-23 12:38:49 -05:00
|
|
|
#include "wx/mac/private.h"
|
|
|
|
|
|
|
|
#if TARGET_CARBON && !defined(__DARWIN__)
|
|
|
|
# include <PMApplication.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __DARWIN__
|
|
|
|
# include "Printing.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if !PM_USE_SESSION_APIS
|
|
|
|
#error "only Carbon Printing Session API is supported"
|
|
|
|
#endif
|
|
|
|
|
2006-10-08 19:45:33 -04:00
|
|
|
class WXDLLEXPORT wxMacCarbonPrintData : public wxPrintNativeDataBase
|
2004-03-23 12:38:49 -05:00
|
|
|
{
|
|
|
|
public :
|
|
|
|
wxMacCarbonPrintData() ;
|
2005-04-01 11:36:36 -05:00
|
|
|
virtual ~wxMacCarbonPrintData() ;
|
|
|
|
|
|
|
|
virtual bool TransferTo( wxPrintData &data );
|
|
|
|
virtual bool TransferFrom( const wxPrintData &data );
|
|
|
|
|
2006-10-08 19:45:33 -04:00
|
|
|
virtual bool IsOk() const ;
|
|
|
|
|
2004-03-23 12:38:49 -05:00
|
|
|
virtual void TransferFrom( wxPageSetupDialogData * ) ;
|
|
|
|
virtual void TransferTo( wxPageSetupDialogData * ) ;
|
2006-10-08 19:45:33 -04:00
|
|
|
|
2004-03-23 12:38:49 -05:00
|
|
|
virtual void TransferFrom( wxPrintDialogData * ) ;
|
|
|
|
virtual void TransferTo( wxPrintDialogData * ) ;
|
|
|
|
private :
|
|
|
|
virtual void ValidateOrCreate() ;
|
|
|
|
public :
|
2006-10-08 19:45:33 -04:00
|
|
|
PMPrintSession m_macPrintSession ;
|
2004-03-23 12:38:49 -05:00
|
|
|
PMPageFormat m_macPageFormat ;
|
|
|
|
PMPrintSettings m_macPrintSettings ;
|
2005-04-01 11:36:36 -05:00
|
|
|
private:
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxMacCarbonPrintData)
|
2004-03-23 12:38:49 -05:00
|
|
|
} ;
|
|
|
|
|
2006-10-08 19:45:33 -04:00
|
|
|
#endif // _WX_MAC_PRIVATE_PRINT_H_
|