All Frameworks  Class Hierarchy  This Framework  Indexes   

Print Class CATPrintDialog

Usage: you must use this class as is. You should never derive it.


public class CATPrintDialog

Class to provide a standard graphic interface to choose a printer, specify the page layout and print an image.
Note:This window is modal and not resizable.
When the end user clicks OK or Cancel, the dialog box is automatically deleted.


Constructor and Destructor Index


o CATPrintDialog(CATDialog*,CATString&,CATBaseUnknown*,CATDlgStyle)
Deprecated V5R20 In favor of CATPrintDialog(CATDialog* iFather, const CATString& iName, CATBaseUnknown* iImage, CATViewer* iSelectionViewer,CATDlgStyle iStyle=NULL, CATBoolean isModal=TRUE); Constructs a CATPrintDialog.
o ~CATPrintDialog()
o CATPrintDialog(CATInteractiveApplication*,CATString&,CATBaseUnknown*,CATDlgStyle)
Deprecated V5R20 In favor of CATPrintDialog(CATInteractiveApplication* iFather, const CATString& iName, CATBaseUnknown* iImage, CATViewer* iSelectionViewer, CATDlgStyle iStyle=NULL, CATBoolean isModal=TRUE); Constructs a CATPrintDialog.
o CATPrintDialog(CATDialog*,CATString&,CATBaseUnknown*,CATViewer*,CATDlgStyle,CATBoolean)
Constructs a CATPrintDialog.
o CATPrintDialog(CATInteractiveApplication*,CATString&,CATBaseUnknown*,CATViewer*,CATDlgStyle,CATBoolean)
Constructs a CATPrintDialog.

Method Index


o Print(CATBaseUnknown*,CATPrinterDevice*,CATPrintParameters&)
Prints the image object.

Constructor and Destructor


o CATPrintDialog
public CATPrintDialog( iFather,
const iName,
iImage,
iStyle=NULL)
Deprecated V5R20 In favor of CATPrintDialog(CATDialog* iFather, const CATString& iName, CATBaseUnknown* iImage, CATViewer* iSelectionViewer,CATDlgStyle iStyle=NULL, CATBoolean isModal=TRUE); Constructs a CATPrintDialog.
Parameters:
iFather
The father of the print dialog.
iName
The name of the dialog.
iImage
The image object to be print
iStyle
The style of the dialog.
o ~CATPrintDialog
public virtual ~CATPrintDialog()
o CATPrintDialog
public CATPrintDialog( iFather,
const iName,
iImage,
iStyle=NULL)
Deprecated V5R20 In favor of CATPrintDialog(CATInteractiveApplication* iFather, const CATString& iName, CATBaseUnknown* iImage, CATViewer* iSelectionViewer, CATDlgStyle iStyle=NULL, CATBoolean isModal=TRUE); Constructs a CATPrintDialog.
Parameters:
iFather
The father of the print dialog.
iName
The name of the dialog.
iImage
The image object to be print
iStyle
The style of the dialog.
o CATPrintDialog
public CATPrintDialog( iFather,
const iName,
iImage,
iSelectionViewer,
iStyle=NULL,
iForceModal=TRUE)
Constructs a CATPrintDialog.
Parameters:
iFather
The father of the print dialog.
iName
The name of the dialog.
iImage
The image object to be print
iSelectionViewer
for selection. If not set the selection button is disabled. The viewer of the print dialog
iStyle
The style of the dialog.
iForceModal
Allows the PrintDialog to be a modal dialog box or not
o CATPrintDialog
public CATPrintDialog( iFather,
const iName,
iImage,
iSelectionViewer,
iStyle=NULL,
iForceModal=TRUE)
Constructs a CATPrintDialog.
Parameters:
iFather
The father of the print dialog.
iName
The name of the dialog.
iImage
The image object to be print
iSelectionViewer
The viewer associated to the print dialog for selection. If not set the selection button is disabled.
iStyle
The style of the dialog.
iForceModal
Allows the PrintDialog to be a modal dialog box or not

Methods


o Print
public virtual Print( iObject,
iDevice,
const iParameters)
Prints the image object. It is called when pressing OK and APPLY. Overriding this method allows to get user print parameters specified in the dialog box.
Parameters:
iObject
The printable object which implement the
CATIPrintable interface.
iDevice
The device where to print.
iParameters
The parameters for printing.
Returns:
The status of the method.
Legal values: 0 -> KO, 1 -> OK.

This object is included in the file: CATPrintDialog.h
If needed, your Imakefile.mk should include the module: CATPrint

Copyright © 2003, Dassault Systèmes. All rights reserved.