All Frameworks  Class Hierarchy  This Framework  Previous  Next  Indexes

Print Class CATPrintTextImage

System.IUnknown
  |
  +---System.IDispatch
    |
    +---System.CATBaseUnknown
      |
      +---PrintBase.CATPrintImage
        |
        +---CATPrintTextImage
 

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


public class CATPrintTextImage

Class used to print text files.


Constructor and Destructor Index


o CATPrintTextImage(CATUnicodeString&)
Constructs a CATPrintTextImage of a given language.
o ~CATPrintTextImage()

Method Index


o GetSize(float&,float&)
Retrieves the size of the text image.
o SetFont(CATFont*)
Set the font used to print the text.
o SetFontSize(float,CATPrintUnit&)
Set the font size used to print the text.
o SetTitle(CATUnicodeString&)
Set the title.

Constructor and Destructor


o CATPrintTextImage
public CATPrintTextImage( const CATUnicodeString& iFileName)
Constructs a CATPrintTextImage of a given language. The available text encoding are ASCII and Unicode (Windows only).
Parameters:
iFileName
The name of the file to print.
o ~CATPrintTextImage
public virtual ~CATPrintTextImage()

Methods


o GetSize
public int GetSize(float& oWidth,
float& oHeight)
Retrieves the size of the text image.
Parameters:
oWidth
The width of the image.
oHeight
The height of the image.
Returns:
The status of the method.
Legal values: 0 -> KO, 1 -> OK.
o SetFont
public void SetFont( const CATFont* iFont)
Set the font used to print the text.
Parameters:
iFont
The font used.
o SetFontSize
public void SetFontSize(float iFontSize,
const CATPrintUnit& iUnit= CATPRINTUNIT_MM)
Set the font size used to print the text.
Parameters:
iFontSize
The font size used.
iUnit
The unit used for font size.
Legal values: The default is CATPRINTUNIT_MM.
o SetTitle
public void SetTitle( const CATUnicodeString& iTitle)
Set the title.
Parameters:
iTitle
The title printed in the header of each page.

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

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