PHPExcel_Writer_Excel5_Writer
[ class tree: PHPExcel_Writer_Excel5_Writer ] [ index: PHPExcel_Writer_Excel5_Writer ] [ all elements ]

Class: PHPExcel_Writer_Excel5_Format

Source Location: /PHPExcel/Writer/Excel5/Format.php

Class Overview


Class for generating Excel XF records (formats)


Author(s):

Variables

Methods



Class Details

[line 43]
Class for generating Excel XF records (formats)

Class for generating Excel XF records (formats)




Tags:

author:  Xavier Noguer <xnoguer@rezebra.com>


[ Top ]


Class Variables

$font_index =

[line 55]

Index to the FONT record.

Index to the FONT record.



Type:   integer


[ Top ]

$_bg_color =

[line 193]

The cell's background color.

The cell's background color.




Tags:

access:  private

Type:   integer


[ Top ]

$_bold =

[line 73]

Bold style

Bold style




Tags:

access:  private

Type:   integer


[ Top ]

$_bottom =

[line 205]

Style of the bottom border of the cell

Style of the bottom border of the cell




Tags:

access:  private

Type:   integer


[ Top ]

$_bottom_color =

[line 211]

Color of the bottom border of the cell.

Color of the bottom border of the cell.




Tags:

access:  private

Type:   integer


[ Top ]

$_color =

[line 85]

Index to the cell's color

Index to the cell's color




Tags:

access:  private

Type:   integer


[ Top ]

$_fg_color =

[line 187]

The cell's foreground color.

The cell's foreground color.




Tags:

access:  private

Type:   integer


[ Top ]

$_font_charset =

[line 127]

Byte specifiying the font charset.

Byte specifiying the font charset.




Tags:

access:  private

Type:   integer


[ Top ]

$_font_family =

[line 121]

Byte specifiying the font family.

Byte specifiying the font family.




Tags:

access:  private

Type:   integer


[ Top ]

$_font_name =

[line 61]

The font name (ASCII).

The font name (ASCII).




Tags:

access:  private

Type:   string


[ Top ]

$_font_outline =

[line 103]

Bit specifiying if the font has outline.

Bit specifiying if the font has outline.




Tags:

access:  private

Type:   integer


[ Top ]

$_font_script =

[line 115]

2 bytes specifiying the script type for the font.

2 bytes specifiying the script type for the font.




Tags:

access:  private

Type:   integer


[ Top ]

$_font_shadow =

[line 109]

Bit specifiying if the font has shadow.

Bit specifiying if the font has shadow.




Tags:

access:  private

Type:   integer


[ Top ]

$_font_strikeout =

[line 97]

Bit specifiying if the font has strikeout.

Bit specifiying if the font has strikeout.




Tags:

access:  private

Type:   integer


[ Top ]

$_hidden =

[line 139]

Bit specifying if formulas are hidden.

Bit specifying if formulas are hidden.




Tags:

access:  private

Type:   integer


[ Top ]

$_italic =

[line 79]

Bit specifiying if the font is italic.

Bit specifiying if the font is italic.




Tags:

access:  private

Type:   integer


[ Top ]

$_left =

[line 229]

Style of the left border of the cell

Style of the left border of the cell




Tags:

access:  private

Type:   integer


[ Top ]

$_left_color =

[line 235]

Color of the left border of the cell.

Color of the left border of the cell.




Tags:

access:  private

Type:   integer


[ Top ]

$_locked =

[line 145]

Bit specifying if the cell is locked.

Bit specifying if the cell is locked.




Tags:

access:  private

Type:   integer


[ Top ]

$_num_format =

[line 133]

An index (2 bytes) to a FORMAT record (number format).

An index (2 bytes) to a FORMAT record (number format).




Tags:

access:  private

Type:   integer


[ Top ]

$_pattern =

[line 199]

The cell's background fill pattern.

The cell's background fill pattern.




Tags:

access:  private

Type:   integer


[ Top ]

$_right =

[line 241]

Style of the right border of the cell

Style of the right border of the cell




