All Frameworks  Class Hierarchy  This Framework  Previous  Next  Indexes

PrintBase Class CATPrintFileDevice

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

Usage: you can derive this class.


public class CATPrintFileDevice

Class to create file devices.


Constructor and Destructor Index


o CATPrintFileDevice()
Constructs a CATPrintFileDevice.
o CATPrintFileDevice(CATPrintStream*)
Constructs a CATPrintFileDevice from a given stream output.
o CATPrintFileDevice(CATUnicodeString&,CATUnicodeString&,void*)
Constructs a CATPrintFileDevice from a given path file.
o ~CATPrintFileDevice()

Method Index


o Begin(CATPrintParameters&)
Initializes the file device.
o End(void)
Ends the device.
o SetFile(CATPrintStream*)
Defines the stream associated to the file device.

Constructor and Destructor


o CATPrintFileDevice
public CATPrintFileDevice()
Constructs a CATPrintFileDevice.
o CATPrintFileDevice
public CATPrintFileDevice(CATPrintStream* iStream)
Constructs a CATPrintFileDevice from a given stream output.
Parameters:
iStream
The stream output.
o CATPrintFileDevice
public CATPrintFileDevice( const CATUnicodeString& iPath,
const CATUnicodeString& iLanguage,
const void* iPrivateData= 0)
Constructs a CATPrintFileDevice from a given path file.
Parameters:
iPath
The path of the file.
iLanguage
The language of the file.
The available languages used in CATIA are:
  • For Windows:
    • "CGM",
    • "RASTER",
    • "EMF" (Windows Metafile),
    • "EPS" (Generic PostScript).
  • For UNIX:
    • "CGM",
    • "RASTER",
    • "EPS" (Generic PostScript),
    • "HPGL2" (Generic HP-GL/2 RTL),
    • "HP1000GL2" (HP DesignJet 1000 Series),
    • "OCE",
    • "GBR" (Gerber).
iPrivateData
The possible private data to transmit.
o ~CATPrintFileDevice
public virtual ~CATPrintFileDevice()

Methods


o Begin
public int Begin( const CATPrintParameters& iParameters)
Initializes the file device.
Parameters:
iParameters
The parameters of the generator.
Returns:
The status of the method.
Legal values: 0 if file device initialization failed, 1 otherwise.
o End
public void End(void )
Ends the device.
o SetFile
public void SetFile(CATPrintStream* iStream)
Defines the stream associated to the file device.
Parameters:
iStream
The stream of the file device.

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

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