2005-05-04 14:57:50 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: wx/printdlg.h
|
|
|
|
// Purpose: Base header and class for print dialogs
|
|
|
|
// Author: Julian Smart
|
|
|
|
// Modified by:
|
|
|
|
// Created:
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) Julian Smart
|
|
|
|
// Licence: wxWindows Licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
1998-08-14 20:23:28 -04:00
|
|
|
#ifndef _WX_PRINTDLG_H_BASE_
|
|
|
|
#define _WX_PRINTDLG_H_BASE_
|
1998-05-20 10:01:55 -04:00
|
|
|
|
2004-10-16 18:11:48 -04:00
|
|
|
#include "wx/defs.h"
|
|
|
|
|
|
|
|
#if wxUSE_PRINTING_ARCHITECTURE
|
|
|
|
|
|
|
|
#include "wx/event.h"
|
|
|
|
#include "wx/dialog.h"
|
|
|
|
#include "wx/intl.h"
|
|
|
|
#include "wx/cmndata.h"
|
|
|
|
|
|
|
|
|
|
|
|
// ---------------------------------------------------------------------------
|
2004-11-20 09:46:25 -05:00
|
|
|
// wxPrintDialogBase: interface for the dialog for printing
|
2004-10-16 18:11:48 -04:00
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
|
2008-03-26 11:06:00 -04:00
|
|
|
class WXDLLIMPEXP_CORE wxPrintDialogBase : public wxDialog
|
2004-10-16 18:11:48 -04:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
wxPrintDialogBase() { }
|
2004-10-23 09:10:00 -04:00
|
|
|
wxPrintDialogBase(wxWindow *parent,
|
|
|
|
wxWindowID id = wxID_ANY,
|
|
|
|
const wxString &title = wxEmptyString,
|
|
|
|
const wxPoint &pos = wxDefaultPosition,
|
|
|
|
const wxSize &size = wxDefaultSize,
|
|
|
|
long style = wxDEFAULT_DIALOG_STYLE);
|
2004-10-16 18:11:48 -04:00
|
|
|
|
|
|
|
virtual wxPrintDialogData& GetPrintDialogData() = 0;
|
|
|
|
virtual wxPrintData& GetPrintData() = 0;
|
|
|
|
virtual wxDC *GetPrintDC() = 0;
|
|
|
|
|
|
|
|
private:
|
|
|
|
DECLARE_ABSTRACT_CLASS(wxPrintDialogBase)
|
2009-02-08 06:45:59 -05:00
|
|
|
wxDECLARE_NO_COPY_CLASS(wxPrintDialogBase);
|
2004-10-16 18:11:48 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
// ---------------------------------------------------------------------------
|
2004-11-20 09:46:25 -05:00
|
|
|
// wxPrintDialog: the dialog for printing.
|
2004-10-16 18:11:48 -04:00
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
|
2008-03-26 11:06:00 -04:00
|
|
|
class WXDLLIMPEXP_CORE wxPrintDialog : public wxObject
|
2004-10-16 18:11:48 -04:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
wxPrintDialog(wxWindow *parent, wxPrintDialogData* data = NULL);
|
|
|
|
wxPrintDialog(wxWindow *parent, wxPrintData* data);
|
2006-09-05 16:47:48 -04:00
|
|
|
virtual ~wxPrintDialog();
|
2004-10-16 18:11:48 -04:00
|
|
|
|
|
|
|
virtual int ShowModal();
|
|
|
|
|
|
|
|
virtual wxPrintDialogData& GetPrintDialogData();
|
|
|
|
virtual wxPrintData& GetPrintData();
|
|
|
|
virtual wxDC *GetPrintDC();
|
|
|
|
|
|
|
|
private:
|
|
|
|
wxPrintDialogBase *m_pimpl;
|
|
|
|
|
|
|
|
private:
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxPrintDialog)
|
2009-02-08 06:45:59 -05:00
|
|
|
wxDECLARE_NO_COPY_CLASS(wxPrintDialog);
|
2004-10-16 18:11:48 -04:00
|
|
|
};
|
|
|
|
|
2004-11-20 09:46:25 -05:00
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
// wxPageSetupDialogBase: interface for the page setup dialog
|
|
|
|
// ---------------------------------------------------------------------------
|
2004-10-16 18:11:48 -04:00
|
|
|
|
2008-03-26 11:06:00 -04:00
|
|
|
class WXDLLIMPEXP_CORE wxPageSetupDialogBase: public wxDialog
|
2004-11-20 09:46:25 -05:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
wxPageSetupDialogBase() { }
|
|
|
|
wxPageSetupDialogBase(wxWindow *parent,
|
|
|
|
wxWindowID id = wxID_ANY,
|
|
|
|
const wxString &title = wxEmptyString,
|
|
|
|
const wxPoint &pos = wxDefaultPosition,
|
|
|
|
const wxSize &size = wxDefaultSize,
|
|
|
|
long style = wxDEFAULT_DIALOG_STYLE);
|
|
|
|
|
|
|
|
virtual wxPageSetupDialogData& GetPageSetupDialogData() = 0;
|
|
|
|
|
|
|
|
private:
|
|
|
|
DECLARE_ABSTRACT_CLASS(wxPageSetupDialogBase)
|
2009-02-08 06:45:59 -05:00
|
|
|
wxDECLARE_NO_COPY_CLASS(wxPageSetupDialogBase);
|
2004-11-20 09:46:25 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
// wxPageSetupDialog: the page setup dialog
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
|
2008-03-26 11:06:00 -04:00
|
|
|
class WXDLLIMPEXP_CORE wxPageSetupDialog: public wxObject
|
2004-11-20 09:46:25 -05:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
wxPageSetupDialog(wxWindow *parent, wxPageSetupDialogData *data = NULL);
|
2006-09-05 16:47:48 -04:00
|
|
|
virtual ~wxPageSetupDialog();
|
2004-11-20 09:46:25 -05:00
|
|
|
|
|
|
|
int ShowModal();
|
|
|
|
wxPageSetupDialogData& GetPageSetupDialogData();
|
|
|
|
// old name
|
|
|
|
wxPageSetupDialogData& GetPageSetupData();
|
|
|
|
|
|
|
|
private:
|
|
|
|
wxPageSetupDialogBase *m_pimpl;
|
|
|
|
|
|
|
|
private:
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxPageSetupDialog)
|
2009-02-08 06:45:59 -05:00
|
|
|
wxDECLARE_NO_COPY_CLASS(wxPageSetupDialog);
|
2004-11-20 09:46:25 -05:00
|
|
|
};
|
1998-10-07 07:04:27 -04:00
|
|
|
|
1998-05-20 10:01:55 -04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|
1998-08-14 20:23:28 -04:00
|
|
|
// _WX_PRINTDLG_H_BASE_
|