2005-05-04 18:57:50 +00: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-15 00:23:28 +00:00
|
|
|
#ifndef _WX_PRINTDLG_H_BASE_
|
|
|
|
#define _WX_PRINTDLG_H_BASE_
|
1998-05-20 14:01:55 +00:00
|
|
|
|
2004-10-16 22:11:48 +00: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 14:46:25 +00:00
|
|
|
// wxPrintDialogBase: interface for the dialog for printing
|
2004-10-16 22:11:48 +00:00
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
|
2008-03-26 15:06:00 +00:00
|
|
|
class WXDLLIMPEXP_CORE wxPrintDialogBase : public wxDialog
|
2004-10-16 22:11:48 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
wxPrintDialogBase() { }
|
2004-10-23 13:10:00 +00: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);
|
2009-08-21 10:41:26 +00:00
|
|
|
|
2004-10-16 22:11:48 +00:00
|
|
|
virtual wxPrintDialogData& GetPrintDialogData() = 0;
|
|
|
|
virtual wxPrintData& GetPrintData() = 0;
|
|
|
|
virtual wxDC *GetPrintDC() = 0;
|
2009-08-21 10:41:26 +00:00
|
|
|
|
2004-10-16 22:11:48 +00:00
|
|
|
private:
|
|
|
|
DECLARE_ABSTRACT_CLASS(wxPrintDialogBase)
|
2009-02-08 11:45:59 +00:00
|
|
|
wxDECLARE_NO_COPY_CLASS(wxPrintDialogBase);
|
2004-10-16 22:11:48 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
// ---------------------------------------------------------------------------
|
2004-11-20 14:46:25 +00:00
|
|
|
// wxPrintDialog: the dialog for printing.
|
2004-10-16 22:11:48 +00:00
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
|
2008-03-26 15:06:00 +00:00
|
|
|
class WXDLLIMPEXP_CORE wxPrintDialog : public wxObject
|
2004-10-16 22:11:48 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
wxPrintDialog(wxWindow *parent, wxPrintDialogData* data = NULL);
|
|
|
|
wxPrintDialog(wxWindow *parent, wxPrintData* data);
|
2006-09-05 20:47:48 +00:00
|
|
|
virtual ~wxPrintDialog();
|
2004-10-16 22:11:48 +00:00
|
|
|
|
|
|
|
virtual int ShowModal();
|
|
|
|
|
|
|
|
virtual wxPrintDialogData& GetPrintDialogData();
|
|
|
|
virtual wxPrintData& GetPrintData();
|
|
|
|
virtual wxDC *GetPrintDC();
|
2009-08-21 10:41:26 +00:00
|
|
|
|
2004-10-16 22:11:48 +00:00
|
|
|
private:
|
|
|
|
wxPrintDialogBase *m_pimpl;
|
2009-08-21 10:41:26 +00:00
|
|
|
|
2004-10-16 22:11:48 +00:00
|
|
|
private:
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxPrintDialog)
|
2009-02-08 11:45:59 +00:00
|
|
|
wxDECLARE_NO_COPY_CLASS(wxPrintDialog);
|
2004-10-16 22:11:48 +00:00
|
|
|
};
|
|
|
|
|
2004-11-20 14:46:25 +00:00
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
// wxPageSetupDialogBase: interface for the page setup dialog
|
|
|
|
// ---------------------------------------------------------------------------
|
2004-10-16 22:11:48 +00:00
|
|
|
|
2008-03-26 15:06:00 +00:00
|
|
|
class WXDLLIMPEXP_CORE wxPageSetupDialogBase: public wxDialog
|
2004-11-20 14:46:25 +00: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 11:45:59 +00:00
|
|
|
wxDECLARE_NO_COPY_CLASS(wxPageSetupDialogBase);
|
2004-11-20 14:46:25 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
// wxPageSetupDialog: the page setup dialog
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
|
2008-03-26 15:06:00 +00:00
|
|
|
class WXDLLIMPEXP_CORE wxPageSetupDialog: public wxObject
|
2004-11-20 14:46:25 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
wxPageSetupDialog(wxWindow *parent, wxPageSetupDialogData *data = NULL);
|
2006-09-05 20:47:48 +00:00
|
|
|
virtual ~wxPageSetupDialog();
|
2004-11-20 14:46:25 +00:00
|
|
|
|
|
|
|
int ShowModal();
|
|
|
|
wxPageSetupDialogData& GetPageSetupDialogData();
|
|
|
|
// old name
|
|
|
|
wxPageSetupDialogData& GetPageSetupData();
|
|
|
|
|
|
|
|
private:
|
|
|
|
wxPageSetupDialogBase *m_pimpl;
|
2009-08-21 10:41:26 +00:00
|
|
|
|
2004-11-20 14:46:25 +00:00
|
|
|
private:
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxPageSetupDialog)
|
2009-02-08 11:45:59 +00:00
|
|
|
wxDECLARE_NO_COPY_CLASS(wxPageSetupDialog);
|
2004-11-20 14:46:25 +00:00
|
|
|
};
|
1998-10-07 11:04:27 +00:00
|
|
|
|
1998-05-20 14:01:55 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|
1998-08-15 00:23:28 +00:00
|
|
|
// _WX_PRINTDLG_H_BASE_
|