Tags:

access:  private

Type:   integer


[ Top ]

$_right_color =

[line 247]

Color of the right border of the cell.

Color of the right border of the cell.




Tags:

access:  private

Type:   integer


[ Top ]

$_rotation =

[line 181]

The two bits specifying the text rotation.

The two bits specifying the text rotation.




Tags:

access:  private

Type:   integer


[ Top ]

$_shrink_to_fit =

[line 163]

Shrink to fit

Shrink to fit




Tags:

access:  private

Type:  


[ Top ]

$_size =

[line 67]

Height of font (1/20 of a point)

Height of font (1/20 of a point)




Tags:

access:  private

Type:   integer


[ Top ]

$_text_h_align =

[line 151]

The three bits specifying the text horizontal alignment.

The three bits specifying the text horizontal alignment.




Tags:

access:  private

Type:   integer


[ Top ]

$_text_justlast =

[line 175]

1 bit, apparently not used.

1 bit, apparently not used.




Tags:

access:  private

Type:   integer


[ Top ]

$_text_v_align =

[line 169]

The three bits specifying the text vertical alignment.

The three bits specifying the text vertical alignment.




Tags:

access:  private

Type:   integer


[ Top ]

$_text_wrap =

[line 157]

Bit specifying if the text is wrapped at the right border.

Bit specifying if the text is wrapped at the right border.




Tags:

access:  private

Type:   integer


[ Top ]

$_top =

[line 217]

Style of the top border of the cell

Style of the top border of the cell




Tags:

access:  private

Type:   integer


[ Top ]

$_top_color =

[line 223]

Color of the top border of the cell.

Color of the top border of the cell.




Tags:

access:  private

Type:   integer


[ Top ]

$_underline =

[line 91]

The text underline property

The text underline property




Tags:

access:  private

Type:   integer


[ Top ]

$_xf_index =

[line 49]

The index given by the workbook when creating a new format.

The index given by the workbook when creating a new format.




Tags:

access:  private

Type:   integer


[ Top ]



Class Methods


constructor PHPExcel_Writer_Excel5_Format [line 256]

PHPExcel_Writer_Excel5_Format PHPExcel_Writer_Excel5_Format( $BIFF_version, [integer $index = 0], [array $properties = array()])

Constructor

Constructor




Tags:

access:  private


Parameters:

integer   $index   the XF index for the format.
array   $properties   array with properties to be set on initialization.
   $BIFF_version  

[ Top ]

method getFont [line 457]

string getFont( )

Generate an Excel BIFF FONT record.

Generate an Excel BIFF FONT record.




Tags:

return:  The FONT record


[ Top ]

method getFontKey [line 513]

string getFontKey( )

Returns a unique hash key for a font.

Returns a unique hash key for a font. Used by PHPExcel_Writer_Excel5_Workbook::_storeAllFonts() The elements that form the key are arranged to increase the probability of generating a unique key. Elements that hold a large range of numbers (eg. _color) are placed between two binary elements such as _italic




Tags:

return:  A key for this font


[ Top ]

method getXf [line 320]

string getXf( string $style)

Generate an Excel BIFF XF record (style or cell).

Generate an Excel BIFF XF record (style or cell).




Tags:

return:  The XF record


Parameters:

string   $style   The type of the XF record ('style' or 'cell').

[ Top ]

method getXfIndex [line 529]

integer getXfIndex( )

Returns the index used by PHPExcel_Writer_Excel5_Worksheet::_XF()

Returns the index used by PHPExcel_Writer_Excel5_Worksheet::_XF()




Tags:

return:  The index for the XF record


[ Top ]

method setAlign [line 601]

void setAlign( string $location)

Set cell alignment.

Set cell alignment.




Tags:

access:  public


Parameters:

string   $location   alignment for the cell ('left', 'right', etc...).

[ Top ]

method setBgColor [line 918]

void setBgColor( mixed $color)

Sets the cell's background color

Sets the cell's background color




Tags:

access:  public


Parameters:

