|
| __construct (StyleRegistry $styleRegistry, XLSXEscaper $stringsEscaper) |
|
| applyExtraStylesIfNeeded (Cell $cell) |
| Apply additional styles if the given row needs it.
|
|
| getStylesXMLFileContent () |
| Returns the content of the "styles.xml" file, given a list of styles.
|
|
| registerStyle (Style $style) |
| Registers the given style as a used style.
|
|
| shouldApplyStyleOnEmptyCell (?int $styleId) |
| For empty cells, we can specify a style or not.
|
|
|
AbstractStyleRegistry AbstractStyleRegistry | $styleRegistry |
| Registry for all used styles.
|
|
◆ applyExtraStylesIfNeeded()
OpenSpout\Writer\Common\Manager\Style\AbstractStyleManager::applyExtraStylesIfNeeded |
( |
Cell | $cell | ) |
|
|
finalinherited |
◆ getDefaultStyle()
OpenSpout\Writer\Common\Manager\Style\AbstractStyleManager::getDefaultStyle |
( |
| ) |
|
|
finalprotectedinherited |
Returns the default style.
- Return values
-
◆ registerStyle()
OpenSpout\Writer\Common\Manager\Style\AbstractStyleManager::registerStyle |
( |
Style | $style | ) |
|
|
finalinherited |
◆ shouldApplyStyleOnEmptyCell()
OpenSpout\Writer\XLSX\Manager\Style\StyleManager::shouldApplyStyleOnEmptyCell |
( |
?int | $styleId | ) |
|
For empty cells, we can specify a style or not.
If no style are specified, then the software default will be applied. But sometimes, it may be useful to override this default style, for instance if the cell should have a background color different than the default one or some borders (fonts property don't really matter here).
- Return values
-
bool | Whether the cell should define a custom style |
The documentation for this class was generated from the following file:
- lib/openspout/src/Writer/XLSX/Manager/Style/StyleManager.php