1998-05-20 10:12:05 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: printdlg.h
|
|
|
|
// Purpose: wxPrintDialog, wxPageSetupDialog classes
|
|
|
|
// Author: Julian Smart
|
|
|
|
// Modified by:
|
|
|
|
// Created: 01/02/97
|
|
|
|
// RCS-ID: $Id$
|
1998-08-07 19:52:45 -04:00
|
|
|
// Copyright: (c) Julian Smart
|
1999-04-02 17:30:56 -05:00
|
|
|
// Licence: wxWindows licence
|
1998-05-20 10:12:05 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
1998-08-07 19:52:45 -04:00
|
|
|
#ifndef _WX_PRINTDLG_H_
|
|
|
|
#define _WX_PRINTDLG_H_
|
1998-05-20 10:12:05 -04:00
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface "printdlg.h"
|
|
|
|
#endif
|
|
|
|
|
1999-06-13 18:54:04 -04:00
|
|
|
#if wxUSE_PRINTING_ARCHITECTURE
|
|
|
|
|
1998-05-20 10:12:05 -04:00
|
|
|
#include "wx/dialog.h"
|
|
|
|
#include "wx/cmndata.h"
|
|
|
|
|
|
|
|
class WXDLLEXPORT wxDC;
|
1999-04-02 17:30:56 -05:00
|
|
|
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
// wxPrinterDialog: the common dialog for printing.
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
class WXDLLEXPORT wxPrintDialog : public wxDialog
|
1998-05-20 10:12:05 -04:00
|
|
|
{
|
1999-04-02 17:30:56 -05:00
|
|
|
DECLARE_DYNAMIC_CLASS(wxPrintDialog)
|
1998-05-20 10:12:05 -04:00
|
|
|
|
1999-03-25 18:06:01 -05:00
|
|
|
public:
|
1999-04-02 17:30:56 -05:00
|
|
|
wxPrintDialog();
|
|
|
|
wxPrintDialog(wxWindow *parent, wxPrintDialogData* data = NULL);
|
|
|
|
wxPrintDialog(wxWindow *parent, wxPrintData* data);
|
|
|
|
virtual ~wxPrintDialog();
|
1998-05-20 10:12:05 -04:00
|
|
|
|
1999-04-02 17:30:56 -05:00
|
|
|
bool Create(wxWindow *parent, wxPrintDialogData* data = NULL);
|
|
|
|
virtual int ShowModal();
|
1998-05-20 10:12:05 -04:00
|
|
|
|
1999-04-02 17:30:56 -05:00
|
|
|
wxPrintDialogData& GetPrintDialogData() { return m_printDialogData; }
|
|
|
|
wxPrintData& GetPrintData() { return m_printDialogData.GetPrintData(); }
|
|
|
|
virtual wxDC *GetPrintDC();
|
1999-03-25 18:06:01 -05:00
|
|
|
|
|
|
|
private:
|
1999-04-02 17:30:56 -05:00
|
|
|
wxPrintDialogData m_printDialogData;
|
|
|
|
wxDC* m_printerDC;
|
|
|
|
bool m_destroyDC;
|
|
|
|
wxWindow* m_dialogParent;
|
1998-05-20 10:12:05 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
class WXDLLEXPORT wxPageSetupDialog: public wxDialog
|
|
|
|
{
|
1999-04-02 17:30:56 -05:00
|
|
|
DECLARE_DYNAMIC_CLASS(wxPageSetupDialog)
|
1998-05-20 10:12:05 -04:00
|
|
|
|
1999-04-02 17:30:56 -05:00
|
|
|
public:
|
|
|
|
wxPageSetupDialog();
|
|
|
|
wxPageSetupDialog(wxWindow *parent, wxPageSetupData *data = NULL);
|
|
|
|
virtual ~wxPageSetupDialog();
|
|
|
|
|
|
|
|
bool Create(wxWindow *parent, wxPageSetupData *data = NULL);
|
|
|
|
virtual int ShowModal();
|
1998-05-20 10:12:05 -04:00
|
|
|
|
1999-04-02 17:30:56 -05:00
|
|
|
wxPageSetupData& GetPageSetupData() { return m_pageSetupData; }
|
1998-05-20 10:12:05 -04:00
|
|
|
|
1999-04-02 17:30:56 -05:00
|
|
|
private:
|
|
|
|
wxPageSetupData m_pageSetupData;
|
|
|
|
wxWindow* m_dialogParent;
|
1998-05-20 10:12:05 -04:00
|
|
|
};
|
|
|
|
|
1999-06-13 18:54:04 -04:00
|
|
|
#endif // wxUSE_PRINTING_ARCHITECTURE
|
|
|
|
|
1998-05-20 10:12:05 -04:00
|
|
|
#endif
|
1998-08-07 19:52:45 -04:00
|
|
|
// _WX_PRINTDLG_H_
|