2008-06-11 12:30:48 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2009-01-17 03:46:00 -05:00
|
|
|
// Name: wx/osx/carbon/private/print.h
|
|
|
|
// Purpose: private implementation for printing on OS X
|
2008-06-11 12:30:48 -04:00
|
|
|
// Author: Stefan Csomor
|
|
|
|
// Modified by:
|
|
|
|
// Created: 03/02/99
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) Stefan Csomor
|
|
|
|
// Licence: wxWindows licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_MAC_PRIVATE_PRINT_H_
|
|
|
|
#define _WX_MAC_PRIVATE_PRINT_H_
|
|
|
|
|
|
|
|
#include "wx/cmndata.h"
|
|
|
|
#include "wx/print.h"
|
2009-01-17 03:46:00 -05:00
|
|
|
|
|
|
|
// for PrintingManager
|
2008-06-11 12:30:48 -04:00
|
|
|
#include "ApplicationServices/ApplicationServices.h"
|
|
|
|
|
2009-01-17 03:46:00 -05:00
|
|
|
class WXDLLIMPEXP_CORE wxOSXPrintData : public wxPrintNativeDataBase
|
2008-06-11 12:30:48 -04:00
|
|
|
{
|
2009-01-17 03:46:00 -05:00
|
|
|
public:
|
|
|
|
wxOSXPrintData();
|
|
|
|
virtual ~wxOSXPrintData();
|
2008-06-11 12:30:48 -04:00
|
|
|
|
|
|
|
virtual bool TransferTo( wxPrintData &data );
|
|
|
|
virtual bool TransferFrom( const wxPrintData &data );
|
|
|
|
|
|
|
|
virtual bool IsOk() const ;
|
|
|
|
|
2009-01-17 03:46:00 -05:00
|
|
|
virtual void TransferFrom( wxPageSetupDialogData * );
|
|
|
|
virtual void TransferTo( wxPageSetupDialogData * );
|
|
|
|
|
|
|
|
virtual void TransferFrom( wxPrintDialogData * );
|
|
|
|
virtual void TransferTo( wxPrintDialogData * );
|
2009-08-21 06:41:26 -04:00
|
|
|
|
|
|
|
PMPrintSession GetPrintSession() { return m_macPrintSession; }
|
|
|
|
PMPageFormat GetPageFormat() { return m_macPageFormat; }
|
|
|
|
PMPrintSettings GetPrintSettings() { return m_macPrintSettings; }
|
2009-01-17 03:46:00 -05:00
|
|
|
protected :
|
|
|
|
virtual void UpdateFromPMState();
|
|
|
|
virtual void UpdateToPMState();
|
2008-06-11 12:30:48 -04:00
|
|
|
|
|
|
|
PMPrintSession m_macPrintSession ;
|
|
|
|
PMPageFormat m_macPageFormat ;
|
|
|
|
PMPrintSettings m_macPrintSettings ;
|
2009-01-17 03:46:00 -05:00
|
|
|
PMPaper m_macPaper;
|
|
|
|
private:
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxOSXPrintData)
|
|
|
|
} ;
|
|
|
|
|
|
|
|
WXDLLIMPEXP_CORE wxPrintNativeDataBase* wxOSXCreatePrintData();
|
|
|
|
|
|
|
|
#if wxOSX_USE_CARBON
|
|
|
|
class WXDLLIMPEXP_CORE wxOSXCarbonPrintData : public wxOSXPrintData
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
wxOSXCarbonPrintData();
|
|
|
|
virtual ~wxOSXCarbonPrintData();
|
|
|
|
private:
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxOSXCarbonPrintData)
|
|
|
|
} ;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if wxOSX_USE_COCOA
|
|
|
|
class WXDLLIMPEXP_CORE wxOSXCocoaPrintData : public wxOSXPrintData
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
wxOSXCocoaPrintData();
|
|
|
|
virtual ~wxOSXCocoaPrintData();
|
|
|
|
|
|
|
|
WX_NSPrintInfo GetNSPrintInfo() { return m_macPrintInfo; }
|
|
|
|
protected:
|
|
|
|
virtual void UpdateFromPMState();
|
|
|
|
virtual void UpdateToPMState();
|
|
|
|
|
|
|
|
WX_NSPrintInfo m_macPrintInfo;
|
2008-06-11 12:30:48 -04:00
|
|
|
private:
|
2009-01-17 03:46:00 -05:00
|
|
|
DECLARE_DYNAMIC_CLASS(wxOSXCocoaPrintData)
|
2008-06-11 12:30:48 -04:00
|
|
|
} ;
|
2009-01-17 03:46:00 -05:00
|
|
|
#endif
|
2008-06-11 12:30:48 -04:00
|
|
|
|
|
|
|
#endif // _WX_MAC_PRIVATE_PRINT_H_
|