|
ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Inheritance diagram for PHPExcel_Writer_HTML:
Collaboration diagram for PHPExcel_Writer_HTML:Public Member Functions | |
| __construct (PHPExcel $phpExcel) | |
| Create a new PHPExcel_Writer_HTML. More... | |
| save ($pFilename=null) | |
| Save PHPExcel to file. More... | |
| getSheetIndex () | |
| Get sheet index. More... | |
| setSheetIndex ($pValue=0) | |
| Set sheet index. More... | |
| getGenerateSheetNavigationBlock () | |
| Get sheet index. More... | |
| setGenerateSheetNavigationBlock ($pValue=true) | |
| Set sheet index. More... | |
| writeAllSheets () | |
| Write all sheets (resets sheetIndex to NULL) More... | |
| generateHTMLHeader ($pIncludeStyles=false) | |
| Generate HTML header. More... | |
| generateSheetData () | |
| Generate sheet data. More... | |
| generateNavigation () | |
| Generate sheet tabs. More... | |
| generateStyles ($generateSurroundingHTML=true) | |
| Generate CSS styles. More... | |
| buildCSS ($generateSurroundingHTML=true) | |
| Build CSS styles. More... | |
| generateHTMLFooter () | |
| Generate HTML footer. More... | |
| getImagesRoot () | |
| Get images root. More... | |
| setImagesRoot ($pValue='.') | |
| Set images root. More... | |
| getEmbedImages () | |
| Get embed images. More... | |
| setEmbedImages ($pValue='.') | |
| Set embed images. More... | |
| getUseInlineCss () | |
| Get use inline CSS? More... | |
| setUseInlineCss ($pValue=false) | |
| Set use inline CSS? More... | |
| formatColor ($pValue, $pFormat) | |
| Add color to formatted string as inline style. More... | |
Public Member Functions inherited from PHPExcel_Writer_Abstract | |
| getIncludeCharts () | |
| Write charts in workbook? If this is true, then the Writer will write definitions for any charts that exist in the PHPExcel object. More... | |
| setIncludeCharts ($pValue=FALSE) | |
| Set write charts in workbook Set to true, to advise the Writer to include any charts that exist in the PHPExcel object. More... | |
| getPreCalculateFormulas () | |
| Get Pre-Calculate Formulas flag If this is true (the default), then the writer will recalculate all formulae in a workbook when saving, so that the pre-calculated values are immediately available to MS Excel or other office spreadsheet viewer when opening the file If false, then formulae are not calculated on save. More... | |
| setPreCalculateFormulas ($pValue=TRUE) | |
| Set Pre-Calculate Formulas Set to true (the default) to advise the Writer to calculate all formulae on save Set to false to prevent precalculation of formulae on save. More... | |
| getUseDiskCaching () | |
| Get use disk caching where possible? More... | |
| setUseDiskCaching ($pValue=FALSE, $pDirectory=NULL) | |
| Set use disk caching where possible? More... | |
| getDiskCachingDirectory () | |
| Get disk caching directory. More... | |
| save ($pFilename=NULL) | |
| Save PHPExcel to file. More... | |
Protected Attributes | |
| $_phpExcel | |
| $_isPdf = false | |
Protected Attributes inherited from PHPExcel_Writer_Abstract | |
| $_includeCharts = FALSE | |
| $_preCalculateFormulas = TRUE | |
| $_useDiskCaching = FALSE | |
| $_diskCachingDirectory = './' | |
Private Member Functions | |
| _mapVAlign ($vAlign) | |
| Map VAlign. More... | |
| _mapHAlign ($hAlign) | |
| Map HAlign. More... | |
| _mapBorderStyle ($borderStyle) | |
| Map border style. More... | |
| _extendRowsForChartsAndImages (PHPExcel_Worksheet $pSheet, $row) | |
| _writeImageInCell (PHPExcel_Worksheet $pSheet, $coordinates) | |
| Generate image tag in cell. More... | |
| _writeChartInCell (PHPExcel_Worksheet $pSheet, $coordinates) | |
| Generate chart tag in cell. More... | |
| _createCSSStyle (PHPExcel_Style $pStyle) | |
| Create CSS style. More... | |
| _createCSSStyleAlignment (PHPExcel_Style_Alignment $pStyle) | |
| Create CSS style (PHPExcel_Style_Alignment) More... | |
| _createCSSStyleFont (PHPExcel_Style_Font $pStyle) | |
| Create CSS style (PHPExcel_Style_Font) More... | |
| _createCSSStyleBorders (PHPExcel_Style_Borders $pStyle) | |
| Create CSS style (PHPExcel_Style_Borders) More... | |
| _createCSSStyleBorder (PHPExcel_Style_Border $pStyle) | |
| Create CSS style (PHPExcel_Style_Border) More... | |
| _createCSSStyleFill (PHPExcel_Style_Fill $pStyle) | |
| Create CSS style (PHPExcel_Style_Fill) More... | |
| _generateTableHeader ($pSheet) | |
| Generate table header. More... | |
| _generateTableFooter () | |
| Generate table footer. More... | |
| _generateRow (PHPExcel_Worksheet $pSheet, $pValues=null, $pRow=0, $cellType='td') | |
| Generate row. More... | |
| _assembleCSS ($pValue=array()) | |
| Takes array where of CSS properties / values and converts to CSS string. More... | |
| _calculateSpans () | |
| Calculate information about HTML colspan and rowspan which is not always the same as Excel's. More... | |
| _setMargins (PHPExcel_Worksheet $pSheet) | |
Private Attributes | |
| $_sheetIndex = 0 | |
| $_imagesRoot = '.' | |
| $_embedImages = FALSE | |
| $_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_Core, PHPExcel_Writer_PDF_DomPDF, PHPExcel_Writer_PDF_mPDF, and PHPExcel_Writer_PDF_tcPDF.
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 1333 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 1438 of file HTML.php.
References $lc, $lr, $r, 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 874 of file HTML.php.
References _createCSSStyleAlignment(), 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 896 of file HTML.php.
References _mapHAlign(), _mapVAlign(), PHPExcel_Style_Alignment\getHorizontal(), PHPExcel_Style_Alignment\getIndent(), 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 971 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 951 of file HTML.php.
References _createCSSStyleBorder(), PHPExcel_Style_Borders\getBottom(), PHPExcel_Style_Borders\getLeft(), PHPExcel_Style_Borders\getRight(), and PHPExcel_Style_Borders\getTop().
Here is the call graph for this function:
|
private |
Create CSS style (PHPExcel_Style_Fill)
| PHPExcel_Style_Fill | $pStyle | PHPExcel_Style_Fill |
Definition at line 988 of file HTML.php.
References PHPExcel_Style_Fill\FILL_NONE, PHPExcel_Style_Fill\getFillType(), and PHPExcel_Style_Fill\getStartColor().
Here is the call graph for this function:
|
private |
Create CSS style (PHPExcel_Style_Font)
| PHPExcel_Style_Font | $pStyle | PHPExcel_Style_Font |
Definition at line 918 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 _generateRow().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 511 of file HTML.php.
References $chart, $html, $row, _writeChartInCell(), _writeImageInCell(), PHPExcel_Cell\columnIndexFromString(), PHPExcel_Cell\coordinateFromString(), PHPExcel_Worksheet\getChartCollection(), and PHPExcel_Worksheet\getDrawingCollection().
Referenced by generateSheetData().
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) |
| PHPExcel_Writer_Exception |
Definition at line 1084 of file HTML.php.
References $html, $i, $style, _assembleCSS(), _createCSSStyleFont(), _generateTableFooter(), _generateTableHeader(), _writeChartInCell(), _writeImageInCell(), PHPExcel_Worksheet\getBreaks(), PHPExcel_Worksheet\getCell(), PHPExcel_Worksheet\getHyperlink(), PHPExcel_Worksheet\getParent(), PHPExcel_Style_Alignment\HORIZONTAL_GENERAL, PHPExcel_Worksheet\hyperlinkExists(), PHP_EOL, 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.
| PHPExcel_Writer_Exception |
Definition at line 1066 of file HTML.php.
References $html, and PHP_EOL.
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 |
| PHPExcel_Writer_Exception |
Definition at line 1021 of file HTML.php.
References $html, $i, $style, _assembleCSS(), _setMargins(), PHPExcel_Cell\columnIndexFromString(), and PHP_EOL.
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.
| int | $borderStyle | Sheet index |
Definition at line 230 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.
| string | $hAlign | Horizontal alignment |
Definition at line 212 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.
| string | $vAlign | Vertical alignment |
Definition at line 196 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 |
Definition at line 1525 of file HTML.php.
References PHPExcel_Shared_String\FormatNumber(), and PHPExcel_Worksheet\getPageMargins().
Referenced by _generateTableHeader().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Generate chart tag in cell.
| PHPExcel_Worksheet | $pSheet | PHPExcel_Worksheet |
| string | $coordinates | Cell coordinates |
| PHPExcel_Writer_Exception |
Definition at line 634 of file HTML.php.
References $chart, $html, PHPExcel_Worksheet\getChartCollection(), PHP_EOL, and PHPExcel_Shared_File\sys_get_temp_dir().
Referenced by _extendRowsForChartsAndImages(), and _generateRow().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Generate image tag in cell.
| PHPExcel_Worksheet | $pSheet | PHPExcel_Worksheet |
| string | $coordinates | Cell coordinates |
| PHPExcel_Writer_Exception |
Definition at line 569 of file HTML.php.
References $filename, $html, PHPExcel_Worksheet\getDrawingCollection(), getImagesRoot(), and PHP_EOL.
Referenced by _extendRowsForChartsAndImages(), and _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 { }) |
| PHPExcel_Writer_Exception |
Definition at line 720 of file HTML.php.
References $_cssStyles, $column, $index, $row, $style, _calculateSpans(), _createCSSStyle(), PHPExcel_Shared_Drawing\cellDimensionToPixels(), PHPExcel_Cell\columnIndexFromString(), PHPExcel_Shared_Font\getDefaultRowHeightByFont(), and PHPExcel_Shared_Drawing\pixelsToPoints().
Referenced by generateStyles(), PHPExcel_Writer_PDF_Core\prepareForSave(), and 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 1411 of file HTML.php.
| PHPExcel_Writer_HTML::generateHTMLFooter | ( | ) |
Generate HTML footer.
Definition at line 1004 of file HTML.php.
References $html, and PHP_EOL.
Referenced by save(), PHPExcel_Writer_PDF_DomPDF\save(), PHPExcel_Writer_PDF_mPDF\save(), and PHPExcel_Writer_PDF_tcPDF\save().
Here is the caller graph for this function:| PHPExcel_Writer_HTML::generateHTMLHeader | ( | $pIncludeStyles = false | ) |
Generate HTML header.
| boolean | $pIncludeStyles | Include styles? |
| PHPExcel_Writer_Exception |
Definition at line 305 of file HTML.php.
References $html, generateStyles(), and PHP_EOL.
Referenced by save(), PHPExcel_Writer_PDF_DomPDF\save(), PHPExcel_Writer_PDF_mPDF\save(), and PHPExcel_Writer_PDF_tcPDF\save().
Here is the call graph for this function:
Here is the caller graph for this function:| PHPExcel_Writer_HTML::generateNavigation | ( | ) |
Generate sheet tabs.
| PHPExcel_Writer_Exception |
Definition at line 475 of file HTML.php.
References $html, and PHP_EOL.
Referenced by save().
Here is the caller graph for this function:| PHPExcel_Writer_HTML::generateSheetData | ( | ) |
Generate sheet data.
| PHPExcel_Writer_Exception |
Definition at line 356 of file HTML.php.
References $column, $html, $row, _calculateSpans(), _extendRowsForChartsAndImages(), _generateRow(), _generateTableFooter(), _generateTableHeader(), PHPExcel_Cell\columnIndexFromString(), PHPExcel_Cell\coordinateFromString(), PHP_EOL, and PHPExcel_Cell\stringFromColumnIndex().
Referenced by save(), PHPExcel_Writer_PDF_DomPDF\save(), PHPExcel_Writer_PDF_mPDF\save(), and PHPExcel_Writer_PDF_tcPDF\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>) |
| PHPExcel_Writer_Exception |
Definition at line 679 of file HTML.php.
References $html, _assembleCSS(), buildCSS(), and PHP_EOL.
Referenced by generateHTMLHeader().
Here is the call graph for this function:
Here is the caller graph for this function:| PHPExcel_Writer_HTML::getEmbedImages | ( | ) |
Get embed images.
Definition at line 1369 of file HTML.php.
References $_embedImages.
| PHPExcel_Writer_HTML::getGenerateSheetNavigationBlock | ( | ) |
Get sheet index.
Definition at line 275 of file HTML.php.
References $_generateSheetNavigationBlock.
| PHPExcel_Writer_HTML::getImagesRoot | ( | ) |
Get images root.
Definition at line 1349 of file HTML.php.
References $_imagesRoot.
Referenced by _writeImageInCell().
Here is the caller graph for this function:| PHPExcel_Writer_HTML::getSheetIndex | ( | ) |
Get sheet index.
Definition at line 255 of file HTML.php.
References $_sheetIndex.
Referenced by PHPExcel_Writer_PDF_DomPDF\save(), PHPExcel_Writer_PDF_mPDF\save(), and PHPExcel_Writer_PDF_tcPDF\save().
Here is the caller graph for this function:| PHPExcel_Writer_HTML::getUseInlineCss | ( | ) |
Get use inline CSS?
Definition at line 1389 of file HTML.php.
References $_useInlineCss.
| PHPExcel_Writer_HTML::save | ( | $pFilename = null | ) |
Save PHPExcel to file.
| string | $pFilename |
| PHPExcel_Writer_Exception |
Implements PHPExcel_Writer_IWriter.
Reimplemented in PHPExcel_Writer_PDF_DomPDF, PHPExcel_Writer_PDF_mPDF, and PHPExcel_Writer_PDF_tcPDF.
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::setEmbedImages | ( | $pValue = '.' | ) |
Set embed images.
| boolean | $pValue |
Definition at line 1379 of file HTML.php.
| 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 285 of file HTML.php.
| PHPExcel_Writer_HTML::setImagesRoot | ( | $pValue = '.' | ) |
Set images root.
| string | $pValue |
Definition at line 1359 of file HTML.php.
| PHPExcel_Writer_HTML::setSheetIndex | ( | $pValue = 0 | ) |
Set sheet index.
| int | $pValue | Sheet index |
Definition at line 265 of file HTML.php.
| PHPExcel_Writer_HTML::setUseInlineCss | ( | $pValue = false | ) |
Set use inline CSS?
| boolean | $pValue |
Definition at line 1399 of file HTML.php.
Referenced by PHPExcel_Writer_PDF_Core\__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 63 of file HTML.php.
Referenced by getEmbedImages().
|
private |
Definition at line 133 of file HTML.php.
Referenced by getGenerateSheetNavigationBlock().
|
private |
Definition at line 56 of file HTML.php.
Referenced by getImagesRoot().
|
private |
Definition at line 49 of file HTML.php.
Referenced by getSheetIndex().
|
private |
Definition at line 70 of file HTML.php.
Referenced by getUseInlineCss().