Version: 2.9.4
Public Member Functions
wxPrintDialog Class Reference

#include </home/zeitlin/src/wx/github/interface/wx/printdlg.h>

Inheritance diagram for wxPrintDialog:

Detailed Description

This class represents the print and print setup common dialogs.

You may obtain a wxPrinterDC device context from a successfully dismissed print dialog.

Library:  wxCore
Category:  Printing Framework
参照:
Printing Framework Overview, wxPrintDialog Overview

Public Member Functions

 wxPrintDialog (wxWindow *parent, wxPrintDialogData *data=NULL)
 Constructor.
 wxPrintDialog (wxWindow *parent, wxPrintData *data)
virtual ~wxPrintDialog ()
 Destructor.
virtual wxDCGetPrintDC ()
 Returns the device context created by the print dialog, if any.
virtual wxPrintDialogDataGetPrintDialogData ()
 Returns the print dialog data associated with the print dialog.
virtual wxPrintDataGetPrintData ()
 Returns the print data associated with the print dialog.
virtual int ShowModal ()
 Shows the dialog, returning wxID_OK if the user pressed OK, and wxID_CANCEL otherwise.

List of all members.


Constructor & Destructor Documentation

wxPrintDialog::wxPrintDialog ( wxWindow parent,
wxPrintDialogData data = NULL 
)

Constructor.

Pass a parent window, and optionally a pointer to a block of print data, which will be copied to the print dialog's print data.

参照:
wxPrintDialogData
wxPrintDialog::wxPrintDialog ( wxWindow parent,
wxPrintData data 
)
virtual wxPrintDialog::~wxPrintDialog ( ) [virtual]

Destructor.

If GetPrintDC() has not been called, the device context obtained by the dialog (if any) will be deleted.


Member Function Documentation

virtual wxPrintData& wxPrintDialog::GetPrintData ( ) [virtual]

Returns the print data associated with the print dialog.

virtual wxDC* wxPrintDialog::GetPrintDC ( ) [virtual]

Returns the device context created by the print dialog, if any.

When this function has been called, the ownership of the device context is transferred to the application, so it must then be deleted explicitly.

virtual wxPrintDialogData& wxPrintDialog::GetPrintDialogData ( ) [virtual]

Returns the print dialog data associated with the print dialog.

virtual int wxPrintDialog::ShowModal ( ) [virtual]

Shows the dialog, returning wxID_OK if the user pressed OK, and wxID_CANCEL otherwise.

After this function is called, a device context may be retrievable using GetPrintDC().

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines