All Frameworks  Class Hierarchy  This Framework  Next  Indexes

PrintBase Class CATPrintDevice

System.IUnknown
  |
  +---System.IDispatch
    |
    +---System.CATBaseUnknown
      |
      +---CATPrintDevice
 

Usage: you can derive this class.


public class CATPrintDevice

Class to create print devices.

Role: This class is abstract, so you need to derive this class to build print devices.


Constructor and Destructor Index


o CATPrintDevice()
Constructs a CATPrintDevice.
o ~CATPrintDevice()

Method Index


o Begin(CATPrintParameters&)
Initializes the device.
o End(void)
Ends the device.
o GetGenerator(void)
Gets the generator associated to the device.
o Print(CATBaseUnknown*,CATPrintParameters&)
Prints a printable object.
o SetGenerator(CATPrintGenerator*)
Defines the generator associated to the device.

Constructor and Destructor


o CATPrintDevice
public CATPrintDevice()
Constructs a CATPrintDevice.
o ~CATPrintDevice
public virtual ~CATPrintDevice()

Methods


o Begin
public virtual int Begin( const CATPrintParameters& iParameter) = 0
Initializes the device.
Pure virtual method.
Parameters:
iParameters
The generator parameters made available through SetGenerator.
Returns:
The status of the method.
Legal values: 0 if device initialization failed, 1 otherwise.
o End
public virtual void End(void ) = 0
Ends the device.
Pure virtual method.
o GetGenerator
public virtual CATPrintGenerator* GetGenerator(void ) const
Gets the generator associated to the device.
Returns:
The generator associated to the device.
o Print
public virtual int Print(CATBaseUnknown* iObject,
const CATPrintParameters& iParameters)
Prints a printable object.
Parameters:
iObject
The printable object.
iParameters
The print parameters (see CATPrintParameters).
Returns:
The status of the method.
Legal values: 0 -> KO, 1 -> OK.
o SetGenerator
protected virtual void SetGenerator(CATPrintGenerator* iGenerator)
Defines the generator associated to the device.
Parameters:
iGenerator
The generator associated to the device (see CATPrintGenerator).

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

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