mixed   $color   either a string (like 'blue'), or an integer (range is [8...63]).

[ Top ]

method setBold [line 747]

void setBold( [integer $weight = 1])

Sets the boldness of the text.

Sets the boldness of the text. Bold has a range 100..1000.

  1. (400) is normal. 1 (700) is bold.




Tags:

access:  public


Parameters:

integer   $weight   Weight for the text, 0 maps to 400 (normal text),

[ Top ]

method setBorder [line 820]

void setBorder( integer $style)

Set cells borders to the same style

Set cells borders to the same style




Tags:

access:  public


Parameters:

integer   $style   style to apply for all cell borders. 1 => thin, 2 => thick.

[ Top ]

method setBorderColor [line 840]

void setBorderColor( mixed $color)

Sets all the cell's borders to the same color

Sets all the cell's borders to the same color




Tags:

access:  public


Parameters:

mixed   $color   The color we are setting. Either a string (like 'blue'), or an integer (range is [8...63]).

[ Top ]

method setBottom [line 775]

void setBottom( integer $style)

Sets the width for the bottom border of the cell

Sets the width for the bottom border of the cell




Tags:

access:  public


Parameters:

integer   $style   style of the cell border. 1 => thin, 2 => thick.

[ Top ]

method setBottomColor [line 854]

void setBottomColor( mixed $color)

Sets the cell's bottom border color

Sets the cell's bottom border color




Tags:

access:  public


Parameters:

mixed   $color   either a string (like 'blue'), or an integer (range is [8...63]).

[ Top ]

method setColor [line 933]

void setColor( mixed $color)

Sets the cell's color

Sets the cell's color




Tags:

access:  public


Parameters:

mixed   $color   either a string (like 'blue'), or an integer (range is [8...63]).

[ Top ]

method setFgColor [line 903]

void setFgColor( mixed $color)

Sets the cell's foreground color

Sets the cell's foreground color




Tags:

access:  public


Parameters:

mixed   $color   either a string (like 'blue'), or an integer (range is [8...63]).

[ Top ]

method setFontFamily [line 1117]

void setFontFamily( $font_family, string $fontfamily)

Sets the font family name.

Sets the font family name.




Tags:

access:  public


Parameters:

string   $fontfamily   The font family name. Possible values are: 'Times New Roman', 'Arial', 'Courier'.
   $font_family  

[ Top ]

method setHAlign [line 659]

void setHAlign( string $location)

Set cell horizontal alignment.

Set cell horizontal alignment.




Tags:

access:  public


Parameters:

string   $location   alignment for the cell ('left', 'right', etc...).

[ Top ]

method setItalic [line 968]

void setItalic( )

Sets the font style as italic

Sets the font style as italic




Tags:

access:  public


[ Top ]

method setLeft [line 797]

void setLeft( integer $style)

Sets the width for the left border of the cell

Sets the width for the left border of the cell




Tags:

access:  public


Parameters:

integer   $style   style of the cell left border. 1 => thin, 2 => thick.

[ Top ]

method setLeftColor [line 878]

void setLeftColor( mixed $color)

Sets the cell's left border color

Sets the cell's left border color




Tags:

access:  public


Parameters:

mixed   $color   either a string (like 'blue'), or an integer (range is [8...63]).

[ Top ]

method setLocked [line 1095]

void setLocked( )

Locks a cell.

Locks a cell.




Tags:

access:  public


[ Top ]

method setMerge [line 732]

void setMerge( )

This is an alias for the unintuitive setAlign('merge')

This is an alias for the unintuitive setAlign('merge')




Tags:

access:  public


[ Top ]

method setNumFormat [line 1043]

void setNumFormat( integer $num_format)

Sets the numeric format.

Sets the numeric format. It can be date, time, currency, etc...




Tags:

access:  public


Parameters:

integer   $num_format   The numeric format.

[ Top ]

method setOutLine [line 1063]

void setOutLine( )

Sets outlining for a font.

Sets outlining for a font.




Tags:

access:  public


[ Top ]

method setPattern [line 946]

