All Frameworks  Class Hierarchy  This Framework  Previous  Next  Indexes

Print Class CATPrintDialog

System.IUnknown
  |
  +---System.IDispatch
    |
    +---System.CATBaseUnknown
      |
      +---System.CATEventSubscriber
        |
        +---System.CATCommand
          |
          +---Dialog.CATDialog
            |
            +---Dialog.CATDlgWindow
              |
              +---Dialog.CATDlgDialog
                |
                +---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)
Constructs a CATPrintDialog.
o CATPrintDialog(CATInteractiveApplication*,CATString&,CATBaseUnknown*,CATDlgStyle)
Constructs a CATPrintDialog.
o ~CATPrintDialog()

Method Index


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

Constructor and Destructor


o CATPrintDialog
public CATPrintDialog(CATDialog* iFather,
const CATString& iName,
CATBaseUnknown* iImage,
CATDlgStyle iStyle=NULL)
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(CATInteractiveApplication* iFather,
const CATString& iName,
CATBaseUnknown* iImage,
CATDlgStyle iStyle=NULL)
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()

Methods


o Print
public virtual int Print(CATBaseUnknown* iObject,
CATPrinterDevice* iDevice,
const CATPrintParameters& 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.