Print 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 | 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 GetSize( | | oWidth, |
| | 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 SetFont( | const | iFont) |
-
Set the font used to print the text.
- Parameters:
-
- iFont
- The font used.
o SetFontSize
public SetFontSize( | | iFontSize, |
| const | 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 SetTitle( | const | 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 © 1999-2014, Dassault Systèmes. All rights reserved.