|
ILIAS
eassessment Revision 61809
|
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. | |
| getGenerateSheetNavigationBlock () | |
| Get sheet index. | |
| setGenerateSheetNavigationBlock ($pValue=true) | |
| Set sheet index. | |
| writeAllSheets () | |
| Write all sheets (resets sheetIndex to NULL) | |
| generateHTMLHeader ($pIncludeStyles=false) | |
| Generate HTML header. | |
| generateSheetData () | |
| Generate sheet data. | |
| generateNavigation () | |
| Generate sheet tabs. | |
| 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? | |
| formatColor ($pValue, $pFormat) | |
| Add color to formatted string as inline style. | |
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. | |
| _calculateSpans () | |
| Calculate information about HTML colspan and rowspan which is not always the same as Excel's. | |
Private Attributes | |
| $_sheetIndex = 0 | |
| $_preCalculateFormulas = true | |
| $_imagesRoot = '.' | |
| $_useInlineCss = false | |
| $_cssStyles = null | |
| $_columnWidths = null | |
| $_defaultFont | |
| $_spansAreCalculated = false | |
| $_isSpannedCell = array() | |
| $_isBaseCell = array() | |
| $_isSpannedRow = array() | |
| $_generateSheetNavigationBlock = true | |
| PHPExcel_Writer_HTML::__construct | ( | PHPExcel | $phpExcel | ) |
Create a new PHPExcel_Writer_HTML.
Reimplemented in PHPExcel_Writer_PDF.
Definition at line 140 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 1153 of file HTML.php.
Referenced by _generateRow(), _generateTableHeader(), and generateStyles().
Here is the caller graph for this function:
|
private |
Calculate information about HTML colspan and rowspan which is not always the same as Excel's.
Definition at line 1258 of file HTML.php.
References PHPExcel_Cell\columnIndexFromString(), PHPExcel_Cell\coordinateFromString(), and PHPExcel_Cell\splitRange().
Referenced by buildCSS(), and generateSheetData().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Create CSS style.
| PHPExcel_Style | $pStyle | PHPExcel_Style |
Definition at line 725 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 747 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 820 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 800 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 837 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 767 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 (0-based) |
| Exception |
Definition at line 930 of file HTML.php.
References _assembleCSS(), _createCSSStyleFont(), _generateTableFooter(), _generateTableHeader(), _writeImageTagInCell(), PHPExcel_Worksheet\getBreaks(), PHPExcel_Worksheet\getHyperlink(), PHPExcel_Worksheet\getParent(), PHPExcel_Style_Alignment\HORIZONTAL_GENERAL, PHPExcel_Worksheet\hyperlinkExists(), PHPExcel_Cell\stringFromColumnIndex(), and PHPExcel_Style_NumberFormat\toFormattedString().
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 912 of file HTML.php.
Referenced by _generateRow(), and 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 870 of file HTML.php.
References _assembleCSS(), and PHPExcel_Cell\columnIndexFromString().
Referenced by _generateRow(), and generateSheetData().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Map border style.
Definition at line 223 of file HTML.php.
References PHPExcel_Style_Border\BORDER_DASHDOT, PHPExcel_Style_Border\BORDER_DASHDOTDOT, PHPExcel_Style_Border\BORDER_DASHED, PHPExcel_Style_Border\BORDER_DOTTED, PHPExcel_Style_Border\BORDER_DOUBLE, PHPExcel_Style_Border\BORDER_HAIR, PHPExcel_Style_Border\BORDER_MEDIUM, PHPExcel_Style_Border\BORDER_MEDIUMDASHDOT, PHPExcel_Style_Border\BORDER_MEDIUMDASHDOTDOT, PHPExcel_Style_Border\BORDER_MEDIUMDASHED, PHPExcel_Style_Border\BORDER_NONE, PHPExcel_Style_Border\BORDER_SLANTDASHDOT, PHPExcel_Style_Border\BORDER_THICK, and PHPExcel_Style_Border\BORDER_THIN.
Referenced by _createCSSStyleBorder().
Here is the caller graph for this function:
|
private |
Map HAlign.
Definition at line 208 of file HTML.php.
References PHPExcel_Style_Alignment\HORIZONTAL_CENTER, PHPExcel_Style_Alignment\HORIZONTAL_CENTER_CONTINUOUS, 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 193 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 491 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 575 of file HTML.php.
References $_cssStyles, $_defaultFont, $row, _calculateSpans(), _createCSSStyle(), PHPExcel_Shared_Drawing\cellDimensionToPixels(), PHPExcel_Cell\columnIndexFromString(), PHPExcel_Shared_Font\getDefaultRowHeightByFont(), and PHPExcel_Shared_Drawing\pixelsToPoints().
Referenced by generateStyles(), save(), and PHPExcel_Writer_PDF\save().
Here is the call graph for this function:
Here is the caller graph for this function:| PHPExcel_Writer_HTML::formatColor | ( | $pValue, | |
| $pFormat | |||
| ) |
Add color to formatted string as inline style.
| string | $pValue | Plain formatted value without color |
| string | $pFormat | Format code |
Definition at line 1231 of file HTML.php.
| PHPExcel_Writer_HTML::generateHTMLFooter | ( | ) |
| PHPExcel_Writer_HTML::generateHTMLHeader | ( | $pIncludeStyles = false | ) |
Generate HTML header.
| boolean | $pIncludeStyles | Include styles? |
| Exception |
Definition at line 298 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::generateNavigation | ( | ) |
Generate sheet tabs.
| Exception |
Definition at line 447 of file HTML.php.
Referenced by save().
Here is the caller graph for this function:| PHPExcel_Writer_HTML::generateSheetData | ( | ) |
Generate sheet data.
| Exception |
Definition at line 328 of file HTML.php.
References $row, _calculateSpans(), _generateRow(), _generateTableFooter(), _generateTableHeader(), PHPExcel_Cell\columnIndexFromString(), and PHPExcel_Cell\coordinateFromString().
Referenced by save(), and PHPExcel_Writer_PDF\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 534 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::getGenerateSheetNavigationBlock | ( | ) |
Get sheet index.
Definition at line 268 of file HTML.php.
References $_generateSheetNavigationBlock.
| PHPExcel_Writer_HTML::getImagesRoot | ( | ) |
Get images root.
Definition at line 1189 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 1169 of file HTML.php.
References $_preCalculateFormulas.
| PHPExcel_Writer_HTML::getSheetIndex | ( | ) |
Get sheet index.
Definition at line 248 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 1209 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 151 of file HTML.php.
References buildCSS(), generateHTMLFooter(), generateHTMLHeader(), generateNavigation(), generateSheetData(), PHPExcel_Calculation\getArrayReturnType(), PHPExcel_Calculation\getInstance(), PHPExcel_Calculation\RETURN_ARRAY_AS_VALUE, and PHPExcel_Calculation\setArrayReturnType().
Here is the call graph for this function:| PHPExcel_Writer_HTML::setGenerateSheetNavigationBlock | ( | $pValue = true | ) |
Set sheet index.
| boolean | $pValue | Flag indicating whether the sheet navigation block should be generated or not |
Definition at line 278 of file HTML.php.
| PHPExcel_Writer_HTML::setImagesRoot | ( | $pValue = '.' | ) |
Set images root.
| string | $pValue |
Definition at line 1199 of file HTML.php.
| PHPExcel_Writer_HTML::setPreCalculateFormulas | ( | $pValue = true | ) |
Set Pre-Calculate Formulas.
| boolean | $pValue | Pre-Calculate Formulas? |
Definition at line 1179 of file HTML.php.
| PHPExcel_Writer_HTML::setSheetIndex | ( | $pValue = 0 | ) |
Set sheet index.
| int | $pValue | Sheet index |
Definition at line 258 of file HTML.php.
| PHPExcel_Writer_HTML::setUseInlineCss | ( | $pValue = false | ) |
Set use inline CSS?
| boolean | $pValue |
Definition at line 1219 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 77 of file HTML.php.
Referenced by buildCSS().
|
private |
Definition at line 91 of file HTML.php.
Referenced by buildCSS().
|
private |
Definition at line 133 of file HTML.php.
Referenced by getGenerateSheetNavigationBlock().
|
private |
Definition at line 63 of file HTML.php.
Referenced by getImagesRoot().
|
private |
Definition at line 56 of file HTML.php.
Referenced by getPreCalculateFormulas().
|
private |
Definition at line 49 of file HTML.php.
Referenced by getSheetIndex().
|
private |
Definition at line 70 of file HTML.php.
Referenced by getUseInlineCss().