void setPattern( [integer $arg = 1])

Sets the fill pattern attribute of a cell

Sets the fill pattern attribute of a cell




Tags:

access:  public


Parameters:

integer   $arg   Optional. Defaults to 1. Meaningful values are: 0-18,
  1. meaning no background.

[ Top ]

method setRight [line 808]

void setRight( integer $style)

Sets the width for the right border of the cell

Sets the width for the right border of the cell




Tags:

access:  public


Parameters:

integer   $style   style of the cell right border. 1 => thin, 2 => thick.

[ Top ]

method setRightColor [line 890]

void setRightColor( mixed $color)

Sets the cell's right border color

Sets the cell's right border color




Tags:

access:  public


Parameters:

mixed   $color   either a string (like 'blue'), or an integer (range is [8...63]).

[ Top ]

method setScript [line 1085]

void setScript( integer $script)

Sets the script type of the text

Sets the script type of the text




Tags:

access:  public


Parameters:

integer   $script   The value for script type. Possible values are:
  1. => superscript, 2 => subscript.

[ Top ]

method setShadow [line 1073]

void setShadow( )

Sets font as shadow.

Sets font as shadow.




Tags:

access:  public


[ Top ]

method setShrinkToFit [line 999]

void setShrinkToFit( )

Sets Shrink To Fit

Sets Shrink To Fit




Tags:

access:  public


[ Top ]

method setSize [line 979]

void setSize( integer $size)

Sets the font size

Sets the font size




Tags:

access:  public


Parameters:

integer   $size   The font size (in pixels I think).

[ Top ]

method setStrikeOut [line 1053]

void setStrikeOut( )

Sets font as strikeout.

Sets font as strikeout.




Tags:

access:  public


[ Top ]

method setTextRotation [line 1011]

void setTextRotation( integer $angle)

Sets the orientation of the text

Sets the orientation of the text




Tags:

access:  public


Parameters:

integer   $angle   The rotation angle for the text (clockwise). Possible

[ Top ]

method setTextWrap [line 989]

void setTextWrap( )

Sets text wrapping

Sets text wrapping




Tags:

access:  public


[ Top ]

method setTop [line 786]

void setTop( integer $style)

Sets the width for the top border of the cell

Sets the width for the top border of the cell




Tags:

access:  public


Parameters:

integer   $style   style of the cell top border. 1 => thin, 2 => thick.

[ Top ]

method setTopColor [line 866]

void setTopColor( mixed $color)

Sets the cell's top border color

Sets the cell's top border color




Tags:

access:  public


Parameters:

mixed   $color   either a string (like 'blue'), or an integer (range is [8...63]).

[ Top ]

method setUnderline [line 958]

void setUnderline( integer $underline)

Sets the underline of the text

Sets the underline of the text




Tags:

access:  public


Parameters:

integer   $underline   The value for underline. Possible values are:
  1. => underline, 2 => double underline.

[ Top ]

method setUnLocked [line 1105]

void setUnLocked( )

Unlocks a cell.

Unlocks a cell. Useful for unprotecting particular cells of a protected sheet.




Tags:

access:  public


[ Top ]

method setVAlign [line 699]

void setVAlign( string $location)

Set cell vertical alignment.

Set cell vertical alignment.




Tags:

access:  public


Parameters:

string   $location   alignment for the cell ('top', 'vleft', 'vright', etc...).

[ Top ]

method _getColor [line 543]

integer _getColor( [string $name_color = ''])

Used in conjunction with the set_xxx_color methods to convert a color string into a number. to 8.

Used in conjunction with the set_xxx_color methods to convert a color string into a number. Color range is 0..63 but we will restrict it to 8..63 to comply with Gnumeric. Colors 0..7 are repeated in 8..15.




Tags:

return:  The color index
access:  private


Parameters:

string   $name_color   name of the color (i.e.: 'blue', 'red', etc..). Optional.

[ Top ]


Documentation generated on Mon, 25 Aug 2008 13:39:03 +0200 by phpDocumentor 1.4.1