phpDocumentor SpoolTemplate
[ Back ] [ class tree: SpoolTemplate ] [ index: SpoolTemplate ] [ all elements ]

Class: CFont

Source Location: /sptpl_clsFont.php

Class CFont

Class Overview

Class CFont definition module

Located in /sptpl_clsFont.php [line 37]



		
				Author(s):
		
		
		
Information Tags:
Version:  $Header: d:\cvs/classistd/sptpl/sptpl_clsFont.php,v 2.7 2005/03/17 12:46:48 Darvin Exp $
Copyright:  sptpl_clsFont.php is part of Sptpl project http://www.andrioli.com/en/sptpl.html and it is LGPL

Properties

Methods

[ Top ]
Direct descendents
Child Class Description
CPrFont Extension of the font class used to support the Printer output. Used by CPagePrinter
CPsFont Extension of the font class used the PostScript output
CPdfFont Extension of the font class used to support the Pdf output. Used by CPagePdf

[ Top ]
Property Summary
boolean   $Bold   Is the font bold
string   $Face   Font face
int   $Height   Font height
string   $Id   Font identifier, used as key to access to this font
boolean   $Italic   Is the font italic
int   $Size   Font size
boolean   $Underline   Is the font underlined
int   $width   Font width

[ Top ]
Method Summary
CFont   CFont()   class initializer
string   GetBold()   Property Bold get value
string   GetFace()   Property Face get value
integer   GetFontHeight()   return the high the characters
string   GetHeight()   Property Height get value
void   GetId()   Return the identifier for this font. The id is the key to access to this font from the row
string   GetItalic()   Property Italic get value
string   GetSize()   Property Size get value
string   GetUnderline()   Property Underline get value
string   GetWidth()   Property width get value
void   ParseXml()   Parse the configuration file
integer   strlen()   return the string length

[ Top ]
Properties
boolean   $Bold [line 69]

Is the font bold


[ Top ]
string   $Face [line 49]

Font face


[ Top ]
int   $Height [line 64]

Font height


[ Top ]
string   $Id [line 44]

Font identifier, used as key to access to this font

from CRow


[ Top ]
boolean   $Italic [line 79]

Is the font italic


[ Top ]
int   $Size [line 54]

Font size


[ Top ]
boolean   $Underline [line 74]

Is the font underlined


[ Top ]
int   $width [line 59]

Font width


[ Top ]
Methods
Constructor CFont  [line 88]

  CFont CFont( [object DomNode $node = NULL]  )

class initializer

Parameters:
object DomNode   $node:  DOMXML node holding the configuration information for the font

API Tags:
Access:  public


[ Top ]
GetBold  [line 200]

  string GetBold( )

Property Bold get value


API Tags:
Access:  public


[ Top ]
GetFace  [line 164]

  string GetFace( )

Property Face get value


API Tags:
Access:  public


[ Top ]
GetFontHeight  [line 239]

  integer GetFontHeight( [mixed $text = '']  )

return the high the characters


API Tags:
Access:  public


Redefined in descendants as:

[ Top ]
GetHeight  [line 191]

  string GetHeight( )

Property Height get value


API Tags:
Access:  public


Redefined in descendants as:

[ Top ]
GetId  [line 154]

  void GetId( )

Return the identifier for this font. The id is the key to access to this font from the row


API Tags:
Access:  public


[ Top ]
GetItalic  [line 218]

  string GetItalic( )

Property Italic get value


API Tags:
Access:  public


[ Top ]
GetSize  [line 173]

  string GetSize( )

Property Size get value


API Tags:
Access:  public


Redefined in descendants as:

[ Top ]
GetUnderline  [line 209]

  string GetUnderline( )

Property Underline get value


API Tags:
Access:  public


[ Top ]
GetWidth  [line 182]

  string GetWidth( )

Property width get value


API Tags:
Access:  public


Redefined in descendants as:

[ Top ]
ParseXml  [line 108]

  void ParseXml( object CXml2Array $Cfg  )

Parse the configuration file

Parameters:
object CXml2Array   $Cfg:  CXml2Array node holding the configuration information for the font

API Tags:
Access:  public


Redefined in descendants as:
  • CPrFont::ParseXml() : Parse the configuration file. Call the parent parsing function.
  • CPsFont::ParseXml() : Parse the configuration file. Call the parent parsing function. At the end set the font into its own Cpdf istance
  • CPdfFont::ParseXml() : Parse the configuration file. Call the parent parsing function. At the end set the font into its own Cpdf istance

[ Top ]
strlen  [line 229]

  integer strlen( string $text  )

return the string length

Parameters:
string   $text: 

API Tags:
Access:  public


Redefined in descendants as:

[ Top ]

Documentation generated on Mon, 28 Mar 2005 15:13:15 +0200 by phpDocumentor 1.3.0RC3