2004-03-23 12:35:05 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: printdlg.h
|
|
|
|
// Purpose: wxPrintDialog, wxPageSetupDialog classes.
|
|
|
|
// Use generic, PostScript version if no
|
|
|
|
// platform-specific implementation.
|
|
|
|
// Author: Stefan Csomor
|
|
|
|
// Modified by:
|
|
|
|
// Created: 1998-01-01
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) Stefan Csomor
|
2004-05-23 16:53:33 -04:00
|
|
|
// Licence: wxWindows licence
|
2004-03-23 12:35:05 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_PRINTDLG_H_
|
|
|
|
#define _WX_PRINTDLG_H_
|
|
|
|
|
|
|
|
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
|
|
|
|
#pragma interface "printdlg.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "wx/dialog.h"
|
|
|
|
#include "wx/cmndata.h"
|
2004-10-16 18:11:48 -04:00
|
|
|
#include "wx/printdlg.h"
|
2004-10-17 13:25:40 -04:00
|
|
|
#include "wx/prntbase.h"
|
2004-03-23 12:35:05 -05:00
|
|
|
|
2004-10-17 13:25:40 -04:00
|
|
|
//----------------------------------------------------------------------------
|
|
|
|
// wxMacPrintNativeData
|
|
|
|
//----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
class WXDLLEXPORT wxMacPrintNativeData: public wxPrintNativeDataBase
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
wxMacPrintNativeData() {};
|
|
|
|
virtual ~wxMacPrintNativeData() {};
|
|
|
|
|
2004-10-17 19:00:41 -04:00
|
|
|
virtual bool TransferTo( wxPrintData &data ) { return true; }
|
|
|
|
virtual bool TransferFrom( const wxPrintData &data ) { return true; }
|
2004-10-17 13:25:40 -04:00
|
|
|
|
|
|
|
virtual bool Ok() const { return true; }
|
|
|
|
};
|
|
|
|
|
2004-03-23 12:35:05 -05:00
|
|
|
/*
|
2004-11-20 09:46:25 -05:00
|
|
|
* wxMacPrintDialog
|
|
|
|
* The Mac dialog for printing
|
2004-03-23 12:35:05 -05:00
|
|
|
*/
|
|
|
|
|
|
|
|
class WXDLLEXPORT wxDC;
|
2004-10-16 18:11:48 -04:00
|
|
|
class WXDLLEXPORT wxMacPrintDialog: public wxPrintDialogBase
|
2004-03-23 12:35:05 -05:00
|
|
|
{
|
2004-10-16 18:11:48 -04:00
|
|
|
public:
|
|
|
|
wxMacPrintDialog();
|
|
|
|
wxMacPrintDialog(wxWindow *parent, wxPrintDialogData* data = NULL);
|
|
|
|
wxMacPrintDialog(wxWindow *parent, wxPrintData* data );
|
|
|
|
~wxMacPrintDialog();
|
2004-03-23 12:35:05 -05:00
|
|
|
|
|
|
|
bool Create(wxWindow *parent, wxPrintDialogData* data = NULL);
|
2004-10-16 18:11:48 -04:00
|
|
|
virtual int ShowModal();
|
2004-03-23 12:35:05 -05:00
|
|
|
|
2004-10-16 18:11:48 -04:00
|
|
|
virtual wxPrintDialogData& GetPrintDialogData() { return m_printDialogData; }
|
|
|
|
virtual wxPrintData& GetPrintData() { return m_printDialogData.GetPrintData(); }
|
|
|
|
virtual wxDC *GetPrintDC();
|
2004-03-23 12:35:05 -05:00
|
|
|
|
2004-10-16 18:11:48 -04:00
|
|
|
private:
|
|
|
|
wxPrintDialogData m_printDialogData;
|
|
|
|
wxDC* m_printerDC;
|
|
|
|
bool m_destroyDC;
|
|
|
|
wxWindow* m_dialogParent;
|
|
|
|
|
|
|
|
private:
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxPrintDialog)
|
2004-03-23 12:35:05 -05:00
|
|
|
};
|
|
|
|
|
2004-11-20 09:46:25 -05:00
|
|
|
/*
|
|
|
|
* wxMacPageSetupDialog
|
|
|
|
* The Mac page setup dialog
|
|
|
|
*/
|
2004-03-23 12:35:05 -05:00
|
|
|
|
2004-11-20 09:46:25 -05:00
|
|
|
class WXDLLEXPORT wxMacPageSetupDialog: public wxPageSetupDialogBase
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
wxMacPageSetupDialog(wxWindow *parent, wxPageSetupDialogData *data = NULL);
|
|
|
|
~wxMacPageSetupDialog();
|
2004-03-23 12:35:05 -05:00
|
|
|
|
2004-11-20 09:46:25 -05:00
|
|
|
virtual wxPageSetupData& GetPageSetupDialogData();
|
|
|
|
|
|
|
|
bool Create(wxWindow *parent, wxPageSetupDialogData *data = NULL);
|
|
|
|
virtual int ShowModal();
|
|
|
|
|
|
|
|
private:
|
|
|
|
wxPageSetupDialogData m_pageSetupData;
|
|
|
|
wxWindow* m_dialogParent;
|
|
|
|
|
|
|
|
private:
|
|
|
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxMacPageSetupDialog)
|
2004-03-23 12:35:05 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
// _WX_PRINTDLG_H_
|