◆ __construct()
| Box\Spout\Writer\Common\Manager\Style\StyleManager::__construct |
( |
StyleRegistry | $styleRegistry | ) |
|
- Parameters
-
| StyleRegistry | $styleRegistry | |
◆ applyExtraStylesIfNeeded()
| Box\Spout\Writer\Common\Manager\Style\StyleManager::applyExtraStylesIfNeeded |
( |
Cell | $cell | ) |
|
◆ applyWrapTextIfCellContainsNewLine()
| Box\Spout\Writer\Common\Manager\Style\StyleManager::applyWrapTextIfCellContainsNewLine |
( |
Cell | $cell | ) |
|
|
protected |
Set the "wrap text" option if a cell of the given row contains a new line.
@NOTE: There is a bug on the Mac version of Excel (2011 and below) where new lines are ignored even when the "wrap text" option is set. This only occurs with inline strings (shared strings do work fine). A workaround would be to encode "::n" as "_x000D_" but it does not work on the Windows version of Excel...
- Parameters
-
| Cell | $cell | The cell the style should be applied to |
- Return values
-
| PossiblyUpdatedStyle | The eventually updated style |
◆ getDefaultStyle()
| Box\Spout\Writer\Common\Manager\Style\StyleManager::getDefaultStyle |
( |
| ) |
|
|
protected |
Returns the default style.
- Return values
-
◆ registerStyle()
| Box\Spout\Writer\Common\Manager\Style\StyleManager::registerStyle |
( |
| $style | ) |
|
The documentation for this class was generated from the following file:
- lib/spout/src/Spout/Writer/Common/Manager/Style/StyleManager.php