|
ILIAS
Release_4_0_x_branch Revision 61816
|
Inheritance diagram for PHPExcel_Writer_HTML:
Collaboration diagram for PHPExcel_Writer_HTML:Public Member Functions | |
| __construct (PHPExcel $phpExcel) | |
| Create a new PHPExcel_Writer_HTML. | |
| save ($pFilename=null) | |
| Save PHPExcel to file. | |
| getSheetIndex () | |
| Get sheet index. | |
| setSheetIndex ($pValue=0) | |
| Set sheet index. | |
| writeAllSheets () | |
| Write all sheets (resets sheetIndex to NULL) | |
| generateHTMLHeader ($pIncludeStyles=false) | |
| Generate HTML header. | |
| generateSheetData () | |
| Generate sheet data. | |
| generateStyles ($generateSurroundingHTML=true) | |
| Generate CSS styles. | |
| buildCSS ($generateSurroundingHTML=true) | |
| Build CSS styles. | |
| generateHTMLFooter () | |
| Generate HTML footer. | |
| getPreCalculateFormulas () | |
| Get Pre-Calculate Formulas. | |
| setPreCalculateFormulas ($pValue=true) | |
| Set Pre-Calculate Formulas. | |
| getImagesRoot () | |
| Get images root. | |
| setImagesRoot ($pValue= '.') | |
| Set images root. | |
| getUseInlineCss () | |
| Get use inline CSS? | |
| setUseInlineCss ($pValue=false) | |
| Set use inline CSS? | |
Protected Attributes | |
| $_phpExcel | |
| $_isPdf = false | |
Private Member Functions | |
| _mapVAlign ($vAlign) | |
| Map VAlign. | |
| _mapHAlign ($hAlign) | |
| Map HAlign. | |
| _mapBorderStyle ($borderStyle) | |
| Map border style. | |
| _writeImageTagInCell (PHPExcel_Worksheet $pSheet, $coordinates) | |
| Generate image tag in cell. | |
| _createCSSStyle (PHPExcel_Style $pStyle) | |
| Create CSS style. | |
| _createCSSStyleAlignment (PHPExcel_Style_Alignment $pStyle) | |
| Create CSS style (PHPExcel_Style_Alignment) | |
| _createCSSStyleFont (PHPExcel_Style_Font $pStyle) | |
| Create CSS style (PHPExcel_Style_Font) | |
| _createCSSStyleBorders (PHPExcel_Style_Borders $pStyle) | |
| Create CSS style (PHPExcel_Style_Borders) | |
| _createCSSStyleBorder (PHPExcel_Style_Border $pStyle) | |
| Create CSS style (PHPExcel_Style_Border) | |
| _createCSSStyleFill (PHPExcel_Style_Fill $pStyle) | |
| Create CSS style (PHPExcel_Style_Fill) | |
| _generateTableHeader ($pSheet) | |
| Generate table header. | |
| _generateTableFooter () | |
| Generate table footer. | |
| _generateRow (PHPExcel_Worksheet $pSheet, $pValues=null, $pRow=0) | |
| Generate row. | |
| _assembleCSS ($pValue=array()) | |
| Takes array where of CSS properties / values and converts to CSS string. | |
| _convertNbsp ($pValue= '') | |
| Converts a string so that spaces occuring at beginning of each new line are replaced by Example: " Hello\n to the world" is converted to " Hello\n to the world". | |
Private Attributes | |
| $_sheetIndex | |
| $_preCalculateFormulas = true | |
| $_imagesRoot = '.' | |
| $_useInlineCss = false | |
| $_cssStyles = null | |
| $_columnWidths = null | |
| $_defaultFontSize | |
| PHPExcel_Writer_HTML::__construct | ( | PHPExcel | $phpExcel | ) |
Create a new PHPExcel_Writer_HTML.
Reimplemented in PHPExcel_Writer_PDF.
Definition at line 132 of file HTML.php.
References PHPExcel\getDefaultStyle().
Here is the call graph for this function:
|
private |
Takes array where of CSS properties / values and converts to CSS string.
| array |
Definition at line 995 of file HTML.php.
Referenced by _generateRow(), _generateTableHeader(), and generateStyles().
Here is the caller graph for this function:
|
private |
Converts a string so that spaces occuring at beginning of each new line are replaced by Example: " Hello\n to the world" is converted to " Hello\n to the world".
| string | $pValue |
Definition at line 1073 of file HTML.php.
Referenced by _generateRow().
Here is the caller graph for this function:
|
private |
Create CSS style.
| PHPExcel_Style | $pStyle | PHPExcel_Style |
Definition at line 583 of file HTML.php.
References _createCSSStyleAlignment(), _createCSSStyleBorders(), _createCSSStyleFill(), _createCSSStyleFont(), PHPExcel_Style\getAlignment(), PHPExcel_Style\getBorders(), PHPExcel_Style\getFill(), and PHPExcel_Style\getFont().
Referenced by buildCSS().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Create CSS style (PHPExcel_Style_Alignment)
| PHPExcel_Style_Alignment | $pStyle | PHPExcel_Style_Alignment |
Definition at line 605 of file HTML.php.
References _mapHAlign(), _mapVAlign(), PHPExcel_Style_Alignment\getHorizontal(), and PHPExcel_Style_Alignment\getVertical().
Referenced by _createCSSStyle().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Create CSS style (PHPExcel_Style_Border)
| PHPExcel_Style_Border | $pStyle | PHPExcel_Style_Border |
Definition at line 678 of file HTML.php.
References _mapBorderStyle(), PHPExcel_Style_Border\getBorderStyle(), and PHPExcel_Style_Border\getColor().
Referenced by _createCSSStyleBorders().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Create CSS style (PHPExcel_Style_Borders)
| PHPExcel_Style_Borders | $pStyle | PHPExcel_Style_Borders |
Definition at line 658 of file HTML.php.
References _createCSSStyleBorder(), PHPExcel_Style_Borders\getBottom(), PHPExcel_Style_Borders\getLeft(), PHPExcel_Style_Borders\getRight(), and PHPExcel_Style_Borders\getTop().
Referenced by _createCSSStyle().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Create CSS style (PHPExcel_Style_Fill)
| PHPExcel_Style_Fill | $pStyle | PHPExcel_Style_Fill |
Definition at line 695 of file HTML.php.
References PHPExcel_Style_Fill\FILL_NONE, PHPExcel_Style_Fill\getFillType(), and PHPExcel_Style_Fill\getStartColor().
Referenced by _createCSSStyle().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Create CSS style (PHPExcel_Style_Font)
| PHPExcel_Style_Font | $pStyle | PHPExcel_Style_Font |
Definition at line 625 of file HTML.php.
References PHPExcel_Style_Font\getBold(), PHPExcel_Style_Font\getColor(), PHPExcel_Style_Font\getItalic(), PHPExcel_Style_Font\getName(), PHPExcel_Style_Font\getSize(), PHPExcel_Style_Font\getStrikethrough(), PHPExcel_Style_Font\getUnderline(), and PHPExcel_Style_Font\UNDERLINE_NONE.
Referenced by _createCSSStyle(), and _generateRow().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Generate row.
| PHPExcel_Worksheet | $pSheet | PHPExcel_Worksheet |
| array | $pValues | Array containing cells in a row |
| int | $pRow | Row number |
| Exception |
Definition at line 783 of file HTML.php.
References _assembleCSS(), _convertNbsp(), _createCSSStyleFont(), _writeImageTagInCell(), PHPExcel_Cell\columnIndexFromString(), PHPExcel_Worksheet\getMergeCells(), PHPExcel_Worksheet\getParent(), PHPExcel_Style_Alignment\HORIZONTAL_GENERAL, PHPExcel_Cell\rangeDimension(), PHPExcel_Cell\splitRange(), PHPExcel_Cell\stringFromColumnIndex(), PHPExcel_Style_NumberFormat\toFormattedString(), and PHPExcel_Cell_DataType\TYPE_NULL.
Referenced by generateSheetData().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Generate table footer.
| Exception |
Definition at line 765 of file HTML.php.
Referenced by generateSheetData().
Here is the caller graph for this function:
|
private |
Generate table header.
| PHPExcel_Worksheet | $pSheet | The worksheet for the table we are writing |
| Exception |
Definition at line 728 of file HTML.php.
References _assembleCSS(), and PHPExcel_Cell\columnIndexFromString().
Referenced by generateSheetData().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Map border style.
Definition at line 208 of file HTML.php.
References PHPExcel_Style_Border\BORDER_DASHED, PHPExcel_Style_Border\BORDER_DOTTED, PHPExcel_Style_Border\BORDER_NONE, and PHPExcel_Style_Border\BORDER_THICK.
Referenced by _createCSSStyleBorder().
Here is the caller graph for this function:
|
private |
Map HAlign.
Definition at line 194 of file HTML.php.
References PHPExcel_Style_Alignment\HORIZONTAL_CENTER, PHPExcel_Style_Alignment\HORIZONTAL_GENERAL, PHPExcel_Style_Alignment\HORIZONTAL_JUSTIFY, PHPExcel_Style_Alignment\HORIZONTAL_LEFT, and PHPExcel_Style_Alignment\HORIZONTAL_RIGHT.
Referenced by _createCSSStyleAlignment().
Here is the caller graph for this function:
|
private |
Map VAlign.
Definition at line 179 of file HTML.php.
References PHPExcel_Style_Alignment\VERTICAL_BOTTOM, PHPExcel_Style_Alignment\VERTICAL_CENTER, PHPExcel_Style_Alignment\VERTICAL_JUSTIFY, and PHPExcel_Style_Alignment\VERTICAL_TOP.
Referenced by _createCSSStyleAlignment().
Here is the caller graph for this function:
|
private |
Generate image tag in cell.
| PHPExcel_Worksheet | $pSheet | PHPExcel_Worksheet |
| string | $coordinates | Cell coordinates |
| Exception |
Definition at line 363 of file HTML.php.
References $filename, PHPExcel_Worksheet\getDrawingCollection(), and getImagesRoot().
Referenced by _generateRow().
Here is the call graph for this function:
Here is the caller graph for this function:| PHPExcel_Writer_HTML::buildCSS | ( | $generateSurroundingHTML = true | ) |
Build CSS styles.
| boolean | $generateSurroundingHTML | Generate surrounding HTML style? (html { }) |
| Exception |
Definition at line 447 of file HTML.php.
References $_cssStyles, $_defaultFontSize, $row, _createCSSStyle(), PHPExcel_Shared_Drawing\cellDimensionToPixels(), PHPExcel_Cell\columnIndexFromString(), and PHPExcel_Shared_Drawing\pixelsToPoints().
Referenced by generateStyles(), PHPExcel_Writer_PDF\save(), and save().
Here is the call graph for this function:
Here is the caller graph for this function:| PHPExcel_Writer_HTML::generateHTMLFooter | ( | ) |
| PHPExcel_Writer_HTML::generateHTMLHeader | ( | $pIncludeStyles = false | ) |
Generate HTML header.
| boolean | $pIncludeStyles | Include styles? |
| Exception |
Definition at line 252 of file HTML.php.
References generateStyles().
Referenced by save().
Here is the call graph for this function:
Here is the caller graph for this function:| PHPExcel_Writer_HTML::generateSheetData | ( | ) |
Generate sheet data.
| Exception |
Definition at line 283 of file HTML.php.
References $row, _generateRow(), _generateTableFooter(), _generateTableHeader(), PHPExcel_Cell\columnIndexFromString(), and PHPExcel_Cell\coordinateFromString().
Referenced by PHPExcel_Writer_PDF\save(), and save().
Here is the call graph for this function:
Here is the caller graph for this function:| PHPExcel_Writer_HTML::generateStyles | ( | $generateSurroundingHTML = true | ) |
Generate CSS styles.
| boolean | $generateSurroundingHTML | Generate surrounding HTML tags? (<style> and </style>) |
| Exception |
Definition at line 406 of file HTML.php.
References _assembleCSS(), and buildCSS().
Referenced by generateHTMLHeader().
Here is the call graph for this function:
Here is the caller graph for this function:| PHPExcel_Writer_HTML::getImagesRoot | ( | ) |
Get images root.
Definition at line 1031 of file HTML.php.
References $_imagesRoot.
Referenced by _writeImageTagInCell().
Here is the caller graph for this function:| PHPExcel_Writer_HTML::getPreCalculateFormulas | ( | ) |
Get Pre-Calculate Formulas.
Definition at line 1011 of file HTML.php.
References $_preCalculateFormulas.
| PHPExcel_Writer_HTML::getSheetIndex | ( | ) |
Get sheet index.
Definition at line 223 of file HTML.php.
References $_sheetIndex.
Referenced by PHPExcel_Writer_PDF\save().
Here is the caller graph for this function:| PHPExcel_Writer_HTML::getUseInlineCss | ( | ) |
Get use inline CSS?
Definition at line 1051 of file HTML.php.
References $_useInlineCss.
| PHPExcel_Writer_HTML::save | ( | $pFilename = null | ) |
Save PHPExcel to file.
| string | $pFileName |
| Exception |
Implements PHPExcel_Writer_IWriter.
Reimplemented in PHPExcel_Writer_PDF.
Definition at line 145 of file HTML.php.
References buildCSS(), generateHTMLFooter(), generateHTMLHeader(), generateSheetData(), PHPExcel_Calculation\getArrayReturnType(), PHPExcel_Calculation\RETURN_ARRAY_AS_VALUE, and PHPExcel_Calculation\setArrayReturnType().
Here is the call graph for this function:| PHPExcel_Writer_HTML::setImagesRoot | ( | $pValue = '.' | ) |
Set images root.
| string | $pValue |
Definition at line 1041 of file HTML.php.
| PHPExcel_Writer_HTML::setPreCalculateFormulas | ( | $pValue = true | ) |
Set Pre-Calculate Formulas.
| boolean | $pValue | Pre-Calculate Formulas? |
Definition at line 1021 of file HTML.php.
| PHPExcel_Writer_HTML::setSheetIndex | ( | $pValue = 0 | ) |
Set sheet index.
| int | $pValue | Sheet index |
Definition at line 233 of file HTML.php.
| PHPExcel_Writer_HTML::setUseInlineCss | ( | $pValue = false | ) |
Set use inline CSS?
| boolean | $pValue |
Definition at line 1061 of file HTML.php.
Referenced by PHPExcel_Writer_PDF\__construct().
Here is the caller graph for this function:| PHPExcel_Writer_HTML::writeAllSheets | ( | ) |
|
private |
Definition at line 104 of file HTML.php.
Referenced by buildCSS().
|
private |
Definition at line 118 of file HTML.php.
Referenced by buildCSS().
|
private |
Definition at line 90 of file HTML.php.
Referenced by getImagesRoot().
|
private |
Definition at line 83 of file HTML.php.
Referenced by getPreCalculateFormulas().
|
private |
Definition at line 76 of file HTML.php.
Referenced by getSheetIndex().
|
private |
Definition at line 97 of file HTML.php.
Referenced by getUseInlineCss().