1999-01-01 11:05:26 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: printdlg.h
|
|
|
|
// Purpose: wxPrintDialog, wxPageSetupDialog classes.
|
|
|
|
// Use generic, PostScript version if no
|
|
|
|
// platform-specific implementation.
|
|
|
|
// Author: AUTHOR
|
|
|
|
// Modified by:
|
|
|
|
// Created: ??/??/98
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) AUTHOR
|
|
|
|
// Licence: wxWindows licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_PRINTDLG_H_
|
|
|
|
#define _WX_PRINTDLG_H_
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface "printdlg.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "wx/dialog.h"
|
|
|
|
#include "wx/cmndata.h"
|
|
|
|
|
|
|
|
/*
|
|
|
|
* wxPrinterDialog
|
|
|
|
* The common dialog for printing.
|
|
|
|
*/
|
|
|
|
|
|
|
|
class WXDLLEXPORT wxDC;
|
|
|
|
class WXDLLEXPORT wxPrintDialog: public wxDialog
|
|
|
|
{
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxPrintDialog)
|
|
|
|
|
|
|
|
public:
|
|
|
|
wxPrintDialog();
|
1999-11-09 10:24:52 -05:00
|
|
|
wxPrintDialog(wxWindow *parent, wxPrintDialogData* data = NULL);
|
|
|
|
wxPrintDialog(wxWindow *parent, wxPrintData* data );
|
1999-01-01 11:05:26 -05:00
|
|
|
~wxPrintDialog();
|
|
|
|
|
1999-11-09 10:24:52 -05:00
|
|
|
bool Create(wxWindow *parent, wxPrintDialogData* data = NULL);
|
1999-01-01 11:05:26 -05:00
|
|
|
virtual int ShowModal();
|
|
|
|
|
1999-11-09 10:24:52 -05:00
|
|
|
wxPrintDialogData& GetPrintDialogData() { return m_printDialogData; }
|
|
|
|
wxPrintData& GetPrintData() { return m_printDialogData.GetPrintData(); }
|
1999-01-01 11:05:26 -05:00
|
|
|
virtual wxDC *GetPrintDC();
|
|
|
|
|
|
|
|
private:
|
1999-11-09 10:24:52 -05:00
|
|
|
wxPrintDialogData m_printDialogData;
|
1999-01-01 11:05:26 -05:00
|
|
|
wxDC* m_printerDC;
|
1999-11-09 10:24:52 -05:00
|
|
|
bool m_destroyDC;
|
1999-01-01 11:05:26 -05:00
|
|
|
wxWindow* m_dialogParent;
|
|
|
|
};
|
|
|
|
|
|
|
|
class WXDLLEXPORT wxPageSetupDialog: public wxDialog
|
|
|
|
{
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxPageSetupDialog)
|
|
|
|
|
|
|
|
public:
|
|
|
|
wxPageSetupDialog();
|
|
|
|
wxPageSetupDialog(wxWindow *parent, wxPageSetupData *data = NULL);
|
|
|
|
~wxPageSetupDialog();
|
|
|
|
|
|
|
|
bool Create(wxWindow *parent, wxPageSetupData *data = NULL);
|
|
|
|
virtual int ShowModal();
|
|
|
|
|
|
|
|
inline wxPageSetupData& GetPageSetupData() { return m_pageSetupData; }
|
1999-11-09 10:24:52 -05:00
|
|
|
private:
|
|
|
|
wxPageSetupData m_pageSetupData;
|
|
|
|
wxWindow* m_dialogParent;
|
1999-01-01 11:05:26 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
// _WX_PRINTDLG_H_
|