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