ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Public Member Functions | |
__construct (Spreadsheet $spreadsheet) | |
Create a new HTML. More... | |
save ($pFilename) | |
Save Spreadsheet to file. More... | |
generateHtmlAll () | |
Save Spreadsheet as html to variable. More... | |
setEditHtmlCallback (?callable $callback) | |
Set a callback to edit the entire HTML. More... | |
getSheetIndex () | |
Get sheet index. More... | |
setSheetIndex ($pValue) | |
Set sheet index. More... | |
getGenerateSheetNavigationBlock () | |
Get sheet index. More... | |
setGenerateSheetNavigationBlock ($pValue) | |
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) | |
Set use inline CSS? More... | |
getUseEmbeddedCSS () | |
Get use embedded CSS? More... | |
setUseEmbeddedCSS ($pValue) | |
Set use embedded CSS? More... | |
formatColor ($pValue, $pFormat) | |
Add color to formatted string as inline style. More... | |
Public Member Functions inherited from PhpOffice\PhpSpreadsheet\Writer\BaseWriter | |
getIncludeCharts () | |
Write charts in workbook? If this is true, then the Writer will write definitions for any charts that exist in the PhpSpreadsheet object. More... | |
setIncludeCharts ($pValue) | |
Set write charts in workbook Set to true, to advise the Writer to include any charts that exist in the PhpSpreadsheet 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) | |
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, $pDirectory=null) | |
Set use disk caching where possible? More... | |
getDiskCachingDirectory () | |
Get disk caching directory. More... | |
openFileHandle ($filename) | |
Open file handle. More... | |
Static Public Member Functions | |
static | winFileToUrl ($filename) |
Convert Windows file name to file protocol URL. More... | |
Data Fields | |
const | VALIGN_ARR |
const | HALIGN_ARR |
const | BORDER_ARR |
Protected Attributes | |
$spreadsheet | |
$isPdf = false | |
Protected Attributes inherited from PhpOffice\PhpSpreadsheet\Writer\BaseWriter | |
$includeCharts = false | |
$preCalculateFormulas = true | |
$fileHandle | |
Private Member Functions | |
mapVAlign ($vAlign) | |
Map VAlign. More... | |
mapHAlign ($hAlign) | |
Map HAlign. More... | |
mapBorderStyle ($borderStyle) | |
Map border style. More... | |
generateSheetPrep () | |
generateSheetStarts ($sheet, $rowMin) | |
generateSheetTags ($row, $theadStart, $theadEnd, $tbodyStart) | |
extendRowsForCharts (Worksheet $pSheet, int $row) | |
Extend Row if chart is placed after nominal end of row. More... | |
extendRowsForChartsAndImages (Worksheet $pSheet, int $row) | |
writeImageInCell (Worksheet $pSheet, $coordinates) | |
Generate image tag in cell. More... | |
writeChartInCell (Worksheet $pSheet, $coordinates) | |
Generate chart tag in cell. More... | |
buildCssRowHeights (Worksheet $sheet, array &$css, int $sheetIndex) | |
buildCssPerSheet (Worksheet $sheet, array &$css) | |
createCSSStyle (Style $pStyle) | |
Create CSS style. More... | |
createCSSStyleAlignment (Alignment $pStyle) | |
Create CSS style (). More... | |
createCSSStyleFont (Font $pStyle) | |
Create CSS style (). More... | |
createCSSStyleBorders (Borders $pStyle) | |
Create CSS style (Borders). More... | |
createCSSStyleBorder (Border $pStyle) | |
Create CSS style (Border). More... | |
createCSSStyleFill (Fill $pStyle) | |
Create CSS style (Fill). More... | |
generateTableTagInline ($pSheet, $id) | |
generateTableTag ($pSheet, $id, &$html, $sheetIndex) | |
generateTableHeader ($pSheet, $showid=true) | |
Generate table header. More... | |
generateTableFooter () | |
Generate table footer. More... | |
generateRowStart (Worksheet $pSheet, $sheetIndex, $pRow) | |
Generate row start. More... | |
generateRowCellCss ($pSheet, $cellAddress, $pRow, $colNum) | |
generateRowCellDataValueRich ($cell, &$cellData) | |
generateRowCellDataValue ($pSheet, $cell, &$cellData) | |
generateRowCellData ($pSheet, $cell, &$cssClass, $cellType) | |
generateRowIncludeCharts ($pSheet, $coordinate) | |
generateRowSpans ($html, $rowSpan, $colSpan) | |
generateRowWriteCell (&$html, $pSheet, $coordinate, $cellType, $cellData, $colSpan, $rowSpan, $cssClass, $colNum, $sheetIndex, $pRow) | |
generateRow (Worksheet $pSheet, array $pValues, $pRow, $cellType) | |
Generate row. More... | |
assembleCSS (array $pValue=[]) | |
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... | |
calculateSpansOmitRows ($sheet, $sheetIndex, $candidateSpannedRow) | |
writeComment (Worksheet $pSheet, $coordinate) | |
Write a comment in the same format as LibreOffice. More... | |
generatePageDeclarations ($generateSurroundingHTML) | |
Static Private Member Functions | |
static | generateMeta ($val, $desc) |
static | getChartCaption ($cap) |
Extend Row if chart is placed after nominal end of row. More... | |
Private Attributes | |
$sheetIndex = 0 | |
$imagesRoot = '' | |
$embedImages = false | |
$useInlineCss = false | |
$useEmbeddedCSS = true | |
$cssStyles | |
$columnWidths | |
$defaultFont | |
$spansAreCalculated = false | |
$isSpannedCell = [] | |
$isBaseCell = [] | |
$isSpannedRow = [] | |
$generateSheetNavigationBlock = true | |
$editHtmlCallback | |
Additional Inherited Members | |
Protected Member Functions inherited from PhpOffice\PhpSpreadsheet\Writer\BaseWriter | |
maybeCloseFileHandle () | |
Close file handle only if we opened it ourselves. More... | |
PhpOffice\PhpSpreadsheet\Writer\Html::__construct | ( | Spreadsheet | $spreadsheet | ) |
Create a new HTML.
Implements PhpOffice\PhpSpreadsheet\Writer\IWriter.
Definition at line 145 of file Html.php.
References PhpOffice\PhpSpreadsheet\Writer\Html\$spreadsheet.
|
private |
Takes array where of CSS properties / values and converts to CSS string.
Definition at line 1536 of file Html.php.
Referenced by PhpOffice\PhpSpreadsheet\Writer\Html\generateRowCellDataValueRich(), PhpOffice\PhpSpreadsheet\Writer\Html\generateRowStart(), PhpOffice\PhpSpreadsheet\Writer\Html\generateRowWriteCell(), PhpOffice\PhpSpreadsheet\Writer\Html\generateStyles(), PhpOffice\PhpSpreadsheet\Writer\Html\generateTableHeader(), and PhpOffice\PhpSpreadsheet\Writer\Html\generateTableTagInline().
PhpOffice\PhpSpreadsheet\Writer\Html::buildCSS | ( | $generateSurroundingHTML = true | ) |
Build CSS styles.
bool | $generateSurroundingHTML | Generate surrounding HTML style? (html { }) |
Definition at line 905 of file Html.php.
References PhpOffice\PhpSpreadsheet\Writer\Html\$cssStyles, $index, $style, PhpOffice\PhpSpreadsheet\Writer\Html\buildCssPerSheet(), PhpOffice\PhpSpreadsheet\Writer\Html\calculateSpans(), and PhpOffice\PhpSpreadsheet\Writer\Html\createCSSStyle().
Referenced by PhpOffice\PhpSpreadsheet\Writer\Html\generateHtmlAll(), and PhpOffice\PhpSpreadsheet\Writer\Html\generateStyles().
|
private |
Definition at line 847 of file Html.php.
References PhpOffice\PhpSpreadsheet\Writer\Html\$defaultFont, PhpOffice\PhpSpreadsheet\Writer\Html\$sheetIndex, PhpOffice\PhpSpreadsheet\Writer\Html\buildCssRowHeights(), PhpOffice\PhpSpreadsheet\Worksheet\Worksheet\calculateColumnWidths(), PhpOffice\PhpSpreadsheet\Cell\Coordinate\columnIndexFromString(), PhpOffice\PhpSpreadsheet\Worksheet\Worksheet\getColumnDimensions(), PhpOffice\PhpSpreadsheet\Worksheet\Worksheet\getDefaultRowDimension(), PhpOffice\PhpSpreadsheet\Worksheet\Worksheet\getHighestColumn(), and PhpOffice\PhpSpreadsheet\Worksheet\Worksheet\getParent().
Referenced by PhpOffice\PhpSpreadsheet\Writer\Html\buildCSS().
|
private |
Definition at line 827 of file Html.php.
References $row, and PhpOffice\PhpSpreadsheet\Worksheet\Worksheet\getRowDimensions().
Referenced by PhpOffice\PhpSpreadsheet\Writer\Html\buildCssPerSheet().
|
private |
Calculate information about HTML colspan and rowspan which is not always the same as Excel's.
Definition at line 1685 of file Html.php.
References $c, $lc, $lr, $r, PhpOffice\PhpSpreadsheet\Writer\Html\$sheetIndex, PhpOffice\PhpSpreadsheet\Writer\Html\calculateSpansOmitRows(), PhpOffice\PhpSpreadsheet\Cell\Coordinate\indexesFromString(), and PhpOffice\PhpSpreadsheet\Cell\Coordinate\splitRange().
Referenced by PhpOffice\PhpSpreadsheet\Writer\Html\buildCSS(), PhpOffice\PhpSpreadsheet\Writer\Html\generatePageDeclarations(), and PhpOffice\PhpSpreadsheet\Writer\Html\generateSheetPrep().
|
private |
Definition at line 1748 of file Html.php.
References $c, PhpOffice\PhpSpreadsheet\Writer\Html\$sheetIndex, and PhpOffice\PhpSpreadsheet\Cell\Coordinate\columnIndexFromString().
Referenced by PhpOffice\PhpSpreadsheet\Writer\Html\calculateSpans().
|
private |
Create CSS style.
Definition at line 999 of file Html.php.
References PhpOffice\PhpSpreadsheet\Writer\Html\createCSSStyleAlignment(), PhpOffice\PhpSpreadsheet\Writer\Html\createCSSStyleBorders(), PhpOffice\PhpSpreadsheet\Writer\Html\createCSSStyleFill(), PhpOffice\PhpSpreadsheet\Writer\Html\createCSSStyleFont(), PhpOffice\PhpSpreadsheet\Style\Style\getAlignment(), PhpOffice\PhpSpreadsheet\Style\Style\getBorders(), PhpOffice\PhpSpreadsheet\Style\Style\getFill(), and PhpOffice\PhpSpreadsheet\Style\Style\getFont().
Referenced by PhpOffice\PhpSpreadsheet\Writer\Html\buildCSS().
|
private |
Create CSS style ().
Alignment | $pStyle |
Definition at line 1017 of file Html.php.
References PhpOffice\PhpSpreadsheet\Style\Alignment\getHorizontal(), PhpOffice\PhpSpreadsheet\Style\Alignment\getIndent(), PhpOffice\PhpSpreadsheet\Style\Alignment\getVertical(), PhpOffice\PhpSpreadsheet\Writer\Html\mapHAlign(), and PhpOffice\PhpSpreadsheet\Writer\Html\mapVAlign().
Referenced by PhpOffice\PhpSpreadsheet\Writer\Html\createCSSStyle().
|
private |
Create CSS style (Border).
Border | $pStyle | Border |
Definition at line 1095 of file Html.php.
References PhpOffice\PhpSpreadsheet\Style\Border\getBorderStyle(), PhpOffice\PhpSpreadsheet\Style\Border\getColor(), and PhpOffice\PhpSpreadsheet\Writer\Html\mapBorderStyle().
Referenced by PhpOffice\PhpSpreadsheet\Writer\Html\createCSSStyleBorders().
|
private |
Create CSS style (Borders).
Borders | $pStyle | Borders |
Definition at line 1074 of file Html.php.
References PhpOffice\PhpSpreadsheet\Writer\Html\createCSSStyleBorder(), PhpOffice\PhpSpreadsheet\Style\Borders\getBottom(), PhpOffice\PhpSpreadsheet\Style\Borders\getLeft(), PhpOffice\PhpSpreadsheet\Style\Borders\getRight(), and PhpOffice\PhpSpreadsheet\Style\Borders\getTop().
Referenced by PhpOffice\PhpSpreadsheet\Writer\Html\createCSSStyle().
|
private |
Create CSS style (Fill).
Fill | $pStyle | Fill |
Definition at line 1110 of file Html.php.
References PhpOffice\PhpSpreadsheet\Style\Fill\FILL_NONE, PhpOffice\PhpSpreadsheet\Style\Fill\getFillType(), and PhpOffice\PhpSpreadsheet\Style\Fill\getStartColor().
Referenced by PhpOffice\PhpSpreadsheet\Writer\Html\createCSSStyle().
|
private |
Create CSS style ().
Definition at line 1040 of file Html.php.
References PhpOffice\PhpSpreadsheet\Style\Font\getBold(), PhpOffice\PhpSpreadsheet\Style\Font\getColor(), PhpOffice\PhpSpreadsheet\Style\Font\getItalic(), PhpOffice\PhpSpreadsheet\Style\Font\getName(), PhpOffice\PhpSpreadsheet\Style\Font\getSize(), PhpOffice\PhpSpreadsheet\Style\Font\getStrikethrough(), PhpOffice\PhpSpreadsheet\Style\Font\getUnderline(), and PhpOffice\PhpSpreadsheet\Style\Font\UNDERLINE_NONE.
Referenced by PhpOffice\PhpSpreadsheet\Writer\Html\createCSSStyle(), and PhpOffice\PhpSpreadsheet\Writer\Html\generateRowCellDataValueRich().
|
private |
Extend Row if chart is placed after nominal end of row.
This code should be exercised by sample: Chart/32_Chart_read_write_PDF.php. However, that test is suppressed due to out-of-date Jpgraph code issuing warnings. So, don't measure code coverage for this function till that is fixed.
Worksheet | $pSheet | |
int | $row | Row to check for charts |
Definition at line 556 of file Html.php.
References $row, PhpOffice\PhpSpreadsheet\Cell\Coordinate\columnIndexFromString(), PhpOffice\PhpSpreadsheet\Cell\Coordinate\coordinateFromString(), and PhpOffice\PhpSpreadsheet\Worksheet\Worksheet\getChartCollection().
Referenced by PhpOffice\PhpSpreadsheet\Writer\Html\extendRowsForChartsAndImages().
|
private |
Definition at line 581 of file Html.php.
References $html, $row, PhpOffice\PhpSpreadsheet\Cell\Coordinate\columnIndexFromString(), PhpOffice\PhpSpreadsheet\Cell\Coordinate\coordinateFromString(), PhpOffice\PhpSpreadsheet\Writer\Html\extendRowsForCharts(), PhpOffice\PhpSpreadsheet\Worksheet\Worksheet\getDrawingCollection(), PHP_EOL, PhpOffice\PhpSpreadsheet\Writer\Html\writeChartInCell(), and PhpOffice\PhpSpreadsheet\Writer\Html\writeImageInCell().
Referenced by PhpOffice\PhpSpreadsheet\Writer\Html\generateSheetData().
PhpOffice\PhpSpreadsheet\Writer\Html::formatColor | ( | $pValue, | |
$pFormat | |||
) |
PhpOffice\PhpSpreadsheet\Writer\Html::generateHtmlAll | ( | ) |
Save Spreadsheet as html to variable.
Definition at line 173 of file Html.php.
References PhpOffice\PhpSpreadsheet\Writer\Html\$editHtmlCallback, $html, PhpOffice\PhpSpreadsheet\Writer\Html\buildCSS(), PhpOffice\PhpSpreadsheet\Writer\Html\generateHTMLFooter(), PhpOffice\PhpSpreadsheet\Writer\Html\generateHTMLHeader(), PhpOffice\PhpSpreadsheet\Writer\Html\generateNavigation(), PhpOffice\PhpSpreadsheet\Writer\Html\generateSheetData(), PhpOffice\PhpSpreadsheet\Calculation\Calculation\getArrayReturnType(), PhpOffice\PhpSpreadsheet\Calculation\Calculation\getInstance(), PhpOffice\PhpSpreadsheet\Calculation\Calculation\RETURN_ARRAY_AS_VALUE, and PhpOffice\PhpSpreadsheet\Calculation\Calculation\setArrayReturnType().
PhpOffice\PhpSpreadsheet\Writer\Html::generateHTMLFooter | ( | ) |
Generate HTML footer.
Definition at line 1126 of file Html.php.
References $html, and PHP_EOL.
Referenced by PhpOffice\PhpSpreadsheet\Writer\Html\generateHtmlAll().
PhpOffice\PhpSpreadsheet\Writer\Html::generateHTMLHeader | ( | $pIncludeStyles = false | ) |
Generate HTML header.
bool | $pIncludeStyles | Include styles? |
Definition at line 361 of file Html.php.
References $html, PhpOffice\PhpSpreadsheet\Writer\Html\generatePageDeclarations(), PhpOffice\PhpSpreadsheet\Writer\Html\generateStyles(), and PHP_EOL.
Referenced by PhpOffice\PhpSpreadsheet\Writer\Html\generateHtmlAll().
|
staticprivate |
PhpOffice\PhpSpreadsheet\Writer\Html::generateNavigation | ( | ) |
Generate sheet tabs.
Definition at line 510 of file Html.php.
References $html, and PHP_EOL.
Referenced by PhpOffice\PhpSpreadsheet\Writer\Html\generateHtmlAll().
|
private |
Definition at line 1812 of file Html.php.
References PhpOffice\PhpSpreadsheet\Writer\Html\calculateSpans(), EOF, PhpOffice\PhpSpreadsheet\Shared\StringHelper\formatNumber(), PhpOffice\PhpSpreadsheet\Worksheet\PageSetup\ORIENTATION_LANDSCAPE, PhpOffice\PhpSpreadsheet\Worksheet\PageSetup\ORIENTATION_PORTRAIT, and PHP_EOL.
Referenced by PhpOffice\PhpSpreadsheet\Writer\Html\generateHTMLHeader(), and PhpOffice\PhpSpreadsheet\Writer\Html\generateStyles().
|
private |
Generate row.
Worksheet | $pSheet | |
array | $pValues | Array containing cells in a row |
int | $pRow | Row number (0-based) |
string | $cellType | eg: 'td' |
Definition at line 1473 of file Html.php.
References $html, PhpOffice\PhpSpreadsheet\Writer\Html\$sheetIndex, PhpOffice\PhpSpreadsheet\Writer\Html\generateRowCellCss(), PhpOffice\PhpSpreadsheet\Writer\Html\generateRowCellData(), PhpOffice\PhpSpreadsheet\Writer\Html\generateRowStart(), PhpOffice\PhpSpreadsheet\Writer\Html\generateRowWriteCell(), PhpOffice\PhpSpreadsheet\Worksheet\Worksheet\getHyperlink(), PhpOffice\PhpSpreadsheet\Worksheet\Worksheet\getParent(), PhpOffice\PhpSpreadsheet\Worksheet\Worksheet\hyperlinkExists(), PHP_EOL, and PhpOffice\PhpSpreadsheet\Cell\Coordinate\stringFromColumnIndex().
Referenced by PhpOffice\PhpSpreadsheet\Writer\Html\generateSheetData().
|
private |
Definition at line 1256 of file Html.php.
References PhpOffice\PhpSpreadsheet\Cell\Coordinate\stringFromColumnIndex().
Referenced by PhpOffice\PhpSpreadsheet\Writer\Html\generateRow().
|
private |
Definition at line 1337 of file Html.php.
References PhpOffice\PhpSpreadsheet\Writer\Html\generateRowCellDataValue(), and PhpOffice\PhpSpreadsheet\Style\Alignment\HORIZONTAL_GENERAL.
Referenced by PhpOffice\PhpSpreadsheet\Writer\Html\generateRow().
|
private |
Definition at line 1315 of file Html.php.
References PhpOffice\PhpSpreadsheet\Writer\Html\generateRowCellDataValueRich(), and PhpOffice\PhpSpreadsheet\Style\NumberFormat\toFormattedString().
Referenced by PhpOffice\PhpSpreadsheet\Writer\Html\generateRowCellData().
|
private |
Definition at line 1282 of file Html.php.
References PhpOffice\PhpSpreadsheet\Writer\Html\assembleCSS(), and PhpOffice\PhpSpreadsheet\Writer\Html\createCSSStyleFont().
Referenced by PhpOffice\PhpSpreadsheet\Writer\Html\generateRowCellDataValue().
|
private |
Definition at line 1390 of file Html.php.
References PhpOffice\PhpSpreadsheet\Writer\Html\writeChartInCell().
Referenced by PhpOffice\PhpSpreadsheet\Writer\Html\generateRowWriteCell().
|
private |
Definition at line 1395 of file Html.php.
References $html.
Referenced by PhpOffice\PhpSpreadsheet\Writer\Html\generateRowWriteCell().
|
private |
Generate row start.
Worksheet | $pSheet | |
int | $sheetIndex | Sheet index (0-based) |
int | $pRow | row number |
Definition at line 1223 of file Html.php.
References $html, PhpOffice\PhpSpreadsheet\Writer\Html\$sheetIndex, $style, PhpOffice\PhpSpreadsheet\Writer\Html\assembleCSS(), PhpOffice\PhpSpreadsheet\Writer\Html\generateTableFooter(), PhpOffice\PhpSpreadsheet\Writer\Html\generateTableHeader(), PhpOffice\PhpSpreadsheet\Worksheet\Worksheet\getBreaks(), and PHP_EOL.
Referenced by PhpOffice\PhpSpreadsheet\Writer\Html\generateRow().
|
private |
Definition at line 1403 of file Html.php.
References $html, $i, PhpOffice\PhpSpreadsheet\Writer\Html\$sheetIndex, PhpOffice\PhpSpreadsheet\Writer\Html\assembleCSS(), PhpOffice\PhpSpreadsheet\Writer\Html\generateRowIncludeCharts(), PhpOffice\PhpSpreadsheet\Writer\Html\generateRowSpans(), PHP_EOL, PhpOffice\PhpSpreadsheet\Writer\Html\writeComment(), and PhpOffice\PhpSpreadsheet\Writer\Html\writeImageInCell().
Referenced by PhpOffice\PhpSpreadsheet\Writer\Html\generateRow().
PhpOffice\PhpSpreadsheet\Writer\Html::generateSheetData | ( | ) |
Generate sheet data.
Definition at line 441 of file Html.php.
References $html, $row, PhpOffice\PhpSpreadsheet\Writer\Html\extendRowsForChartsAndImages(), PhpOffice\PhpSpreadsheet\Writer\Html\generateRow(), PhpOffice\PhpSpreadsheet\Writer\Html\generateSheetPrep(), PhpOffice\PhpSpreadsheet\Writer\Html\generateSheetStarts(), PhpOffice\PhpSpreadsheet\Writer\Html\generateSheetTags(), PhpOffice\PhpSpreadsheet\Writer\Html\generateTableFooter(), PhpOffice\PhpSpreadsheet\Writer\Html\generateTableHeader(), PhpOffice\PhpSpreadsheet\Cell\Coordinate\indexesFromString(), and PhpOffice\PhpSpreadsheet\Cell\Coordinate\stringFromColumnIndex().
Referenced by PhpOffice\PhpSpreadsheet\Writer\Html\generateHtmlAll().
|
private |
Definition at line 389 of file Html.php.
References PhpOffice\PhpSpreadsheet\Writer\Html\calculateSpans().
Referenced by PhpOffice\PhpSpreadsheet\Writer\Html\generateSheetData().
|
private |
Definition at line 404 of file Html.php.
Referenced by PhpOffice\PhpSpreadsheet\Writer\Html\generateSheetData().
|
private |
Definition at line 423 of file Html.php.
Referenced by PhpOffice\PhpSpreadsheet\Writer\Html\generateSheetData().
PhpOffice\PhpSpreadsheet\Writer\Html::generateStyles | ( | $generateSurroundingHTML = true | ) |
Generate CSS styles.
bool | $generateSurroundingHTML | Generate surrounding HTML tags? (<style> and </style>) |
Definition at line 796 of file Html.php.
References $html, PhpOffice\PhpSpreadsheet\Writer\Html\assembleCSS(), PhpOffice\PhpSpreadsheet\Writer\Html\buildCSS(), PhpOffice\PhpSpreadsheet\Writer\Html\generatePageDeclarations(), and PHP_EOL.
Referenced by PhpOffice\PhpSpreadsheet\Writer\Html\generateHTMLHeader().
|
private |
Generate table footer.
Definition at line 1209 of file Html.php.
References PHP_EOL.
Referenced by PhpOffice\PhpSpreadsheet\Writer\Html\generateRowStart(), and PhpOffice\PhpSpreadsheet\Writer\Html\generateSheetData().
|
private |
Generate table header.
Worksheet | $pSheet | The worksheet for the table we are writing |
bool | $showid | whether or not to add id to table tag |
Definition at line 1175 of file Html.php.
References $html, $i, $id, PhpOffice\PhpSpreadsheet\Writer\Html\$sheetIndex, $style, PhpOffice\PhpSpreadsheet\Writer\Html\assembleCSS(), PhpOffice\PhpSpreadsheet\Cell\Coordinate\columnIndexFromString(), PhpOffice\PhpSpreadsheet\Writer\Html\generateTableTag(), and PHP_EOL.
Referenced by PhpOffice\PhpSpreadsheet\Writer\Html\generateRowStart(), and PhpOffice\PhpSpreadsheet\Writer\Html\generateSheetData().
|
private |
Definition at line 1156 of file Html.php.
References $html, $id, PhpOffice\PhpSpreadsheet\Writer\Html\generateTableTagInline(), and PHP_EOL.
Referenced by PhpOffice\PhpSpreadsheet\Writer\Html\generateTableHeader().
|
private |
Definition at line 1136 of file Html.php.
References $html, $style, PhpOffice\PhpSpreadsheet\Writer\Html\assembleCSS(), and PHP_EOL.
Referenced by PhpOffice\PhpSpreadsheet\Writer\Html\generateTableTag().
|
staticprivate |
Extend Row if chart is placed after nominal end of row.
This code should be exercised by sample: Chart/32_Chart_read_write_PDF.php. However, that test is suppressed due to out-of-date Jpgraph code issuing warnings. So, don't measure code coverage for this function till that is fixed. Caption is described in documentation as fixed, but in 32_Chart it is somehow an array of RichText.
mixed | $cap |
PhpOffice\PhpSpreadsheet\Writer\Html::getEmbedImages | ( | ) |
Get embed images.
Definition at line 1576 of file Html.php.
References PhpOffice\PhpSpreadsheet\Writer\Html\$embedImages.
PhpOffice\PhpSpreadsheet\Writer\Html::getGenerateSheetNavigationBlock | ( | ) |
Get sheet index.
Definition at line 318 of file Html.php.
References PhpOffice\PhpSpreadsheet\Writer\Html\$generateSheetNavigationBlock.
PhpOffice\PhpSpreadsheet\Writer\Html::getImagesRoot | ( | ) |
Get images root.
Definition at line 1552 of file Html.php.
References PhpOffice\PhpSpreadsheet\Writer\Html\$imagesRoot.
Referenced by PhpOffice\PhpSpreadsheet\Writer\Html\writeImageInCell().
PhpOffice\PhpSpreadsheet\Writer\Html::getSheetIndex | ( | ) |
Get sheet index.
Definition at line 294 of file Html.php.
References PhpOffice\PhpSpreadsheet\Writer\Html\$sheetIndex.
Referenced by PhpOffice\PhpSpreadsheet\Writer\Pdf\Dompdf\save(), PhpOffice\PhpSpreadsheet\Writer\Pdf\Mpdf\save(), and PhpOffice\PhpSpreadsheet\Writer\Pdf\Tcpdf\save().
PhpOffice\PhpSpreadsheet\Writer\Html::getUseEmbeddedCSS | ( | ) |
Get use embedded CSS?
Definition at line 1628 of file Html.php.
References PhpOffice\PhpSpreadsheet\Writer\Html\$useEmbeddedCSS.
PhpOffice\PhpSpreadsheet\Writer\Html::getUseInlineCss | ( | ) |
Get use inline CSS?
Definition at line 1600 of file Html.php.
References PhpOffice\PhpSpreadsheet\Writer\Html\$useInlineCss.
|
private |
Map border style.
int | $borderStyle | Sheet index |
Definition at line 284 of file Html.php.
Referenced by PhpOffice\PhpSpreadsheet\Writer\Html\createCSSStyleBorder().
|
private |
Map HAlign.
string | $hAlign | Horizontal alignment |
Definition at line 257 of file Html.php.
Referenced by PhpOffice\PhpSpreadsheet\Writer\Html\createCSSStyleAlignment().
|
private |
Map VAlign.
string | $vAlign | Vertical alignment |
Definition at line 237 of file Html.php.
Referenced by PhpOffice\PhpSpreadsheet\Writer\Html\createCSSStyleAlignment().
PhpOffice\PhpSpreadsheet\Writer\Html::save | ( | $pFilename | ) |
Save Spreadsheet to file.
resource | string | $pFilename |
Implements PhpOffice\PhpSpreadsheet\Writer\IWriter.
Definition at line 156 of file Html.php.
References PhpOffice\PhpSpreadsheet\Writer\BaseWriter\maybeCloseFileHandle(), and PhpOffice\PhpSpreadsheet\Writer\BaseWriter\openFileHandle().
PhpOffice\PhpSpreadsheet\Writer\Html::setEditHtmlCallback | ( | ?callable | $callback | ) |
PhpOffice\PhpSpreadsheet\Writer\Html::setEmbedImages | ( | $pValue | ) |
PhpOffice\PhpSpreadsheet\Writer\Html::setGenerateSheetNavigationBlock | ( | $pValue | ) |
PhpOffice\PhpSpreadsheet\Writer\Html::setImagesRoot | ( | $pValue | ) |
PhpOffice\PhpSpreadsheet\Writer\Html::setSheetIndex | ( | $pValue | ) |
PhpOffice\PhpSpreadsheet\Writer\Html::setUseEmbeddedCSS | ( | $pValue | ) |
PhpOffice\PhpSpreadsheet\Writer\Html::setUseInlineCss | ( | $pValue | ) |
Set use inline CSS?
bool | $pValue |
Definition at line 1612 of file Html.php.
Referenced by PhpOffice\PhpSpreadsheet\Writer\Pdf\Tcpdf\__construct().
|
static |
PhpOffice\PhpSpreadsheet\Writer\Html::writeAllSheets | ( | ) |
|
private |
Generate chart tag in cell.
This code should be exercised by sample: Chart/32_Chart_read_write_PDF.php. However, that test is suppressed due to out-of-date Jpgraph code issuing warnings. So, don't measure code coverage for this function till that is fixed.
Definition at line 729 of file Html.php.
References $html, PhpOffice\PhpSpreadsheet\Worksheet\Worksheet\getChartCollection(), PHP_EOL, and PhpOffice\PhpSpreadsheet\Shared\File\sysGetTempDir().
Referenced by PhpOffice\PhpSpreadsheet\Writer\Html\extendRowsForChartsAndImages(), and PhpOffice\PhpSpreadsheet\Writer\Html\generateRowIncludeCharts().
|
private |
Write a comment in the same format as LibreOffice.
string | $coordinate |
Definition at line 1789 of file Html.php.
References $result, $sanitizer, PhpOffice\PhpSpreadsheet\Worksheet\Worksheet\getComment(), PhpOffice\PhpSpreadsheet\Worksheet\Worksheet\getComments(), HTMLPurifier(), and PHP_EOL.
Referenced by PhpOffice\PhpSpreadsheet\Writer\Html\generateRowWriteCell().
|
private |
Generate image tag in cell.
Definition at line 648 of file Html.php.
References $filename, $html, PhpOffice\PhpSpreadsheet\Worksheet\Worksheet\getDrawingCollection(), PhpOffice\PhpSpreadsheet\Writer\Html\getImagesRoot(), and PHP_EOL.
Referenced by PhpOffice\PhpSpreadsheet\Writer\Html\extendRowsForChartsAndImages(), and PhpOffice\PhpSpreadsheet\Writer\Html\generateRowWriteCell().
|
private |
Definition at line 77 of file Html.php.
Referenced by PhpOffice\PhpSpreadsheet\Writer\Html\buildCSS().
|
private |
Definition at line 91 of file Html.php.
Referenced by PhpOffice\PhpSpreadsheet\Writer\Html\buildCssPerSheet().
|
private |
Definition at line 140 of file Html.php.
Referenced by PhpOffice\PhpSpreadsheet\Writer\Html\generateHtmlAll().
|
private |
Definition at line 56 of file Html.php.
Referenced by PhpOffice\PhpSpreadsheet\Writer\Html\getEmbedImages().
|
private |
Definition at line 133 of file Html.php.
Referenced by PhpOffice\PhpSpreadsheet\Writer\Html\getGenerateSheetNavigationBlock().
|
private |
Definition at line 49 of file Html.php.
Referenced by PhpOffice\PhpSpreadsheet\Writer\Html\getImagesRoot().
|
private |
|
protected |
|
private |
|
private |
|
private |
Definition at line 42 of file Html.php.
Referenced by PhpOffice\PhpSpreadsheet\Writer\Html\buildCssPerSheet(), PhpOffice\PhpSpreadsheet\Writer\Html\calculateSpans(), PhpOffice\PhpSpreadsheet\Writer\Html\calculateSpansOmitRows(), PhpOffice\PhpSpreadsheet\Writer\Html\generateRow(), PhpOffice\PhpSpreadsheet\Writer\Html\generateRowStart(), PhpOffice\PhpSpreadsheet\Writer\Html\generateRowWriteCell(), PhpOffice\PhpSpreadsheet\Writer\Html\generateTableHeader(), and PhpOffice\PhpSpreadsheet\Writer\Html\getSheetIndex().
|
private |
|
protected |
Definition at line 35 of file Html.php.
Referenced by PhpOffice\PhpSpreadsheet\Writer\Html\__construct().
|
private |
Definition at line 70 of file Html.php.
Referenced by PhpOffice\PhpSpreadsheet\Writer\Html\getUseEmbeddedCSS().
|
private |
Definition at line 63 of file Html.php.
Referenced by PhpOffice\PhpSpreadsheet\Writer\Html\getUseInlineCss().
const PhpOffice\PhpSpreadsheet\Writer\Html::BORDER_ARR |
const PhpOffice\PhpSpreadsheet\Writer\Html::HALIGN_ARR |
const PhpOffice\PhpSpreadsheet\Writer\Html::VALIGN_ARR |